#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct DeleteLicenseInput {
pub license_arn: ::std::option::Option<::std::string::String>,
pub source_version: ::std::option::Option<::std::string::String>,
}
impl DeleteLicenseInput {
pub fn license_arn(&self) -> ::std::option::Option<&str> {
self.license_arn.as_deref()
}
pub fn source_version(&self) -> ::std::option::Option<&str> {
self.source_version.as_deref()
}
}
impl DeleteLicenseInput {
pub fn builder() -> crate::operation::delete_license::builders::DeleteLicenseInputBuilder {
crate::operation::delete_license::builders::DeleteLicenseInputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct DeleteLicenseInputBuilder {
pub(crate) license_arn: ::std::option::Option<::std::string::String>,
pub(crate) source_version: ::std::option::Option<::std::string::String>,
}
impl DeleteLicenseInputBuilder {
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 source_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.source_version = ::std::option::Option::Some(input.into());
self
}
pub fn set_source_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.source_version = input;
self
}
pub fn get_source_version(&self) -> &::std::option::Option<::std::string::String> {
&self.source_version
}
pub fn build(
self,
) -> ::std::result::Result<crate::operation::delete_license::DeleteLicenseInput, ::aws_smithy_types::error::operation::BuildError> {
::std::result::Result::Ok(crate::operation::delete_license::DeleteLicenseInput {
license_arn: self.license_arn,
source_version: self.source_version,
})
}
}