#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct UpdateImageInput {
#[doc(hidden)]
pub delete_properties: std::option::Option<std::vec::Vec<std::string::String>>,
#[doc(hidden)]
pub description: std::option::Option<std::string::String>,
#[doc(hidden)]
pub display_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub image_name: std::option::Option<std::string::String>,
#[doc(hidden)]
pub role_arn: std::option::Option<std::string::String>,
}
impl UpdateImageInput {
pub fn delete_properties(&self) -> std::option::Option<&[std::string::String]> {
self.delete_properties.as_deref()
}
pub fn description(&self) -> std::option::Option<&str> {
self.description.as_deref()
}
pub fn display_name(&self) -> std::option::Option<&str> {
self.display_name.as_deref()
}
pub fn image_name(&self) -> std::option::Option<&str> {
self.image_name.as_deref()
}
pub fn role_arn(&self) -> std::option::Option<&str> {
self.role_arn.as_deref()
}
}
impl UpdateImageInput {
pub fn builder() -> crate::operation::update_image::builders::UpdateImageInputBuilder {
crate::operation::update_image::builders::UpdateImageInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq, std::default::Default, std::fmt::Debug)]
pub struct UpdateImageInputBuilder {
pub(crate) delete_properties: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) description: std::option::Option<std::string::String>,
pub(crate) display_name: std::option::Option<std::string::String>,
pub(crate) image_name: std::option::Option<std::string::String>,
pub(crate) role_arn: std::option::Option<std::string::String>,
}
impl UpdateImageInputBuilder {
pub fn delete_properties(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.delete_properties.unwrap_or_default();
v.push(input.into());
self.delete_properties = Some(v);
self
}
pub fn set_delete_properties(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.delete_properties = input;
self
}
pub fn description(mut self, input: impl Into<std::string::String>) -> Self {
self.description = Some(input.into());
self
}
pub fn set_description(mut self, input: std::option::Option<std::string::String>) -> Self {
self.description = input;
self
}
pub fn display_name(mut self, input: impl Into<std::string::String>) -> Self {
self.display_name = Some(input.into());
self
}
pub fn set_display_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.display_name = input;
self
}
pub fn image_name(mut self, input: impl Into<std::string::String>) -> Self {
self.image_name = Some(input.into());
self
}
pub fn set_image_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.image_name = input;
self
}
pub fn role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.role_arn = Some(input.into());
self
}
pub fn set_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.role_arn = input;
self
}
pub fn build(
self,
) -> Result<
crate::operation::update_image::UpdateImageInput,
aws_smithy_http::operation::error::BuildError,
> {
Ok(crate::operation::update_image::UpdateImageInput {
delete_properties: self.delete_properties,
description: self.description,
display_name: self.display_name,
image_name: self.image_name,
role_arn: self.role_arn,
})
}
}