Struct aws_sdk_ec2::model::allowed_principal::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for AllowedPrincipal
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn principal_type(self, input: PrincipalType) -> Self
pub fn principal_type(self, input: PrincipalType) -> Self
The type of principal.
sourcepub fn set_principal_type(self, input: Option<PrincipalType>) -> Self
pub fn set_principal_type(self, input: Option<PrincipalType>) -> Self
The type of principal.
sourcepub fn principal(self, input: impl Into<String>) -> Self
pub fn principal(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the principal.
sourcepub fn set_principal(self, input: Option<String>) -> Self
pub fn set_principal(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the principal.
sourcepub fn service_permission_id(self, input: impl Into<String>) -> Self
pub fn service_permission_id(self, input: impl Into<String>) -> Self
The ID of the service permission.
sourcepub fn set_service_permission_id(self, input: Option<String>) -> Self
pub fn set_service_permission_id(self, input: Option<String>) -> Self
The ID of the service permission.
The tags.
sourcepub fn service_id(self, input: impl Into<String>) -> Self
pub fn service_id(self, input: impl Into<String>) -> Self
The ID of the service.
sourcepub fn set_service_id(self, input: Option<String>) -> Self
pub fn set_service_id(self, input: Option<String>) -> Self
The ID of the service.
sourcepub fn build(self) -> AllowedPrincipal
pub fn build(self) -> AllowedPrincipal
Consumes the builder and constructs a AllowedPrincipal
.