pub struct Builder { /* private fields */ }Expand description
A builder for CreateRemoteAccessSessionInput.
Implementations§
source§impl Builder
impl Builder
sourcepub fn project_arn(self, input: impl Into<String>) -> Self
pub fn project_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the project for which you want to create a remote access session.
sourcepub fn set_project_arn(self, input: Option<String>) -> Self
pub fn set_project_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the project for which you want to create a remote access session.
sourcepub fn device_arn(self, input: impl Into<String>) -> Self
pub fn device_arn(self, input: impl Into<String>) -> Self
The ARN of the device for which you want to create a remote access session.
sourcepub fn set_device_arn(self, input: Option<String>) -> Self
pub fn set_device_arn(self, input: Option<String>) -> Self
The ARN of the device for which you want to create a remote access session.
sourcepub fn instance_arn(self, input: impl Into<String>) -> Self
pub fn instance_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) of the device instance for which you want to create a remote access session.
sourcepub fn set_instance_arn(self, input: Option<String>) -> Self
pub fn set_instance_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) of the device instance for which you want to create a remote access session.
sourcepub fn ssh_public_key(self, input: impl Into<String>) -> Self
pub fn ssh_public_key(self, input: impl Into<String>) -> Self
Ignored. The public key of the ssh key pair you want to use for connecting to remote devices in your remote debugging session. This key is required only if remoteDebugEnabled is set to true.
Remote debugging is no longer supported.
sourcepub fn set_ssh_public_key(self, input: Option<String>) -> Self
pub fn set_ssh_public_key(self, input: Option<String>) -> Self
Ignored. The public key of the ssh key pair you want to use for connecting to remote devices in your remote debugging session. This key is required only if remoteDebugEnabled is set to true.
Remote debugging is no longer supported.
sourcepub fn remote_debug_enabled(self, input: bool) -> Self
pub fn remote_debug_enabled(self, input: bool) -> Self
Set to true if you want to access devices remotely for debugging in your remote access session.
Remote debugging is no longer supported.
sourcepub fn set_remote_debug_enabled(self, input: Option<bool>) -> Self
pub fn set_remote_debug_enabled(self, input: Option<bool>) -> Self
Set to true if you want to access devices remotely for debugging in your remote access session.
Remote debugging is no longer supported.
sourcepub fn remote_record_enabled(self, input: bool) -> Self
pub fn remote_record_enabled(self, input: bool) -> Self
Set to true to enable remote recording for the remote access session.
sourcepub fn set_remote_record_enabled(self, input: Option<bool>) -> Self
pub fn set_remote_record_enabled(self, input: Option<bool>) -> Self
Set to true to enable remote recording for the remote access session.
sourcepub fn remote_record_app_arn(self, input: impl Into<String>) -> Self
pub fn remote_record_app_arn(self, input: impl Into<String>) -> Self
The Amazon Resource Name (ARN) for the app to be recorded in the remote access session.
sourcepub fn set_remote_record_app_arn(self, input: Option<String>) -> Self
pub fn set_remote_record_app_arn(self, input: Option<String>) -> Self
The Amazon Resource Name (ARN) for the app to be recorded in the remote access session.
sourcepub fn name(self, input: impl Into<String>) -> Self
pub fn name(self, input: impl Into<String>) -> Self
The name of the remote access session to create.
sourcepub fn set_name(self, input: Option<String>) -> Self
pub fn set_name(self, input: Option<String>) -> Self
The name of the remote access session to create.
sourcepub fn client_id(self, input: impl Into<String>) -> Self
pub fn client_id(self, input: impl Into<String>) -> Self
Unique identifier for the client. If you want access to multiple devices on the same client, you should pass the same clientId value in each call to CreateRemoteAccessSession. This identifier is required only if remoteDebugEnabled is set to true.
Remote debugging is no longer supported.
sourcepub fn set_client_id(self, input: Option<String>) -> Self
pub fn set_client_id(self, input: Option<String>) -> Self
Unique identifier for the client. If you want access to multiple devices on the same client, you should pass the same clientId value in each call to CreateRemoteAccessSession. This identifier is required only if remoteDebugEnabled is set to true.
Remote debugging is no longer supported.
sourcepub fn configuration(self, input: CreateRemoteAccessSessionConfiguration) -> Self
pub fn configuration(self, input: CreateRemoteAccessSessionConfiguration) -> Self
The configuration information for the remote access session request.
sourcepub fn set_configuration(
self,
input: Option<CreateRemoteAccessSessionConfiguration>
) -> Self
pub fn set_configuration(
self,
input: Option<CreateRemoteAccessSessionConfiguration>
) -> Self
The configuration information for the remote access session request.
sourcepub fn interaction_mode(self, input: InteractionMode) -> Self
pub fn interaction_mode(self, input: InteractionMode) -> Self
The interaction mode of the remote access session. Valid values are:
-
INTERACTIVE: You can interact with the iOS device by viewing, touching, and rotating the screen. You cannot run XCUITest framework-based tests in this mode.
-
NO_VIDEO: You are connected to the device, but cannot interact with it or view the screen. This mode has the fastest test execution speed. You can run XCUITest framework-based tests in this mode.
-
VIDEO_ONLY: You can view the screen, but cannot touch or rotate it. You can run XCUITest framework-based tests and watch the screen in this mode.
sourcepub fn set_interaction_mode(self, input: Option<InteractionMode>) -> Self
pub fn set_interaction_mode(self, input: Option<InteractionMode>) -> Self
The interaction mode of the remote access session. Valid values are:
-
INTERACTIVE: You can interact with the iOS device by viewing, touching, and rotating the screen. You cannot run XCUITest framework-based tests in this mode.
-
NO_VIDEO: You are connected to the device, but cannot interact with it or view the screen. This mode has the fastest test execution speed. You can run XCUITest framework-based tests in this mode.
-
VIDEO_ONLY: You can view the screen, but cannot touch or rotate it. You can run XCUITest framework-based tests and watch the screen in this mode.
sourcepub fn skip_app_resign(self, input: bool) -> Self
pub fn skip_app_resign(self, input: bool) -> Self
When set to true, for private devices, Device Farm does not sign your app again. For public devices, Device Farm always signs your apps again.
For more information on how Device Farm modifies your uploads during tests, see Do you modify my app?
sourcepub fn set_skip_app_resign(self, input: Option<bool>) -> Self
pub fn set_skip_app_resign(self, input: Option<bool>) -> Self
When set to true, for private devices, Device Farm does not sign your app again. For public devices, Device Farm always signs your apps again.
For more information on how Device Farm modifies your uploads during tests, see Do you modify my app?
sourcepub fn build(self) -> Result<CreateRemoteAccessSessionInput, BuildError>
pub fn build(self) -> Result<CreateRemoteAccessSessionInput, BuildError>
Consumes the builder and constructs a CreateRemoteAccessSessionInput.
Examples found in repository?
1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641
pub async fn customize(
self,
) -> std::result::Result<
crate::operation::customize::CustomizableOperation<
crate::operation::CreateRemoteAccessSession,
aws_http::retry::AwsResponseRetryClassifier,
>,
aws_smithy_http::result::SdkError<crate::error::CreateRemoteAccessSessionError>,
> {
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::CreateRemoteAccessSessionOutput,
aws_smithy_http::result::SdkError<crate::error::CreateRemoteAccessSessionError>,
> {
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
}