public static class CreateStreamDetails.Builder extends Object
Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
CreateStreamDetails |
build() |
CreateStreamDetails.Builder |
compartmentId(String compartmentId)
The OCID of the compartment that contains the stream.
|
CreateStreamDetails.Builder |
copy(CreateStreamDetails model) |
CreateStreamDetails.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
CreateStreamDetails.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
CreateStreamDetails.Builder |
name(String name)
The name of the stream.
|
CreateStreamDetails.Builder |
partitions(Integer partitions)
The number of partitions in the stream.
|
CreateStreamDetails.Builder |
retentionInHours(Integer retentionInHours)
The retention period of the stream, in hours.
|
CreateStreamDetails.Builder |
streamPoolId(String streamPoolId)
The OCID of the stream pool that contains the stream.
|
public CreateStreamDetails.Builder name(String name)
The name of the stream. Avoid entering confidential information.
Example: TelemetryEvents
name
- the value to setpublic CreateStreamDetails.Builder partitions(Integer partitions)
The number of partitions in the stream.
partitions
- the value to setpublic CreateStreamDetails.Builder compartmentId(String compartmentId)
The OCID of the compartment that contains the stream.
compartmentId
- the value to setpublic CreateStreamDetails.Builder streamPoolId(String streamPoolId)
The OCID of the stream pool that contains the stream.
streamPoolId
- the value to setpublic CreateStreamDetails.Builder retentionInHours(Integer retentionInHours)
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.
retentionInHours
- the value to setpublic CreateStreamDetails.Builder freeformTags(Map<String,String> freeformTags)
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.
Example: {"Department": "Finance"}
freeformTags
- the value to setpublic CreateStreamDetails.Builder definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}
definedTags
- the value to setpublic CreateStreamDetails build()
public CreateStreamDetails.Builder copy(CreateStreamDetails model)
Copyright © 2016–2024. All rights reserved.