#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct GetLicenseInput {
pub license_arn: ::std::option::Option<::std::string::String>,
pub version: ::std::option::Option<::std::string::String>,
}
impl GetLicenseInput {
pub fn license_arn(&self) -> ::std::option::Option<&str> {
self.license_arn.as_deref()
}
pub fn version(&self) -> ::std::option::Option<&str> {
self.version.as_deref()
}
}
impl GetLicenseInput {
pub fn builder() -> crate::operation::get_license::builders::GetLicenseInputBuilder {
crate::operation::get_license::builders::GetLicenseInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct GetLicenseInputBuilder {
pub(crate) license_arn: ::std::option::Option<::std::string::String>,
pub(crate) version: ::std::option::Option<::std::string::String>,
}
impl GetLicenseInputBuilder {
pub fn license_arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.license_arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_license_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.license_arn = input;
self
}
pub fn get_license_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.license_arn
}
pub fn version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.version = ::std::option::Option::Some(input.into());
self
}
pub fn set_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.version = input;
self
}
pub fn get_version(&self) -> &::std::option::Option<::std::string::String> {
&self.version
}
pub fn build(self) -> ::std::result::Result<crate::operation::get_license::GetLicenseInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::get_license::GetLicenseInput {
license_arn: self.license_arn,
version: self.version,
})
}
}