Package com.oracle.bmc.streaming.model
Class CreateStreamDetails.Builder
- java.lang.Object
- 
- com.oracle.bmc.streaming.model.CreateStreamDetails.Builder
 
- 
- Enclosing class:
- CreateStreamDetails
 
 public static class CreateStreamDetails.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description CreateStreamDetailsbuild()CreateStreamDetails.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the stream.CreateStreamDetails.Buildercopy(CreateStreamDetails model)CreateStreamDetails.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.CreateStreamDetails.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.CreateStreamDetails.Buildername(String name)The name of the stream.CreateStreamDetails.Builderpartitions(Integer partitions)The number of partitions in the stream.CreateStreamDetails.BuilderretentionInHours(Integer retentionInHours)The retention period of the stream, in hours.CreateStreamDetails.BuilderstreamPoolId(String streamPoolId)The OCID of the stream pool that contains the stream.
 
- 
- 
- 
Method Detail- 
namepublic CreateStreamDetails.Builder name(String name) The name of the stream.Avoid entering confidential information. Example: TelemetryEvents - Parameters:
- name- the value to set
- Returns:
- this builder
 
 - 
partitionspublic CreateStreamDetails.Builder partitions(Integer partitions) The number of partitions in the stream.- Parameters:
- partitions- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic CreateStreamDetails.Builder compartmentId(String compartmentId) The OCID of the compartment that contains the stream.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
streamPoolIdpublic CreateStreamDetails.Builder streamPoolId(String streamPoolId) The OCID of the stream pool that contains the stream.- Parameters:
- streamPoolId- the value to set
- Returns:
- this builder
 
 - 
retentionInHourspublic 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. - Parameters:
- retentionInHours- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic 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"} - Parameters:
- freeformTags- the value to set
- Returns:
- this builder
 
 - 
definedTagspublic 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"}} - Parameters:
- definedTags- the value to set
- Returns:
- this builder
 
 - 
buildpublic CreateStreamDetails build() 
 - 
copypublic CreateStreamDetails.Builder copy(CreateStreamDetails model) 
 
- 
 
-