Class StreamPool.Builder
- java.lang.Object
-
- com.oracle.bmc.streaming.model.StreamPool.Builder
-
- Enclosing class:
- StreamPool
public static class StreamPool.Builder extends Object
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StreamPool
build()
StreamPool.Builder
compartmentId(String compartmentId)
Compartment OCID that the pool belongs to.StreamPool.Builder
copy(StreamPool model)
StreamPool.Builder
customEncryptionKey(CustomEncryptionKey customEncryptionKey)
StreamPool.Builder
definedTags(Map<String,Map<String,Object>> definedTags)
Defined tags for this resource.StreamPool.Builder
endpointFqdn(String endpointFqdn)
The FQDN used to access the streams inside the stream pool (same FQDN as the messagesEndpoint attribute of aStream
object).StreamPool.Builder
freeformTags(Map<String,String> freeformTags)
Free-form tags for this resource.StreamPool.Builder
id(String id)
The OCID of the stream pool.StreamPool.Builder
isPrivate(Boolean isPrivate)
True if the stream pool is private, false otherwise.StreamPool.Builder
kafkaSettings(KafkaSettings kafkaSettings)
StreamPool.Builder
lifecycleState(StreamPool.LifecycleState lifecycleState)
The current state of the stream pool.StreamPool.Builder
lifecycleStateDetails(String lifecycleStateDetails)
Any additional details about the current state of the stream.StreamPool.Builder
name(String name)
The name of the stream pool.StreamPool.Builder
privateEndpointSettings(PrivateEndpointSettings privateEndpointSettings)
StreamPool.Builder
timeCreated(Date timeCreated)
The date and time the stream pool was created, expressed in in RFC 3339 timestamp format.
-
-
-
Method Detail
-
id
public StreamPool.Builder id(String id)
The OCID of the stream pool.- Parameters:
id
- the value to set- Returns:
- this builder
-
compartmentId
public StreamPool.Builder compartmentId(String compartmentId)
Compartment OCID that the pool belongs to.- Parameters:
compartmentId
- the value to set- Returns:
- this builder
-
name
public StreamPool.Builder name(String name)
The name of the stream pool.- Parameters:
name
- the value to set- Returns:
- this builder
-
lifecycleState
public StreamPool.Builder lifecycleState(StreamPool.LifecycleState lifecycleState)
The current state of the stream pool.- Parameters:
lifecycleState
- the value to set- Returns:
- this builder
-
lifecycleStateDetails
public StreamPool.Builder lifecycleStateDetails(String lifecycleStateDetails)
Any additional details about the current state of the stream.- Parameters:
lifecycleStateDetails
- the value to set- Returns:
- this builder
-
timeCreated
public StreamPool.Builder timeCreated(Date timeCreated)
The date and time the stream pool was created, expressed in in RFC 3339 timestamp format.Example: 2018-04-20T00:00:07.405Z
- Parameters:
timeCreated
- the value to set- Returns:
- this builder
-
kafkaSettings
public StreamPool.Builder kafkaSettings(KafkaSettings kafkaSettings)
-
customEncryptionKey
public StreamPool.Builder customEncryptionKey(CustomEncryptionKey customEncryptionKey)
-
isPrivate
public StreamPool.Builder isPrivate(Boolean isPrivate)
True if the stream pool is private, false otherwise.If the stream pool is private, the streams inside the stream pool can only be accessed from inside the associated subnetId.
- Parameters:
isPrivate
- the value to set- Returns:
- this builder
-
endpointFqdn
public StreamPool.Builder endpointFqdn(String endpointFqdn)
The FQDN used to access the streams inside the stream pool (same FQDN as the messagesEndpoint attribute of aStream
object).If the stream pool is private, the FQDN is customized and can only be accessed from inside the associated subnetId, otherwise the FQDN is publicly resolvable. Depending on which protocol you attempt to use, you need to either prepend https or append the Kafka port.
- Parameters:
endpointFqdn
- the value to set- Returns:
- this builder
-
privateEndpointSettings
public StreamPool.Builder privateEndpointSettings(PrivateEndpointSettings privateEndpointSettings)
-
freeformTags
public StreamPool.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"}
- Parameters:
freeformTags
- the value to set- Returns:
- this builder
-
definedTags
public StreamPool.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
-
build
public StreamPool build()
-
copy
public StreamPool.Builder copy(StreamPool model)
-
-