Struct aws_sdk_snowball::operation::get_job_unlock_code::builders::GetJobUnlockCodeFluentBuilder
source · pub struct GetJobUnlockCodeFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to GetJobUnlockCode
.
Returns the UnlockCode
code value for the specified job. A particular UnlockCode
value can be accessed for up to 360 days after the associated job has been created.
The UnlockCode
value is a 29-character code with 25 alphanumeric characters and 4 hyphens. This code is used to decrypt the manifest file when it is passed along with the manifest to the Snow device through the Snowball client when the client is started for the first time. The only valid status for calling this API is WithCustomer
as the manifest and Unlock
code values are used for securing your device and should only be used when you have the device.
As a best practice, we recommend that you don't save a copy of the UnlockCode
in the same location as the manifest file for that job. Saving these separately helps prevent unauthorized parties from gaining access to the Snow device associated with that job.
Implementations§
source§impl GetJobUnlockCodeFluentBuilder
impl GetJobUnlockCodeFluentBuilder
sourcepub fn as_input(&self) -> &GetJobUnlockCodeInputBuilder
pub fn as_input(&self) -> &GetJobUnlockCodeInputBuilder
Access the GetJobUnlockCode as a reference.
sourcepub async fn send(
self
) -> Result<GetJobUnlockCodeOutput, SdkError<GetJobUnlockCodeError, HttpResponse>>
pub async fn send( self ) -> Result<GetJobUnlockCodeOutput, SdkError<GetJobUnlockCodeError, HttpResponse>>
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, which can be set when configuring the client.
sourcepub fn customize(
self
) -> CustomizableOperation<GetJobUnlockCodeOutput, GetJobUnlockCodeError, Self>
pub fn customize( self ) -> CustomizableOperation<GetJobUnlockCodeOutput, GetJobUnlockCodeError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
sourcepub fn job_id(self, input: impl Into<String>) -> Self
pub fn job_id(self, input: impl Into<String>) -> Self
The ID for the job that you want to get the UnlockCode
value for, for example JID123e4567-e89b-12d3-a456-426655440000
.
sourcepub fn set_job_id(self, input: Option<String>) -> Self
pub fn set_job_id(self, input: Option<String>) -> Self
The ID for the job that you want to get the UnlockCode
value for, for example JID123e4567-e89b-12d3-a456-426655440000
.
sourcepub fn get_job_id(&self) -> &Option<String>
pub fn get_job_id(&self) -> &Option<String>
The ID for the job that you want to get the UnlockCode
value for, for example JID123e4567-e89b-12d3-a456-426655440000
.
Trait Implementations§
source§impl Clone for GetJobUnlockCodeFluentBuilder
impl Clone for GetJobUnlockCodeFluentBuilder
source§fn clone(&self) -> GetJobUnlockCodeFluentBuilder
fn clone(&self) -> GetJobUnlockCodeFluentBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more