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 ==
.