aws-sdk-appstream 1.111.0

AWS SDK for Amazon AppStream
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 CreateUpdatedImageOutput {
    /// <p>Describes an image.</p>
    pub image: ::std::option::Option<crate::types::Image>,
    /// <p>Indicates whether a new image can be created.</p>
    pub can_update_image: ::std::option::Option<bool>,
    _request_id: Option<String>,
}
impl CreateUpdatedImageOutput {
    /// <p>Describes an image.</p>
    pub fn image(&self) -> ::std::option::Option<&crate::types::Image> {
        self.image.as_ref()
    }
    /// <p>Indicates whether a new image can be created.</p>
    pub fn can_update_image(&self) -> ::std::option::Option<bool> {
        self.can_update_image
    }
}
impl ::aws_types::request_id::RequestId for CreateUpdatedImageOutput {
    fn request_id(&self) -> Option<&str> {
        self._request_id.as_deref()
    }
}
impl CreateUpdatedImageOutput {
    /// Creates a new builder-style object to manufacture [`CreateUpdatedImageOutput`](crate::operation::create_updated_image::CreateUpdatedImageOutput).
    pub fn builder() -> crate::operation::create_updated_image::builders::CreateUpdatedImageOutputBuilder {
        crate::operation::create_updated_image::builders::CreateUpdatedImageOutputBuilder::default()
    }
}

/// A builder for [`CreateUpdatedImageOutput`](crate::operation::create_updated_image::CreateUpdatedImageOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct CreateUpdatedImageOutputBuilder {
    pub(crate) image: ::std::option::Option<crate::types::Image>,
    pub(crate) can_update_image: ::std::option::Option<bool>,
    _request_id: Option<String>,
}
impl CreateUpdatedImageOutputBuilder {
    /// <p>Describes an image.</p>
    pub fn image(mut self, input: crate::types::Image) -> Self {
        self.image = ::std::option::Option::Some(input);
        self
    }
    /// <p>Describes an image.</p>
    pub fn set_image(mut self, input: ::std::option::Option<crate::types::Image>) -> Self {
        self.image = input;
        self
    }
    /// <p>Describes an image.</p>
    pub fn get_image(&self) -> &::std::option::Option<crate::types::Image> {
        &self.image
    }
    /// <p>Indicates whether a new image can be created.</p>
    pub fn can_update_image(mut self, input: bool) -> Self {
        self.can_update_image = ::std::option::Option::Some(input);
        self
    }
    /// <p>Indicates whether a new image can be created.</p>
    pub fn set_can_update_image(mut self, input: ::std::option::Option<bool>) -> Self {
        self.can_update_image = input;
        self
    }
    /// <p>Indicates whether a new image can be created.</p>
    pub fn get_can_update_image(&self) -> &::std::option::Option<bool> {
        &self.can_update_image
    }
    pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
        self._request_id = Some(request_id.into());
        self
    }

    pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
        self._request_id = request_id;
        self
    }
    /// Consumes the builder and constructs a [`CreateUpdatedImageOutput`](crate::operation::create_updated_image::CreateUpdatedImageOutput).
    pub fn build(self) -> crate::operation::create_updated_image::CreateUpdatedImageOutput {
        crate::operation::create_updated_image::CreateUpdatedImageOutput {
            image: self.image,
            can_update_image: self.can_update_image,
            _request_id: self._request_id,
        }
    }
}