#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct ConfigurationOptionSetting {
pub resource_name: ::std::option::Option<::std::string::String>,
pub namespace: ::std::option::Option<::std::string::String>,
pub option_name: ::std::option::Option<::std::string::String>,
pub value: ::std::option::Option<::std::string::String>,
}
impl ConfigurationOptionSetting {
pub fn resource_name(&self) -> ::std::option::Option<&str> {
self.resource_name.as_deref()
}
pub fn namespace(&self) -> ::std::option::Option<&str> {
self.namespace.as_deref()
}
pub fn option_name(&self) -> ::std::option::Option<&str> {
self.option_name.as_deref()
}
pub fn value(&self) -> ::std::option::Option<&str> {
self.value.as_deref()
}
}
impl ConfigurationOptionSetting {
pub fn builder() -> crate::types::builders::ConfigurationOptionSettingBuilder {
crate::types::builders::ConfigurationOptionSettingBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct ConfigurationOptionSettingBuilder {
pub(crate) resource_name: ::std::option::Option<::std::string::String>,
pub(crate) namespace: ::std::option::Option<::std::string::String>,
pub(crate) option_name: ::std::option::Option<::std::string::String>,
pub(crate) value: ::std::option::Option<::std::string::String>,
}
impl ConfigurationOptionSettingBuilder {
pub fn resource_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.resource_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_resource_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.resource_name = input;
self
}
pub fn get_resource_name(&self) -> &::std::option::Option<::std::string::String> {
&self.resource_name
}
pub fn namespace(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.namespace = ::std::option::Option::Some(input.into());
self
}
pub fn set_namespace(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.namespace = input;
self
}
pub fn get_namespace(&self) -> &::std::option::Option<::std::string::String> {
&self.namespace
}
pub fn option_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.option_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_option_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.option_name = input;
self
}
pub fn get_option_name(&self) -> &::std::option::Option<::std::string::String> {
&self.option_name
}
pub fn value(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.value = ::std::option::Option::Some(input.into());
self
}
pub fn set_value(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.value = input;
self
}
pub fn get_value(&self) -> &::std::option::Option<::std::string::String> {
&self.value
}
pub fn build(self) -> crate::types::ConfigurationOptionSetting {
crate::types::ConfigurationOptionSetting {
resource_name: self.resource_name,
namespace: self.namespace,
option_name: self.option_name,
value: self.value,
}
}
}