Struct aws_sdk_redshift::operation::modify_cluster_iam_roles::builders::ModifyClusterIamRolesInputBuilder
source · #[non_exhaustive]pub struct ModifyClusterIamRolesInputBuilder { /* private fields */ }
Expand description
A builder for ModifyClusterIamRolesInput
.
Implementations§
source§impl ModifyClusterIamRolesInputBuilder
impl ModifyClusterIamRolesInputBuilder
sourcepub fn cluster_identifier(self, input: impl Into<String>) -> Self
pub fn cluster_identifier(self, input: impl Into<String>) -> Self
The unique identifier of the cluster for which you want to associate or disassociate IAM roles.
This field is required.sourcepub fn set_cluster_identifier(self, input: Option<String>) -> Self
pub fn set_cluster_identifier(self, input: Option<String>) -> Self
The unique identifier of the cluster for which you want to associate or disassociate IAM roles.
sourcepub fn get_cluster_identifier(&self) -> &Option<String>
pub fn get_cluster_identifier(&self) -> &Option<String>
The unique identifier of the cluster for which you want to associate or disassociate IAM roles.
sourcepub fn add_iam_roles(self, input: impl Into<String>) -> Self
pub fn add_iam_roles(self, input: impl Into<String>) -> Self
Appends an item to add_iam_roles
.
To override the contents of this collection use set_add_iam_roles
.
Zero or more IAM roles to associate with the cluster. The roles must be in their Amazon Resource Name (ARN) format.
sourcepub fn set_add_iam_roles(self, input: Option<Vec<String>>) -> Self
pub fn set_add_iam_roles(self, input: Option<Vec<String>>) -> Self
Zero or more IAM roles to associate with the cluster. The roles must be in their Amazon Resource Name (ARN) format.
sourcepub fn get_add_iam_roles(&self) -> &Option<Vec<String>>
pub fn get_add_iam_roles(&self) -> &Option<Vec<String>>
Zero or more IAM roles to associate with the cluster. The roles must be in their Amazon Resource Name (ARN) format.
sourcepub fn remove_iam_roles(self, input: impl Into<String>) -> Self
pub fn remove_iam_roles(self, input: impl Into<String>) -> Self
Appends an item to remove_iam_roles
.
To override the contents of this collection use set_remove_iam_roles
.
Zero or more IAM roles in ARN format to disassociate from the cluster.
sourcepub fn set_remove_iam_roles(self, input: Option<Vec<String>>) -> Self
pub fn set_remove_iam_roles(self, input: Option<Vec<String>>) -> Self
Zero or more IAM roles in ARN format to disassociate from the cluster.
sourcepub fn get_remove_iam_roles(&self) -> &Option<Vec<String>>
pub fn get_remove_iam_roles(&self) -> &Option<Vec<String>>
Zero or more IAM roles in ARN format to disassociate from the cluster.
sourcepub fn default_iam_role_arn(self, input: impl Into<String>) -> Self
pub fn default_iam_role_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for the IAM role that was set as default for the cluster when the cluster was last modified.
sourcepub fn set_default_iam_role_arn(self, input: Option<String>) -> Self
pub fn set_default_iam_role_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for the IAM role that was set as default for the cluster when the cluster was last modified.
sourcepub fn get_default_iam_role_arn(&self) -> &Option<String>
pub fn get_default_iam_role_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) for the IAM role that was set as default for the cluster when the cluster was last modified.
sourcepub fn build(self) -> Result<ModifyClusterIamRolesInput, BuildError>
pub fn build(self) -> Result<ModifyClusterIamRolesInput, BuildError>
Consumes the builder and constructs a ModifyClusterIamRolesInput
.
source§impl ModifyClusterIamRolesInputBuilder
impl ModifyClusterIamRolesInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<ModifyClusterIamRolesOutput, SdkError<ModifyClusterIamRolesError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<ModifyClusterIamRolesOutput, SdkError<ModifyClusterIamRolesError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for ModifyClusterIamRolesInputBuilder
impl Clone for ModifyClusterIamRolesInputBuilder
source§fn clone(&self) -> ModifyClusterIamRolesInputBuilder
fn clone(&self) -> ModifyClusterIamRolesInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for ModifyClusterIamRolesInputBuilder
impl Default for ModifyClusterIamRolesInputBuilder
source§fn default() -> ModifyClusterIamRolesInputBuilder
fn default() -> ModifyClusterIamRolesInputBuilder
source§impl PartialEq for ModifyClusterIamRolesInputBuilder
impl PartialEq for ModifyClusterIamRolesInputBuilder
source§fn eq(&self, other: &ModifyClusterIamRolesInputBuilder) -> bool
fn eq(&self, other: &ModifyClusterIamRolesInputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for ModifyClusterIamRolesInputBuilder
Auto Trait Implementations§
impl Freeze for ModifyClusterIamRolesInputBuilder
impl RefUnwindSafe for ModifyClusterIamRolesInputBuilder
impl Send for ModifyClusterIamRolesInputBuilder
impl Sync for ModifyClusterIamRolesInputBuilder
impl Unpin for ModifyClusterIamRolesInputBuilder
impl UnwindSafe for ModifyClusterIamRolesInputBuilder
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