#[non_exhaustive]pub struct ConnectCluster {
pub name: String,
pub kafka_cluster: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub capacity_config: Option<CapacityConfig>,
pub state: State,
pub config: HashMap<String, String>,
pub platform_config: Option<PlatformConfig>,
/* private fields */
}Expand description
An Apache Kafka Connect cluster deployed in a location.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.name: StringIdentifier. The name of the Kafka Connect cluster. Structured like: projects/{project_number}/locations/{location}/connectClusters/{connect_cluster_id}
kafka_cluster: StringRequired. Immutable. The name of the Kafka cluster this Kafka Connect cluster is attached to. Structured like: projects/{project}/locations/{location}/clusters/{cluster}
create_time: Option<Timestamp>Output only. The time when the cluster was created.
update_time: Option<Timestamp>Output only. The time when the cluster was last updated.
labels: HashMap<String, String>Optional. Labels as key value pairs.
capacity_config: Option<CapacityConfig>Required. Capacity configuration for the Kafka Connect cluster.
state: StateOutput only. The current state of the cluster.
config: HashMap<String, String>Optional. Configurations for the worker that are overridden from the
defaults. The key of the map is a Kafka Connect worker property name, for
example: exactly.once.source.support.
platform_config: Option<PlatformConfig>Platform specific configuration properties for a Kafka Connect cluster.
Implementations§
Source§impl ConnectCluster
impl ConnectCluster
pub fn new() -> Self
Sourcepub fn set_kafka_cluster<T: Into<String>>(self, v: T) -> Self
pub fn set_kafka_cluster<T: Into<String>>(self, v: T) -> Self
Sets the value of kafka_cluster.
Sourcepub fn set_create_time<T>(self, v: T) -> Self
pub fn set_create_time<T>(self, v: T) -> Self
Sets the value of create_time.
Sourcepub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_create_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of create_time.
Sourcepub fn set_update_time<T>(self, v: T) -> Self
pub fn set_update_time<T>(self, v: T) -> Self
Sets the value of update_time.
Sourcepub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_update_time<T>(self, v: Option<T>) -> Self
Sets or clears the value of update_time.
Sourcepub fn set_labels<T, K, V>(self, v: T) -> Self
pub fn set_labels<T, K, V>(self, v: T) -> Self
Sets the value of labels.
Sourcepub fn set_capacity_config<T>(self, v: T) -> Selfwhere
T: Into<CapacityConfig>,
pub fn set_capacity_config<T>(self, v: T) -> Selfwhere
T: Into<CapacityConfig>,
Sets the value of capacity_config.
Sourcepub fn set_or_clear_capacity_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CapacityConfig>,
pub fn set_or_clear_capacity_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<CapacityConfig>,
Sets or clears the value of capacity_config.
Sourcepub fn set_config<T, K, V>(self, v: T) -> Self
pub fn set_config<T, K, V>(self, v: T) -> Self
Sets the value of config.
Sourcepub fn set_platform_config<T: Into<Option<PlatformConfig>>>(self, v: T) -> Self
pub fn set_platform_config<T: Into<Option<PlatformConfig>>>(self, v: T) -> Self
Sets the value of platform_config.
Note that all the setters affecting platform_config are mutually
exclusive.
Sourcepub fn gcp_config(&self) -> Option<&Box<ConnectGcpConfig>>
pub fn gcp_config(&self) -> Option<&Box<ConnectGcpConfig>>
The value of platform_config
if it holds a GcpConfig, None if the field is not set or
holds a different branch.
Sourcepub fn set_gcp_config<T: Into<Box<ConnectGcpConfig>>>(self, v: T) -> Self
pub fn set_gcp_config<T: Into<Box<ConnectGcpConfig>>>(self, v: T) -> Self
Sets the value of platform_config
to hold a GcpConfig.
Note that all the setters affecting platform_config are
mutually exclusive.
Trait Implementations§
Source§impl Clone for ConnectCluster
impl Clone for ConnectCluster
Source§fn clone(&self) -> ConnectCluster
fn clone(&self) -> ConnectCluster
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more