Class CreateStreamDetails
Object used to create a stream.
Inherited Members
Namespace: Oci.StreamingService.Models
Assembly: OCI.DotNetSDK.Streaming.dll
Syntax
public class CreateStreamDetails
Properties
CompartmentId
Declaration
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the compartment that contains the stream. |
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
|
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | Free-form tags for this resource. Each tag is a simple key-value pair that is applied with no predefined name, type, or namespace. Exists for cross-compatibility only.
For more information, see Resource Tags.
|
Name
Declaration
[Required(ErrorMessage = "Name is required.")]
[JsonProperty(PropertyName = "name")]
public string Name { get; set; }
Property Value
Type | Description |
---|---|
string | The name of the stream. Avoid entering confidential information.
|
Remarks
Required
Partitions
Declaration
[Required(ErrorMessage = "Partitions is required.")]
[JsonProperty(PropertyName = "partitions")]
public int? Partitions { get; set; }
Property Value
Type | Description |
---|---|
int? | The number of partitions in the stream. |
Remarks
Required
RetentionInHours
Declaration
[JsonProperty(PropertyName = "retentionInHours")]
public int? RetentionInHours { get; set; }
Property Value
Type | Description |
---|---|
int? | The retention period of the stream, in hours. Accepted values are between 24 and 168 (7 days). If not specified, the stream will have a retention period of 24 hours. |
StreamPoolId
Declaration
[JsonProperty(PropertyName = "streamPoolId")]
public string StreamPoolId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the stream pool that contains the stream. |