Struct aws_sdk_workspaces::model::workspace_directory::Builder
source · [−]#[non_exhaustive]pub struct Builder { /* private fields */ }
Expand description
A builder for WorkspaceDirectory
Implementations
sourceimpl Builder
impl Builder
sourcepub fn directory_id(self, input: impl Into<String>) -> Self
pub fn directory_id(self, input: impl Into<String>) -> Self
The directory identifier.
sourcepub fn set_directory_id(self, input: Option<String>) -> Self
pub fn set_directory_id(self, input: Option<String>) -> Self
The directory identifier.
sourcepub fn directory_name(self, input: impl Into<String>) -> Self
pub fn directory_name(self, input: impl Into<String>) -> Self
The name of the directory.
sourcepub fn set_directory_name(self, input: Option<String>) -> Self
pub fn set_directory_name(self, input: Option<String>) -> Self
The name of the directory.
sourcepub fn registration_code(self, input: impl Into<String>) -> Self
pub fn registration_code(self, input: impl Into<String>) -> Self
The registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory.
sourcepub fn set_registration_code(self, input: Option<String>) -> Self
pub fn set_registration_code(self, input: Option<String>) -> Self
The registration code for the directory. This is the code that users enter in their Amazon WorkSpaces client application to connect to the directory.
sourcepub fn subnet_ids(self, input: impl Into<String>) -> Self
pub fn subnet_ids(self, input: impl Into<String>) -> Self
Appends an item to subnet_ids
.
To override the contents of this collection use set_subnet_ids
.
The identifiers of the subnets used with the directory.
sourcepub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_subnet_ids(self, input: Option<Vec<String>>) -> Self
The identifiers of the subnets used with the directory.
sourcepub fn dns_ip_addresses(self, input: impl Into<String>) -> Self
pub fn dns_ip_addresses(self, input: impl Into<String>) -> Self
Appends an item to dns_ip_addresses
.
To override the contents of this collection use set_dns_ip_addresses
.
The IP addresses of the DNS servers for the directory.
sourcepub fn set_dns_ip_addresses(self, input: Option<Vec<String>>) -> Self
pub fn set_dns_ip_addresses(self, input: Option<Vec<String>>) -> Self
The IP addresses of the DNS servers for the directory.
sourcepub fn customer_user_name(self, input: impl Into<String>) -> Self
pub fn customer_user_name(self, input: impl Into<String>) -> Self
The user name for the service account.
sourcepub fn set_customer_user_name(self, input: Option<String>) -> Self
pub fn set_customer_user_name(self, input: Option<String>) -> Self
The user name for the service account.
sourcepub fn iam_role_id(self, input: impl Into<String>) -> Self
pub fn iam_role_id(self, input: impl Into<String>) -> Self
The identifier of the IAM role. This is the role that allows Amazon WorkSpaces to make calls to other services, such as Amazon EC2, on your behalf.
sourcepub fn set_iam_role_id(self, input: Option<String>) -> Self
pub fn set_iam_role_id(self, input: Option<String>) -> Self
The identifier of the IAM role. This is the role that allows Amazon WorkSpaces to make calls to other services, such as Amazon EC2, on your behalf.
sourcepub fn directory_type(self, input: WorkspaceDirectoryType) -> Self
pub fn directory_type(self, input: WorkspaceDirectoryType) -> Self
The directory type.
sourcepub fn set_directory_type(self, input: Option<WorkspaceDirectoryType>) -> Self
pub fn set_directory_type(self, input: Option<WorkspaceDirectoryType>) -> Self
The directory type.
sourcepub fn workspace_security_group_id(self, input: impl Into<String>) -> Self
pub fn workspace_security_group_id(self, input: impl Into<String>) -> Self
The identifier of the security group that is assigned to new WorkSpaces.
sourcepub fn set_workspace_security_group_id(self, input: Option<String>) -> Self
pub fn set_workspace_security_group_id(self, input: Option<String>) -> Self
The identifier of the security group that is assigned to new WorkSpaces.
sourcepub fn state(self, input: WorkspaceDirectoryState) -> Self
pub fn state(self, input: WorkspaceDirectoryState) -> Self
The state of the directory's registration with Amazon WorkSpaces. After a directory is deregistered, the DEREGISTERED
state is returned very briefly before the directory metadata is cleaned up, so this state is rarely returned. To confirm that a directory is deregistered, check for the directory ID by using DescribeWorkspaceDirectories. If the directory ID isn't returned, then the directory has been successfully deregistered.
sourcepub fn set_state(self, input: Option<WorkspaceDirectoryState>) -> Self
pub fn set_state(self, input: Option<WorkspaceDirectoryState>) -> Self
The state of the directory's registration with Amazon WorkSpaces. After a directory is deregistered, the DEREGISTERED
state is returned very briefly before the directory metadata is cleaned up, so this state is rarely returned. To confirm that a directory is deregistered, check for the directory ID by using DescribeWorkspaceDirectories. If the directory ID isn't returned, then the directory has been successfully deregistered.
sourcepub fn workspace_creation_properties(
self,
input: DefaultWorkspaceCreationProperties
) -> Self
pub fn workspace_creation_properties(
self,
input: DefaultWorkspaceCreationProperties
) -> Self
The default creation properties for all WorkSpaces in the directory.
sourcepub fn set_workspace_creation_properties(
self,
input: Option<DefaultWorkspaceCreationProperties>
) -> Self
pub fn set_workspace_creation_properties(
self,
input: Option<DefaultWorkspaceCreationProperties>
) -> Self
The default creation properties for all WorkSpaces in the directory.
sourcepub fn ip_group_ids(self, input: impl Into<String>) -> Self
pub fn ip_group_ids(self, input: impl Into<String>) -> Self
Appends an item to ip_group_ids
.
To override the contents of this collection use set_ip_group_ids
.
The identifiers of the IP access control groups associated with the directory.
sourcepub fn set_ip_group_ids(self, input: Option<Vec<String>>) -> Self
pub fn set_ip_group_ids(self, input: Option<Vec<String>>) -> Self
The identifiers of the IP access control groups associated with the directory.
sourcepub fn workspace_access_properties(
self,
input: WorkspaceAccessProperties
) -> Self
pub fn workspace_access_properties(
self,
input: WorkspaceAccessProperties
) -> Self
The devices and operating systems that users can use to access WorkSpaces.
sourcepub fn set_workspace_access_properties(
self,
input: Option<WorkspaceAccessProperties>
) -> Self
pub fn set_workspace_access_properties(
self,
input: Option<WorkspaceAccessProperties>
) -> Self
The devices and operating systems that users can use to access WorkSpaces.
sourcepub fn tenancy(self, input: Tenancy) -> Self
pub fn tenancy(self, input: Tenancy) -> Self
Specifies whether the directory is dedicated or shared. To use Bring Your Own License (BYOL), this value must be set to DEDICATED
. For more information, see Bring Your Own Windows Desktop Images.
sourcepub fn set_tenancy(self, input: Option<Tenancy>) -> Self
pub fn set_tenancy(self, input: Option<Tenancy>) -> Self
Specifies whether the directory is dedicated or shared. To use Bring Your Own License (BYOL), this value must be set to DEDICATED
. For more information, see Bring Your Own Windows Desktop Images.
sourcepub fn selfservice_permissions(self, input: SelfservicePermissions) -> Self
pub fn selfservice_permissions(self, input: SelfservicePermissions) -> Self
The default self-service permissions for WorkSpaces in the directory.
sourcepub fn set_selfservice_permissions(
self,
input: Option<SelfservicePermissions>
) -> Self
pub fn set_selfservice_permissions(
self,
input: Option<SelfservicePermissions>
) -> Self
The default self-service permissions for WorkSpaces in the directory.
sourcepub fn build(self) -> WorkspaceDirectory
pub fn build(self) -> WorkspaceDirectory
Consumes the builder and constructs a WorkspaceDirectory
Trait Implementations
impl StructuralPartialEq for Builder
Auto Trait Implementations
impl RefUnwindSafe for Builder
impl Send for Builder
impl Sync for Builder
impl Unpin for Builder
impl UnwindSafe for Builder
Blanket Implementations
sourceimpl<T> BorrowMut<T> for T where
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
const: unstable · sourcefn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
sourceimpl<T> Instrument for T
impl<T> Instrument for T
sourcefn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
sourcefn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
sourceimpl<T> ToOwned for T where
T: Clone,
impl<T> ToOwned for T where
T: Clone,
type Owned = T
type Owned = T
The resulting type after obtaining ownership.
sourcefn clone_into(&self, target: &mut T)
fn clone_into(&self, target: &mut T)
toowned_clone_into
)Uses borrowed data to replace owned data, usually by cloning. Read more
sourceimpl<T> WithSubscriber for T
impl<T> WithSubscriber for T
sourcefn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> where
S: Into<Dispatch>,
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
sourcefn with_current_subscriber(self) -> WithDispatch<Self>
fn with_current_subscriber(self) -> WithDispatch<Self>
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more