Package com.oracle.bmc.streaming.model
Class StreamSummary.Builder
- java.lang.Object
- 
- com.oracle.bmc.streaming.model.StreamSummary.Builder
 
- 
- Enclosing class:
- StreamSummary
 
 public static class StreamSummary.Builder extends Object 
- 
- 
Constructor SummaryConstructors Constructor Description Builder()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamSummarybuild()StreamSummary.BuildercompartmentId(String compartmentId)The OCID of the compartment that contains the stream.StreamSummary.Buildercopy(StreamSummary model)StreamSummary.BuilderdefinedTags(Map<String,Map<String,Object>> definedTags)Defined tags for this resource.StreamSummary.BuilderfreeformTags(Map<String,String> freeformTags)Free-form tags for this resource.StreamSummary.Builderid(String id)The OCID of the stream.StreamSummary.BuilderlifecycleState(StreamSummary.LifecycleState lifecycleState)The current state of the stream.StreamSummary.BuildermessagesEndpoint(String messagesEndpoint)The endpoint to use when creating the StreamClient to consume or publish messages in the stream.StreamSummary.Buildername(String name)The name of the stream.StreamSummary.Builderpartitions(Integer partitions)The number of partitions in the stream.StreamSummary.BuilderstreamPoolId(String streamPoolId)The OCID of the stream pool that contains the stream.StreamSummary.BuildertimeCreated(Date timeCreated)The date and time the stream was created, expressed in RFC 3339 timestamp format.
 
- 
- 
- 
Method Detail- 
namepublic StreamSummary.Builder name(String name) The name of the stream.Example: TelemetryEvents - Parameters:
- name- the value to set
- Returns:
- this builder
 
 - 
idpublic StreamSummary.Builder id(String id) The OCID of the stream.- Parameters:
- id- the value to set
- Returns:
- this builder
 
 - 
partitionspublic StreamSummary.Builder partitions(Integer partitions) The number of partitions in the stream.- Parameters:
- partitions- the value to set
- Returns:
- this builder
 
 - 
compartmentIdpublic StreamSummary.Builder compartmentId(String compartmentId) The OCID of the compartment that contains the stream.- Parameters:
- compartmentId- the value to set
- Returns:
- this builder
 
 - 
streamPoolIdpublic StreamSummary.Builder streamPoolId(String streamPoolId) The OCID of the stream pool that contains the stream.- Parameters:
- streamPoolId- the value to set
- Returns:
- this builder
 
 - 
lifecycleStatepublic StreamSummary.Builder lifecycleState(StreamSummary.LifecycleState lifecycleState) The current state of the stream.- Parameters:
- lifecycleState- the value to set
- Returns:
- this builder
 
 - 
timeCreatedpublic StreamSummary.Builder timeCreated(Date timeCreated) The date and time the stream was created, expressed in RFC 3339 timestamp format.Example: 2018-04-20T00:00:07.405Z - Parameters:
- timeCreated- the value to set
- Returns:
- this builder
 
 - 
messagesEndpointpublic StreamSummary.Builder messagesEndpoint(String messagesEndpoint) The endpoint to use when creating the StreamClient to consume or publish messages in the stream.If the associated stream pool is private, the endpoint is also private and can only be accessed from inside the stream pool’s associated subnet. - Parameters:
- messagesEndpoint- the value to set
- Returns:
- this builder
 
 - 
freeformTagspublic StreamSummary.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 StreamSummary.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 StreamSummary build() 
 - 
copypublic StreamSummary.Builder copy(StreamSummary model) 
 
- 
 
-