aws-sdk-evs 1.31.0

AWS SDK for Amazon Elastic VMware Service
Documentation
// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetDepotUrlInput {
    /// <p>The unique ID of the Amazon EVS environment to get the depot URL for.</p>
    pub environment_id: ::std::option::Option<::std::string::String>,
    /// <p>Revokes the current authentication token and returns a new depot URL with a new token. Previously issued depot URLs will stop working within 5 minutes of rotation.</p>
    pub rotate: ::std::option::Option<bool>,
}
impl GetDepotUrlInput {
    /// <p>The unique ID of the Amazon EVS environment to get the depot URL for.</p>
    pub fn environment_id(&self) -> ::std::option::Option<&str> {
        self.environment_id.as_deref()
    }
    /// <p>Revokes the current authentication token and returns a new depot URL with a new token. Previously issued depot URLs will stop working within 5 minutes of rotation.</p>
    pub fn rotate(&self) -> ::std::option::Option<bool> {
        self.rotate
    }
}
impl GetDepotUrlInput {
    /// Creates a new builder-style object to manufacture [`GetDepotUrlInput`](crate::operation::get_depot_url::GetDepotUrlInput).
    pub fn builder() -> crate::operation::get_depot_url::builders::GetDepotUrlInputBuilder {
        crate::operation::get_depot_url::builders::GetDepotUrlInputBuilder::default()
    }
}

/// A builder for [`GetDepotUrlInput`](crate::operation::get_depot_url::GetDepotUrlInput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetDepotUrlInputBuilder {
    pub(crate) environment_id: ::std::option::Option<::std::string::String>,
    pub(crate) rotate: ::std::option::Option<bool>,
}
impl GetDepotUrlInputBuilder {
    /// <p>The unique ID of the Amazon EVS environment to get the depot URL for.</p>
    /// This field is required.
    pub fn environment_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
        self.environment_id = ::std::option::Option::Some(input.into());
        self
    }
    /// <p>The unique ID of the Amazon EVS environment to get the depot URL for.</p>
    pub fn set_environment_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
        self.environment_id = input;
        self
    }
    /// <p>The unique ID of the Amazon EVS environment to get the depot URL for.</p>
    pub fn get_environment_id(&self) -> &::std::option::Option<::std::string::String> {
        &self.environment_id
    }
    /// <p>Revokes the current authentication token and returns a new depot URL with a new token. Previously issued depot URLs will stop working within 5 minutes of rotation.</p>
    pub fn rotate(mut self, input: bool) -> Self {
        self.rotate = ::std::option::Option::Some(input);
        self
    }
    /// <p>Revokes the current authentication token and returns a new depot URL with a new token. Previously issued depot URLs will stop working within 5 minutes of rotation.</p>
    pub fn set_rotate(mut self, input: ::std::option::Option<bool>) -> Self {
        self.rotate = input;
        self
    }
    /// <p>Revokes the current authentication token and returns a new depot URL with a new token. Previously issued depot URLs will stop working within 5 minutes of rotation.</p>
    pub fn get_rotate(&self) -> &::std::option::Option<bool> {
        &self.rotate
    }
    /// Consumes the builder and constructs a [`GetDepotUrlInput`](crate::operation::get_depot_url::GetDepotUrlInput).
    pub fn build(self) -> ::std::result::Result<crate::operation::get_depot_url::GetDepotUrlInput, ::aws_smithy_types::error::operation::BuildError> {
        ::std::result::Result::Ok(crate::operation::get_depot_url::GetDepotUrlInput {
            environment_id: self.environment_id,
            rotate: self.rotate,
        })
    }
}