Struct aws_sdk_cloudhsmv2::types::builders::ClusterBuilder
source · #[non_exhaustive]pub struct ClusterBuilder { /* private fields */ }Expand description
A builder for Cluster.
Implementations§
source§impl ClusterBuilder
impl ClusterBuilder
sourcepub fn backup_policy(self, input: BackupPolicy) -> Self
pub fn backup_policy(self, input: BackupPolicy) -> Self
The cluster's backup policy.
sourcepub fn set_backup_policy(self, input: Option<BackupPolicy>) -> Self
pub fn set_backup_policy(self, input: Option<BackupPolicy>) -> Self
The cluster's backup policy.
sourcepub fn get_backup_policy(&self) -> &Option<BackupPolicy>
pub fn get_backup_policy(&self) -> &Option<BackupPolicy>
The cluster's backup policy.
sourcepub fn backup_retention_policy(self, input: BackupRetentionPolicy) -> Self
pub fn backup_retention_policy(self, input: BackupRetentionPolicy) -> Self
A policy that defines how the service retains backups.
sourcepub fn set_backup_retention_policy(
self,
input: Option<BackupRetentionPolicy>
) -> Self
pub fn set_backup_retention_policy( self, input: Option<BackupRetentionPolicy> ) -> Self
A policy that defines how the service retains backups.
sourcepub fn get_backup_retention_policy(&self) -> &Option<BackupRetentionPolicy>
pub fn get_backup_retention_policy(&self) -> &Option<BackupRetentionPolicy>
A policy that defines how the service retains backups.
sourcepub fn cluster_id(self, input: impl Into<String>) -> Self
pub fn cluster_id(self, input: impl Into<String>) -> Self
The cluster's identifier (ID).
sourcepub fn set_cluster_id(self, input: Option<String>) -> Self
pub fn set_cluster_id(self, input: Option<String>) -> Self
The cluster's identifier (ID).
sourcepub fn get_cluster_id(&self) -> &Option<String>
pub fn get_cluster_id(&self) -> &Option<String>
The cluster's identifier (ID).
sourcepub fn create_timestamp(self, input: DateTime) -> Self
pub fn create_timestamp(self, input: DateTime) -> Self
The date and time when the cluster was created.
sourcepub fn set_create_timestamp(self, input: Option<DateTime>) -> Self
pub fn set_create_timestamp(self, input: Option<DateTime>) -> Self
The date and time when the cluster was created.
sourcepub fn get_create_timestamp(&self) -> &Option<DateTime>
pub fn get_create_timestamp(&self) -> &Option<DateTime>
The date and time when the cluster was created.
sourcepub fn hsms(self, input: Hsm) -> Self
pub fn hsms(self, input: Hsm) -> Self
Appends an item to hsms.
To override the contents of this collection use set_hsms.
Contains information about the HSMs in the cluster.
sourcepub fn set_hsms(self, input: Option<Vec<Hsm>>) -> Self
pub fn set_hsms(self, input: Option<Vec<Hsm>>) -> Self
Contains information about the HSMs in the cluster.
sourcepub fn get_hsms(&self) -> &Option<Vec<Hsm>>
pub fn get_hsms(&self) -> &Option<Vec<Hsm>>
Contains information about the HSMs in the cluster.
sourcepub fn hsm_type(self, input: impl Into<String>) -> Self
pub fn hsm_type(self, input: impl Into<String>) -> Self
The type of HSM that the cluster contains.
sourcepub fn set_hsm_type(self, input: Option<String>) -> Self
pub fn set_hsm_type(self, input: Option<String>) -> Self
The type of HSM that the cluster contains.
sourcepub fn get_hsm_type(&self) -> &Option<String>
pub fn get_hsm_type(&self) -> &Option<String>
The type of HSM that the cluster contains.
sourcepub fn pre_co_password(self, input: impl Into<String>) -> Self
pub fn pre_co_password(self, input: impl Into<String>) -> Self
The default password for the cluster's Pre-Crypto Officer (PRECO) user.
sourcepub fn set_pre_co_password(self, input: Option<String>) -> Self
pub fn set_pre_co_password(self, input: Option<String>) -> Self
The default password for the cluster's Pre-Crypto Officer (PRECO) user.
sourcepub fn get_pre_co_password(&self) -> &Option<String>
pub fn get_pre_co_password(&self) -> &Option<String>
The default password for the cluster's Pre-Crypto Officer (PRECO) user.
sourcepub fn security_group(self, input: impl Into<String>) -> Self
pub fn security_group(self, input: impl Into<String>) -> Self
The identifier (ID) of the cluster's security group.
sourcepub fn set_security_group(self, input: Option<String>) -> Self
pub fn set_security_group(self, input: Option<String>) -> Self
The identifier (ID) of the cluster's security group.
sourcepub fn get_security_group(&self) -> &Option<String>
pub fn get_security_group(&self) -> &Option<String>
The identifier (ID) of the cluster's security group.
sourcepub fn source_backup_id(self, input: impl Into<String>) -> Self
pub fn source_backup_id(self, input: impl Into<String>) -> Self
The identifier (ID) of the backup used to create the cluster. This value exists only when the cluster was created from a backup.
sourcepub fn set_source_backup_id(self, input: Option<String>) -> Self
pub fn set_source_backup_id(self, input: Option<String>) -> Self
The identifier (ID) of the backup used to create the cluster. This value exists only when the cluster was created from a backup.
sourcepub fn get_source_backup_id(&self) -> &Option<String>
pub fn get_source_backup_id(&self) -> &Option<String>
The identifier (ID) of the backup used to create the cluster. This value exists only when the cluster was created from a backup.
sourcepub fn state(self, input: ClusterState) -> Self
pub fn state(self, input: ClusterState) -> Self
The cluster's state.
sourcepub fn set_state(self, input: Option<ClusterState>) -> Self
pub fn set_state(self, input: Option<ClusterState>) -> Self
The cluster's state.
sourcepub fn get_state(&self) -> &Option<ClusterState>
pub fn get_state(&self) -> &Option<ClusterState>
The cluster's state.
sourcepub fn state_message(self, input: impl Into<String>) -> Self
pub fn state_message(self, input: impl Into<String>) -> Self
A description of the cluster's state.
sourcepub fn set_state_message(self, input: Option<String>) -> Self
pub fn set_state_message(self, input: Option<String>) -> Self
A description of the cluster's state.
sourcepub fn get_state_message(&self) -> &Option<String>
pub fn get_state_message(&self) -> &Option<String>
A description of the cluster's state.
sourcepub fn subnet_mapping(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn subnet_mapping(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to subnet_mapping.
To override the contents of this collection use set_subnet_mapping.
A map from availability zone to the cluster’s subnet in that availability zone.
sourcepub fn set_subnet_mapping(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_subnet_mapping(self, input: Option<HashMap<String, String>>) -> Self
A map from availability zone to the cluster’s subnet in that availability zone.
sourcepub fn get_subnet_mapping(&self) -> &Option<HashMap<String, String>>
pub fn get_subnet_mapping(&self) -> &Option<HashMap<String, String>>
A map from availability zone to the cluster’s subnet in that availability zone.
sourcepub fn vpc_id(self, input: impl Into<String>) -> Self
pub fn vpc_id(self, input: impl Into<String>) -> Self
The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.
sourcepub fn set_vpc_id(self, input: Option<String>) -> Self
pub fn set_vpc_id(self, input: Option<String>) -> Self
The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.
sourcepub fn get_vpc_id(&self) -> &Option<String>
pub fn get_vpc_id(&self) -> &Option<String>
The identifier (ID) of the virtual private cloud (VPC) that contains the cluster.
sourcepub fn certificates(self, input: Certificates) -> Self
pub fn certificates(self, input: Certificates) -> Self
Contains one or more certificates or a certificate signing request (CSR).
sourcepub fn set_certificates(self, input: Option<Certificates>) -> Self
pub fn set_certificates(self, input: Option<Certificates>) -> Self
Contains one or more certificates or a certificate signing request (CSR).
sourcepub fn get_certificates(&self) -> &Option<Certificates>
pub fn get_certificates(&self) -> &Option<Certificates>
Contains one or more certificates or a certificate signing request (CSR).
sourcepub fn tag_list(self, input: Tag) -> Self
pub fn tag_list(self, input: Tag) -> Self
Appends an item to tag_list.
To override the contents of this collection use set_tag_list.
The list of tags for the cluster.
sourcepub fn set_tag_list(self, input: Option<Vec<Tag>>) -> Self
pub fn set_tag_list(self, input: Option<Vec<Tag>>) -> Self
The list of tags for the cluster.
sourcepub fn get_tag_list(&self) -> &Option<Vec<Tag>>
pub fn get_tag_list(&self) -> &Option<Vec<Tag>>
The list of tags for the cluster.
Trait Implementations§
source§impl Clone for ClusterBuilder
impl Clone for ClusterBuilder
source§fn clone(&self) -> ClusterBuilder
fn clone(&self) -> ClusterBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for ClusterBuilder
impl Debug for ClusterBuilder
source§impl Default for ClusterBuilder
impl Default for ClusterBuilder
source§fn default() -> ClusterBuilder
fn default() -> ClusterBuilder
source§impl PartialEq for ClusterBuilder
impl PartialEq for ClusterBuilder
source§fn eq(&self, other: &ClusterBuilder) -> bool
fn eq(&self, other: &ClusterBuilder) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for ClusterBuilder
Auto Trait Implementations§
impl Freeze for ClusterBuilder
impl RefUnwindSafe for ClusterBuilder
impl Send for ClusterBuilder
impl Sync for ClusterBuilder
impl Unpin for ClusterBuilder
impl UnwindSafe for ClusterBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more