Struct aws_sdk_workmail::input::create_resource_input::Builder
source · pub struct Builder { /* private fields */ }
Expand description
A builder for CreateResourceInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn organization_id(self, input: impl Into<String>) -> Self
pub fn organization_id(self, input: impl Into<String>) -> Self
The identifier associated with the organization for which the resource is created.
sourcepub fn set_organization_id(self, input: Option<String>) -> Self
pub fn set_organization_id(self, input: Option<String>) -> Self
The identifier associated with the organization for which the resource is created.
sourcepub fn type(self, input: ResourceType) -> Self
pub fn type(self, input: ResourceType) -> Self
The type of the new resource. The available types are equipment
and room
.
sourcepub fn set_type(self, input: Option<ResourceType>) -> Self
pub fn set_type(self, input: Option<ResourceType>) -> Self
The type of the new resource. The available types are equipment
and room
.
sourcepub fn build(self) -> Result<CreateResourceInput, BuildError>
pub fn build(self) -> Result<CreateResourceInput, BuildError>
Consumes the builder and constructs a CreateResourceInput
.