#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreateThemeInput {
pub app_id: ::std::option::Option<::std::string::String>,
pub environment_name: ::std::option::Option<::std::string::String>,
pub client_token: ::std::option::Option<::std::string::String>,
pub theme_to_create: ::std::option::Option<crate::types::CreateThemeData>,
}
impl CreateThemeInput {
pub fn app_id(&self) -> ::std::option::Option<&str> {
self.app_id.as_deref()
}
pub fn environment_name(&self) -> ::std::option::Option<&str> {
self.environment_name.as_deref()
}
pub fn client_token(&self) -> ::std::option::Option<&str> {
self.client_token.as_deref()
}
pub fn theme_to_create(&self) -> ::std::option::Option<&crate::types::CreateThemeData> {
self.theme_to_create.as_ref()
}
}
impl CreateThemeInput {
pub fn builder() -> crate::operation::create_theme::builders::CreateThemeInputBuilder {
crate::operation::create_theme::builders::CreateThemeInputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct CreateThemeInputBuilder {
pub(crate) app_id: ::std::option::Option<::std::string::String>,
pub(crate) environment_name: ::std::option::Option<::std::string::String>,
pub(crate) client_token: ::std::option::Option<::std::string::String>,
pub(crate) theme_to_create: ::std::option::Option<crate::types::CreateThemeData>,
}
impl CreateThemeInputBuilder {
pub fn app_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.app_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_app_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.app_id = input;
self
}
pub fn get_app_id(&self) -> &::std::option::Option<::std::string::String> {
&self.app_id
}
pub fn environment_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.environment_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_environment_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.environment_name = input;
self
}
pub fn get_environment_name(&self) -> &::std::option::Option<::std::string::String> {
&self.environment_name
}
pub fn client_token(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.client_token = ::std::option::Option::Some(input.into());
self
}
pub fn set_client_token(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.client_token = input;
self
}
pub fn get_client_token(&self) -> &::std::option::Option<::std::string::String> {
&self.client_token
}
pub fn theme_to_create(mut self, input: crate::types::CreateThemeData) -> Self {
self.theme_to_create = ::std::option::Option::Some(input);
self
}
pub fn set_theme_to_create(mut self, input: ::std::option::Option<crate::types::CreateThemeData>) -> Self {
self.theme_to_create = input;
self
}
pub fn get_theme_to_create(&self) -> &::std::option::Option<crate::types::CreateThemeData> {
&self.theme_to_create
}
pub fn build(self) -> ::std::result::Result<crate::operation::create_theme::CreateThemeInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::create_theme::CreateThemeInput {
app_id: self.app_id,
environment_name: self.environment_name,
client_token: self.client_token,
theme_to_create: self.theme_to_create,
})
}
}