Struct aws_sdk_redshift::operation::create_cluster_subnet_group::builders::CreateClusterSubnetGroupInputBuilder
source · #[non_exhaustive]pub struct CreateClusterSubnetGroupInputBuilder { /* private fields */ }Expand description
A builder for CreateClusterSubnetGroupInput.
Implementations§
source§impl CreateClusterSubnetGroupInputBuilder
impl CreateClusterSubnetGroupInputBuilder
sourcepub fn cluster_subnet_group_name(self, input: impl Into<String>) -> Self
pub fn cluster_subnet_group_name(self, input: impl Into<String>) -> Self
The name for the subnet group. Amazon Redshift stores the value as a lowercase string.
Constraints:
-
Must contain no more than 255 alphanumeric characters or hyphens.
-
Must not be "Default".
-
Must be unique for all subnet groups that are created by your Amazon Web Services account.
Example: examplesubnetgroup
sourcepub fn set_cluster_subnet_group_name(self, input: Option<String>) -> Self
pub fn set_cluster_subnet_group_name(self, input: Option<String>) -> Self
The name for the subnet group. Amazon Redshift stores the value as a lowercase string.
Constraints:
-
Must contain no more than 255 alphanumeric characters or hyphens.
-
Must not be "Default".
-
Must be unique for all subnet groups that are created by your Amazon Web Services account.
Example: examplesubnetgroup
sourcepub fn get_cluster_subnet_group_name(&self) -> &Option<String>
pub fn get_cluster_subnet_group_name(&self) -> &Option<String>
The name for the subnet group. Amazon Redshift stores the value as a lowercase string.
Constraints:
-
Must contain no more than 255 alphanumeric characters or hyphens.
-
Must not be "Default".
-
Must be unique for all subnet groups that are created by your Amazon Web Services account.
Example: examplesubnetgroup
sourcepub fn description(self, input: impl Into<String>) -> Self
pub fn description(self, input: impl Into<String>) -> Self
A description for the subnet group.
This field is required.sourcepub fn set_description(self, input: Option<String>) -> Self
pub fn set_description(self, input: Option<String>) -> Self
A description for the subnet group.
sourcepub fn get_description(&self) -> &Option<String>
pub fn get_description(&self) -> &Option<String>
A description for the subnet group.
sourcepub fn subnet_ids(self, input: impl Into<String>) -> Self
pub fn subnet_ids(self, input: impl Into<String>) -> Self
Appends an item to subnet_ids.
To override the contents of this collection use set_subnet_ids.
An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.
sourcepub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.
sourcepub fn get_subnet_ids(&self) -> &Option<Vec<String>>
pub fn get_subnet_ids(&self) -> &Option<Vec<String>>
An array of VPC subnet IDs. A maximum of 20 subnets can be modified in a single request.
Appends an item to tags.
To override the contents of this collection use set_tags.
A list of tag instances.
A list of tag instances.
A list of tag instances.
sourcepub fn build(self) -> Result<CreateClusterSubnetGroupInput, BuildError>
pub fn build(self) -> Result<CreateClusterSubnetGroupInput, BuildError>
Consumes the builder and constructs a CreateClusterSubnetGroupInput.
source§impl CreateClusterSubnetGroupInputBuilder
impl CreateClusterSubnetGroupInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateClusterSubnetGroupOutput, SdkError<CreateClusterSubnetGroupError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateClusterSubnetGroupOutput, SdkError<CreateClusterSubnetGroupError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateClusterSubnetGroupInputBuilder
impl Clone for CreateClusterSubnetGroupInputBuilder
source§fn clone(&self) -> CreateClusterSubnetGroupInputBuilder
fn clone(&self) -> CreateClusterSubnetGroupInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Default for CreateClusterSubnetGroupInputBuilder
impl Default for CreateClusterSubnetGroupInputBuilder
source§fn default() -> CreateClusterSubnetGroupInputBuilder
fn default() -> CreateClusterSubnetGroupInputBuilder
source§impl PartialEq for CreateClusterSubnetGroupInputBuilder
impl PartialEq for CreateClusterSubnetGroupInputBuilder
source§fn eq(&self, other: &CreateClusterSubnetGroupInputBuilder) -> bool
fn eq(&self, other: &CreateClusterSubnetGroupInputBuilder) -> bool
self and other values to be equal, and is used by ==.impl StructuralPartialEq for CreateClusterSubnetGroupInputBuilder
Auto Trait Implementations§
impl Freeze for CreateClusterSubnetGroupInputBuilder
impl RefUnwindSafe for CreateClusterSubnetGroupInputBuilder
impl Send for CreateClusterSubnetGroupInputBuilder
impl Sync for CreateClusterSubnetGroupInputBuilder
impl Unpin for CreateClusterSubnetGroupInputBuilder
impl UnwindSafe for CreateClusterSubnetGroupInputBuilder
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> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)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