#[non_exhaustive]pub struct Cluster {
pub name: String,
pub create_time: Option<Timestamp>,
pub update_time: Option<Timestamp>,
pub labels: HashMap<String, String>,
pub capacity_config: Option<CapacityConfig>,
pub rebalance_config: Option<RebalanceConfig>,
pub state: State,
pub satisfies_pzi: Option<bool>,
pub satisfies_pzs: Option<bool>,
pub tls_config: Option<TlsConfig>,
pub platform_config: Option<PlatformConfig>,
/* private fields */
}Expand description
An Apache Kafka 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 cluster. Structured like: projects/{project_number}/locations/{location}/clusters/{cluster_id}
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 cluster.
rebalance_config: Option<RebalanceConfig>Optional. Rebalance configuration for the Kafka cluster.
state: StateOutput only. The current state of the cluster.
satisfies_pzi: Option<bool>Output only. Reserved for future use.
satisfies_pzs: Option<bool>Output only. Reserved for future use.
tls_config: Option<TlsConfig>Optional. TLS configuration for the Kafka cluster.
platform_config: Option<PlatformConfig>Platform specific configuration properties for a Kafka cluster.
Implementations§
Source§impl Cluster
impl Cluster
pub fn new() -> Self
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_rebalance_config<T>(self, v: T) -> Selfwhere
T: Into<RebalanceConfig>,
pub fn set_rebalance_config<T>(self, v: T) -> Selfwhere
T: Into<RebalanceConfig>,
Sets the value of rebalance_config.
Sourcepub fn set_or_clear_rebalance_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<RebalanceConfig>,
pub fn set_or_clear_rebalance_config<T>(self, v: Option<T>) -> Selfwhere
T: Into<RebalanceConfig>,
Sets or clears the value of rebalance_config.
Sourcepub fn set_satisfies_pzi<T>(self, v: T) -> Self
pub fn set_satisfies_pzi<T>(self, v: T) -> Self
Sets the value of satisfies_pzi.
Sourcepub fn set_or_clear_satisfies_pzi<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_satisfies_pzi<T>(self, v: Option<T>) -> Self
Sets or clears the value of satisfies_pzi.
Sourcepub fn set_satisfies_pzs<T>(self, v: T) -> Self
pub fn set_satisfies_pzs<T>(self, v: T) -> Self
Sets the value of satisfies_pzs.
Sourcepub fn set_or_clear_satisfies_pzs<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_satisfies_pzs<T>(self, v: Option<T>) -> Self
Sets or clears the value of satisfies_pzs.
Sourcepub fn set_tls_config<T>(self, v: T) -> Self
pub fn set_tls_config<T>(self, v: T) -> Self
Sets the value of tls_config.
Sourcepub fn set_or_clear_tls_config<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_tls_config<T>(self, v: Option<T>) -> Self
Sets or clears the value of tls_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<GcpConfig>>
pub fn gcp_config(&self) -> Option<&Box<GcpConfig>>
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<GcpConfig>>>(self, v: T) -> Self
pub fn set_gcp_config<T: Into<Box<GcpConfig>>>(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.