Constructor and Description |
---|
Builder() |
Modifier and Type | Method and Description |
---|---|
Stream |
build() |
Stream.Builder |
compartmentId(String compartmentId)
The OCID of the stream.
|
Stream.Builder |
copy(Stream model) |
Stream.Builder |
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.
|
Stream.Builder |
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.
|
Stream.Builder |
id(String id)
The OCID of the stream.
|
Stream.Builder |
lifecycleState(Stream.LifecycleState lifecycleState)
The current state of the stream.
|
Stream.Builder |
lifecycleStateDetails(String lifecycleStateDetails)
Any additional details about the current state of the stream.
|
Stream.Builder |
messagesEndpoint(String messagesEndpoint)
The endpoint to use when creating the StreamClient to consume or publish messages in the
stream.
|
Stream.Builder |
name(String name)
The name of the stream.
|
Stream.Builder |
partitions(Integer partitions)
The number of partitions in the stream.
|
Stream.Builder |
retentionInHours(Integer retentionInHours)
The retention period of the stream, in hours.
|
Stream.Builder |
streamPoolId(String streamPoolId)
The OCID of the stream pool that contains the stream.
|
Stream.Builder |
timeCreated(Date timeCreated)
The date and time the stream was created, expressed in in RFC
3339 timestamp format.
|
public Stream.Builder name(String name)
The name of the stream. Avoid entering confidential information.
Example: TelemetryEvents
name
- the value to setpublic Stream.Builder id(String id)
The OCID of the stream.
id
- the value to setpublic Stream.Builder partitions(Integer partitions)
The number of partitions in the stream.
partitions
- the value to setpublic Stream.Builder retentionInHours(Integer retentionInHours)
The retention period of the stream, in hours. This property is read-only.
retentionInHours
- the value to setpublic Stream.Builder compartmentId(String compartmentId)
The OCID of the stream.
compartmentId
- the value to setpublic Stream.Builder streamPoolId(String streamPoolId)
The OCID of the stream pool that contains the stream.
streamPoolId
- the value to setpublic Stream.Builder lifecycleState(Stream.LifecycleState lifecycleState)
The current state of the stream.
lifecycleState
- the value to setpublic Stream.Builder lifecycleStateDetails(String lifecycleStateDetails)
Any additional details about the current state of the stream.
lifecycleStateDetails
- the value to setpublic Stream.Builder timeCreated(Date timeCreated)
The date and time the stream was created, expressed in in RFC 3339 timestamp format.
Example: 2018-04-20T00:00:07.405Z
timeCreated
- the value to setpublic Stream.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.
messagesEndpoint
- the value to setpublic Stream.Builder freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource. Each tag is a simple key-value pair 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 Stream.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 Stream build()
public Stream.Builder copy(Stream model)
Copyright © 2016–2024. All rights reserved.