Struct aws_sdk_cloud9::operation::create_environment_membership::builders::CreateEnvironmentMembershipInputBuilder
source · #[non_exhaustive]pub struct CreateEnvironmentMembershipInputBuilder { /* private fields */ }
Expand description
A builder for CreateEnvironmentMembershipInput
.
Implementations§
source§impl CreateEnvironmentMembershipInputBuilder
impl CreateEnvironmentMembershipInputBuilder
sourcepub fn environment_id(self, input: impl Into<String>) -> Self
pub fn environment_id(self, input: impl Into<String>) -> Self
The ID of the environment that contains the environment member you want to add.
This field is required.sourcepub fn set_environment_id(self, input: Option<String>) -> Self
pub fn set_environment_id(self, input: Option<String>) -> Self
The ID of the environment that contains the environment member you want to add.
sourcepub fn get_environment_id(&self) -> &Option<String>
pub fn get_environment_id(&self) -> &Option<String>
The ID of the environment that contains the environment member you want to add.
sourcepub fn user_arn(self, input: impl Into<String>) -> Self
pub fn user_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the environment member you want to add.
This field is required.sourcepub fn set_user_arn(self, input: Option<String>) -> Self
pub fn set_user_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the environment member you want to add.
sourcepub fn get_user_arn(&self) -> &Option<String>
pub fn get_user_arn(&self) -> &Option<String>
The Amazon Resource Name (ARN) of the environment member you want to add.
sourcepub fn permissions(self, input: MemberPermissions) -> Self
pub fn permissions(self, input: MemberPermissions) -> Self
The type of environment member permissions you want to associate with this environment member. Available values include:
-
read-only
: Has read-only access to the environment. -
read-write
: Has read-write access to the environment.
sourcepub fn set_permissions(self, input: Option<MemberPermissions>) -> Self
pub fn set_permissions(self, input: Option<MemberPermissions>) -> Self
The type of environment member permissions you want to associate with this environment member. Available values include:
-
read-only
: Has read-only access to the environment. -
read-write
: Has read-write access to the environment.
sourcepub fn get_permissions(&self) -> &Option<MemberPermissions>
pub fn get_permissions(&self) -> &Option<MemberPermissions>
The type of environment member permissions you want to associate with this environment member. Available values include:
-
read-only
: Has read-only access to the environment. -
read-write
: Has read-write access to the environment.
sourcepub fn build(self) -> Result<CreateEnvironmentMembershipInput, BuildError>
pub fn build(self) -> Result<CreateEnvironmentMembershipInput, BuildError>
Consumes the builder and constructs a CreateEnvironmentMembershipInput
.
source§impl CreateEnvironmentMembershipInputBuilder
impl CreateEnvironmentMembershipInputBuilder
sourcepub async fn send_with(
self,
client: &Client,
) -> Result<CreateEnvironmentMembershipOutput, SdkError<CreateEnvironmentMembershipError, HttpResponse>>
pub async fn send_with( self, client: &Client, ) -> Result<CreateEnvironmentMembershipOutput, SdkError<CreateEnvironmentMembershipError, HttpResponse>>
Sends a request with this input using the given client.
Trait Implementations§
source§impl Clone for CreateEnvironmentMembershipInputBuilder
impl Clone for CreateEnvironmentMembershipInputBuilder
source§fn clone(&self) -> CreateEnvironmentMembershipInputBuilder
fn clone(&self) -> CreateEnvironmentMembershipInputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Default for CreateEnvironmentMembershipInputBuilder
impl Default for CreateEnvironmentMembershipInputBuilder
source§fn default() -> CreateEnvironmentMembershipInputBuilder
fn default() -> CreateEnvironmentMembershipInputBuilder
source§impl PartialEq for CreateEnvironmentMembershipInputBuilder
impl PartialEq for CreateEnvironmentMembershipInputBuilder
source§fn eq(&self, other: &CreateEnvironmentMembershipInputBuilder) -> bool
fn eq(&self, other: &CreateEnvironmentMembershipInputBuilder) -> bool
self
and other
values to be equal, and is used by ==
.impl StructuralPartialEq for CreateEnvironmentMembershipInputBuilder
Auto Trait Implementations§
impl Freeze for CreateEnvironmentMembershipInputBuilder
impl RefUnwindSafe for CreateEnvironmentMembershipInputBuilder
impl Send for CreateEnvironmentMembershipInputBuilder
impl Sync for CreateEnvironmentMembershipInputBuilder
impl Unpin for CreateEnvironmentMembershipInputBuilder
impl UnwindSafe for CreateEnvironmentMembershipInputBuilder
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