pub struct Builder { /* private fields */ }
Expand description
A builder for CreateDirectoryConfigInput
.
Implementations§
source§impl Builder
impl Builder
sourcepub fn directory_name(self, input: impl Into<String>) -> Self
pub fn directory_name(self, input: impl Into<String>) -> Self
The fully qualified name of the directory (for example, corp.example.com).
sourcepub fn set_directory_name(self, input: Option<String>) -> Self
pub fn set_directory_name(self, input: Option<String>) -> Self
The fully qualified name of the directory (for example, corp.example.com).
sourcepub fn organizational_unit_distinguished_names(
self,
input: impl Into<String>
) -> Self
pub fn organizational_unit_distinguished_names(
self,
input: impl Into<String>
) -> Self
Appends an item to organizational_unit_distinguished_names
.
To override the contents of this collection use set_organizational_unit_distinguished_names
.
The distinguished names of the organizational units for computer accounts.
sourcepub fn set_organizational_unit_distinguished_names(
self,
input: Option<Vec<String>>
) -> Self
pub fn set_organizational_unit_distinguished_names(
self,
input: Option<Vec<String>>
) -> Self
The distinguished names of the organizational units for computer accounts.
sourcepub fn service_account_credentials(
self,
input: ServiceAccountCredentials
) -> Self
pub fn service_account_credentials(
self,
input: ServiceAccountCredentials
) -> Self
The credentials for the service account used by the fleet or image builder to connect to the directory.
sourcepub fn set_service_account_credentials(
self,
input: Option<ServiceAccountCredentials>
) -> Self
pub fn set_service_account_credentials(
self,
input: Option<ServiceAccountCredentials>
) -> Self
The credentials for the service account used by the fleet or image builder to connect to the directory.
sourcepub fn build(self) -> Result<CreateDirectoryConfigInput, BuildError>
pub fn build(self) -> Result<CreateDirectoryConfigInput, BuildError>
Consumes the builder and constructs a CreateDirectoryConfigInput
.
Examples found in repository?
1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateDirectoryConfig,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateDirectoryConfigError>,
> {
let handle = self.handle.clone();
let operation = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
Ok(crate::operation::customize::CustomizableOperation { handle, operation })
}
/// Sends the request and returns the response.
///
/// If an error occurs, an `SdkError` will be returned with additional details that
/// can be matched against.
///
/// By default, any retryable failures will be retried twice. Retry behavior
/// is configurable with the [RetryConfig](aws_smithy_types::retry::RetryConfig), which can be
/// set when configuring the client.
pub async fn send(
self,
) -> std::result::Result<
crate::output::CreateDirectoryConfigOutput,
aws_smithy_http::result::SdkError<crate::error::CreateDirectoryConfigError>,
> {
let op = self
.inner
.build()
.map_err(aws_smithy_http::result::SdkError::construction_failure)?
.make_operation(&self.handle.conf)
.await
.map_err(aws_smithy_http::result::SdkError::construction_failure)?;
self.handle.client.call(op).await
}