#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct RemoveTagsFromResourceOutput {
pub status: std::option::Option<std::string::String>,
}
impl RemoveTagsFromResourceOutput {
pub fn status(&self) -> std::option::Option<&str> {
self.status.as_deref()
}
}
impl std::fmt::Debug for RemoveTagsFromResourceOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("RemoveTagsFromResourceOutput");
formatter.field("status", &self.status);
formatter.finish()
}
}
pub mod remove_tags_from_resource_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) status: std::option::Option<std::string::String>,
}
impl Builder {
pub fn status(mut self, input: impl Into<std::string::String>) -> Self {
self.status = Some(input.into());
self
}
pub fn set_status(mut self, input: std::option::Option<std::string::String>) -> Self {
self.status = input;
self
}
pub fn build(self) -> crate::output::RemoveTagsFromResourceOutput {
crate::output::RemoveTagsFromResourceOutput {
status: self.status,
}
}
}
}
impl RemoveTagsFromResourceOutput {
pub fn builder() -> crate::output::remove_tags_from_resource_output::Builder {
crate::output::remove_tags_from_resource_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ModifyLunaClientOutput {
pub client_arn: std::option::Option<std::string::String>,
}
impl ModifyLunaClientOutput {
pub fn client_arn(&self) -> std::option::Option<&str> {
self.client_arn.as_deref()
}
}
impl std::fmt::Debug for ModifyLunaClientOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ModifyLunaClientOutput");
formatter.field("client_arn", &self.client_arn);
formatter.finish()
}
}
pub mod modify_luna_client_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) client_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn client_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.client_arn = Some(input.into());
self
}
pub fn set_client_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.client_arn = input;
self
}
pub fn build(self) -> crate::output::ModifyLunaClientOutput {
crate::output::ModifyLunaClientOutput {
client_arn: self.client_arn,
}
}
}
}
impl ModifyLunaClientOutput {
pub fn builder() -> crate::output::modify_luna_client_output::Builder {
crate::output::modify_luna_client_output::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ModifyHsmOutput {
pub hsm_arn: std::option::Option<std::string::String>,
}
impl ModifyHsmOutput {
pub fn hsm_arn(&self) -> std::option::Option<&str> {
self.hsm_arn.as_deref()
}
}
impl std::fmt::Debug for ModifyHsmOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ModifyHsmOutput");
formatter.field("hsm_arn", &self.hsm_arn);
formatter.finish()
}
}
pub mod modify_hsm_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) hsm_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn hsm_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.hsm_arn = Some(input.into());
self
}
pub fn set_hsm_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.hsm_arn = input;
self
}
pub fn build(self) -> crate::output::ModifyHsmOutput {
crate::output::ModifyHsmOutput {
hsm_arn: self.hsm_arn,
}
}
}
}
impl ModifyHsmOutput {
pub fn builder() -> crate::output::modify_hsm_output::Builder {
crate::output::modify_hsm_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ModifyHapgOutput {
pub hapg_arn: std::option::Option<std::string::String>,
}
impl ModifyHapgOutput {
pub fn hapg_arn(&self) -> std::option::Option<&str> {
self.hapg_arn.as_deref()
}
}
impl std::fmt::Debug for ModifyHapgOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ModifyHapgOutput");
formatter.field("hapg_arn", &self.hapg_arn);
formatter.finish()
}
}
pub mod modify_hapg_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) hapg_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn hapg_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.hapg_arn = Some(input.into());
self
}
pub fn set_hapg_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.hapg_arn = input;
self
}
pub fn build(self) -> crate::output::ModifyHapgOutput {
crate::output::ModifyHapgOutput {
hapg_arn: self.hapg_arn,
}
}
}
}
impl ModifyHapgOutput {
pub fn builder() -> crate::output::modify_hapg_output::Builder {
crate::output::modify_hapg_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListTagsForResourceOutput {
pub tag_list: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl ListTagsForResourceOutput {
pub fn tag_list(&self) -> std::option::Option<&[crate::model::Tag]> {
self.tag_list.as_deref()
}
}
impl std::fmt::Debug for ListTagsForResourceOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListTagsForResourceOutput");
formatter.field("tag_list", &self.tag_list);
formatter.finish()
}
}
pub mod list_tags_for_resource_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) tag_list: std::option::Option<std::vec::Vec<crate::model::Tag>>,
}
impl Builder {
pub fn tag_list(mut self, input: crate::model::Tag) -> Self {
let mut v = self.tag_list.unwrap_or_default();
v.push(input);
self.tag_list = Some(v);
self
}
pub fn set_tag_list(
mut self,
input: std::option::Option<std::vec::Vec<crate::model::Tag>>,
) -> Self {
self.tag_list = input;
self
}
pub fn build(self) -> crate::output::ListTagsForResourceOutput {
crate::output::ListTagsForResourceOutput {
tag_list: self.tag_list,
}
}
}
}
impl ListTagsForResourceOutput {
pub fn builder() -> crate::output::list_tags_for_resource_output::Builder {
crate::output::list_tags_for_resource_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListLunaClientsOutput {
pub client_list: std::option::Option<std::vec::Vec<std::string::String>>,
pub next_token: std::option::Option<std::string::String>,
}
impl ListLunaClientsOutput {
pub fn client_list(&self) -> std::option::Option<&[std::string::String]> {
self.client_list.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListLunaClientsOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListLunaClientsOutput");
formatter.field("client_list", &self.client_list);
formatter.field("next_token", &self.next_token);
formatter.finish()
}
}
pub mod list_luna_clients_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) client_list: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn client_list(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.client_list.unwrap_or_default();
v.push(input.into());
self.client_list = Some(v);
self
}
pub fn set_client_list(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.client_list = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn build(self) -> crate::output::ListLunaClientsOutput {
crate::output::ListLunaClientsOutput {
client_list: self.client_list,
next_token: self.next_token,
}
}
}
}
impl ListLunaClientsOutput {
pub fn builder() -> crate::output::list_luna_clients_output::Builder {
crate::output::list_luna_clients_output::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListHsmsOutput {
pub hsm_list: std::option::Option<std::vec::Vec<std::string::String>>,
pub next_token: std::option::Option<std::string::String>,
}
impl ListHsmsOutput {
pub fn hsm_list(&self) -> std::option::Option<&[std::string::String]> {
self.hsm_list.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListHsmsOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListHsmsOutput");
formatter.field("hsm_list", &self.hsm_list);
formatter.field("next_token", &self.next_token);
formatter.finish()
}
}
pub mod list_hsms_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) hsm_list: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn hsm_list(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.hsm_list.unwrap_or_default();
v.push(input.into());
self.hsm_list = Some(v);
self
}
pub fn set_hsm_list(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.hsm_list = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn build(self) -> crate::output::ListHsmsOutput {
crate::output::ListHsmsOutput {
hsm_list: self.hsm_list,
next_token: self.next_token,
}
}
}
}
impl ListHsmsOutput {
pub fn builder() -> crate::output::list_hsms_output::Builder {
crate::output::list_hsms_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListHapgsOutput {
pub hapg_list: std::option::Option<std::vec::Vec<std::string::String>>,
pub next_token: std::option::Option<std::string::String>,
}
impl ListHapgsOutput {
pub fn hapg_list(&self) -> std::option::Option<&[std::string::String]> {
self.hapg_list.as_deref()
}
pub fn next_token(&self) -> std::option::Option<&str> {
self.next_token.as_deref()
}
}
impl std::fmt::Debug for ListHapgsOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListHapgsOutput");
formatter.field("hapg_list", &self.hapg_list);
formatter.field("next_token", &self.next_token);
formatter.finish()
}
}
pub mod list_hapgs_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) hapg_list: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) next_token: std::option::Option<std::string::String>,
}
impl Builder {
pub fn hapg_list(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.hapg_list.unwrap_or_default();
v.push(input.into());
self.hapg_list = Some(v);
self
}
pub fn set_hapg_list(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.hapg_list = input;
self
}
pub fn next_token(mut self, input: impl Into<std::string::String>) -> Self {
self.next_token = Some(input.into());
self
}
pub fn set_next_token(mut self, input: std::option::Option<std::string::String>) -> Self {
self.next_token = input;
self
}
pub fn build(self) -> crate::output::ListHapgsOutput {
crate::output::ListHapgsOutput {
hapg_list: self.hapg_list,
next_token: self.next_token,
}
}
}
}
impl ListHapgsOutput {
pub fn builder() -> crate::output::list_hapgs_output::Builder {
crate::output::list_hapgs_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct ListAvailableZonesOutput {
pub az_list: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl ListAvailableZonesOutput {
pub fn az_list(&self) -> std::option::Option<&[std::string::String]> {
self.az_list.as_deref()
}
}
impl std::fmt::Debug for ListAvailableZonesOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("ListAvailableZonesOutput");
formatter.field("az_list", &self.az_list);
formatter.finish()
}
}
pub mod list_available_zones_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) az_list: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn az_list(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.az_list.unwrap_or_default();
v.push(input.into());
self.az_list = Some(v);
self
}
pub fn set_az_list(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.az_list = input;
self
}
pub fn build(self) -> crate::output::ListAvailableZonesOutput {
crate::output::ListAvailableZonesOutput {
az_list: self.az_list,
}
}
}
}
impl ListAvailableZonesOutput {
pub fn builder() -> crate::output::list_available_zones_output::Builder {
crate::output::list_available_zones_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct GetConfigOutput {
pub config_type: std::option::Option<std::string::String>,
pub config_file: std::option::Option<std::string::String>,
pub config_cred: std::option::Option<std::string::String>,
}
impl GetConfigOutput {
pub fn config_type(&self) -> std::option::Option<&str> {
self.config_type.as_deref()
}
pub fn config_file(&self) -> std::option::Option<&str> {
self.config_file.as_deref()
}
pub fn config_cred(&self) -> std::option::Option<&str> {
self.config_cred.as_deref()
}
}
impl std::fmt::Debug for GetConfigOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("GetConfigOutput");
formatter.field("config_type", &self.config_type);
formatter.field("config_file", &self.config_file);
formatter.field("config_cred", &self.config_cred);
formatter.finish()
}
}
pub mod get_config_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) config_type: std::option::Option<std::string::String>,
pub(crate) config_file: std::option::Option<std::string::String>,
pub(crate) config_cred: std::option::Option<std::string::String>,
}
impl Builder {
pub fn config_type(mut self, input: impl Into<std::string::String>) -> Self {
self.config_type = Some(input.into());
self
}
pub fn set_config_type(mut self, input: std::option::Option<std::string::String>) -> Self {
self.config_type = input;
self
}
pub fn config_file(mut self, input: impl Into<std::string::String>) -> Self {
self.config_file = Some(input.into());
self
}
pub fn set_config_file(mut self, input: std::option::Option<std::string::String>) -> Self {
self.config_file = input;
self
}
pub fn config_cred(mut self, input: impl Into<std::string::String>) -> Self {
self.config_cred = Some(input.into());
self
}
pub fn set_config_cred(mut self, input: std::option::Option<std::string::String>) -> Self {
self.config_cred = input;
self
}
pub fn build(self) -> crate::output::GetConfigOutput {
crate::output::GetConfigOutput {
config_type: self.config_type,
config_file: self.config_file,
config_cred: self.config_cred,
}
}
}
}
impl GetConfigOutput {
pub fn builder() -> crate::output::get_config_output::Builder {
crate::output::get_config_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DescribeLunaClientOutput {
pub client_arn: std::option::Option<std::string::String>,
pub certificate: std::option::Option<std::string::String>,
pub certificate_fingerprint: std::option::Option<std::string::String>,
pub last_modified_timestamp: std::option::Option<std::string::String>,
pub label: std::option::Option<std::string::String>,
}
impl DescribeLunaClientOutput {
pub fn client_arn(&self) -> std::option::Option<&str> {
self.client_arn.as_deref()
}
pub fn certificate(&self) -> std::option::Option<&str> {
self.certificate.as_deref()
}
pub fn certificate_fingerprint(&self) -> std::option::Option<&str> {
self.certificate_fingerprint.as_deref()
}
pub fn last_modified_timestamp(&self) -> std::option::Option<&str> {
self.last_modified_timestamp.as_deref()
}
pub fn label(&self) -> std::option::Option<&str> {
self.label.as_deref()
}
}
impl std::fmt::Debug for DescribeLunaClientOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribeLunaClientOutput");
formatter.field("client_arn", &self.client_arn);
formatter.field("certificate", &self.certificate);
formatter.field("certificate_fingerprint", &self.certificate_fingerprint);
formatter.field("last_modified_timestamp", &self.last_modified_timestamp);
formatter.field("label", &self.label);
formatter.finish()
}
}
pub mod describe_luna_client_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) client_arn: std::option::Option<std::string::String>,
pub(crate) certificate: std::option::Option<std::string::String>,
pub(crate) certificate_fingerprint: std::option::Option<std::string::String>,
pub(crate) last_modified_timestamp: std::option::Option<std::string::String>,
pub(crate) label: std::option::Option<std::string::String>,
}
impl Builder {
pub fn client_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.client_arn = Some(input.into());
self
}
pub fn set_client_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.client_arn = input;
self
}
pub fn certificate(mut self, input: impl Into<std::string::String>) -> Self {
self.certificate = Some(input.into());
self
}
pub fn set_certificate(mut self, input: std::option::Option<std::string::String>) -> Self {
self.certificate = input;
self
}
pub fn certificate_fingerprint(mut self, input: impl Into<std::string::String>) -> Self {
self.certificate_fingerprint = Some(input.into());
self
}
pub fn set_certificate_fingerprint(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.certificate_fingerprint = input;
self
}
pub fn last_modified_timestamp(mut self, input: impl Into<std::string::String>) -> Self {
self.last_modified_timestamp = Some(input.into());
self
}
pub fn set_last_modified_timestamp(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.last_modified_timestamp = input;
self
}
pub fn label(mut self, input: impl Into<std::string::String>) -> Self {
self.label = Some(input.into());
self
}
pub fn set_label(mut self, input: std::option::Option<std::string::String>) -> Self {
self.label = input;
self
}
pub fn build(self) -> crate::output::DescribeLunaClientOutput {
crate::output::DescribeLunaClientOutput {
client_arn: self.client_arn,
certificate: self.certificate,
certificate_fingerprint: self.certificate_fingerprint,
last_modified_timestamp: self.last_modified_timestamp,
label: self.label,
}
}
}
}
impl DescribeLunaClientOutput {
pub fn builder() -> crate::output::describe_luna_client_output::Builder {
crate::output::describe_luna_client_output::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DescribeHsmOutput {
pub hsm_arn: std::option::Option<std::string::String>,
pub status: std::option::Option<crate::model::HsmStatus>,
pub status_details: std::option::Option<std::string::String>,
pub availability_zone: std::option::Option<std::string::String>,
pub eni_id: std::option::Option<std::string::String>,
pub eni_ip: std::option::Option<std::string::String>,
pub subscription_type: std::option::Option<crate::model::SubscriptionType>,
pub subscription_start_date: std::option::Option<std::string::String>,
pub subscription_end_date: std::option::Option<std::string::String>,
pub vpc_id: std::option::Option<std::string::String>,
pub subnet_id: std::option::Option<std::string::String>,
pub iam_role_arn: std::option::Option<std::string::String>,
pub serial_number: std::option::Option<std::string::String>,
pub vendor_name: std::option::Option<std::string::String>,
pub hsm_type: std::option::Option<std::string::String>,
pub software_version: std::option::Option<std::string::String>,
pub ssh_public_key: std::option::Option<std::string::String>,
pub ssh_key_last_updated: std::option::Option<std::string::String>,
pub server_cert_uri: std::option::Option<std::string::String>,
pub server_cert_last_updated: std::option::Option<std::string::String>,
pub partitions: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl DescribeHsmOutput {
pub fn hsm_arn(&self) -> std::option::Option<&str> {
self.hsm_arn.as_deref()
}
pub fn status(&self) -> std::option::Option<&crate::model::HsmStatus> {
self.status.as_ref()
}
pub fn status_details(&self) -> std::option::Option<&str> {
self.status_details.as_deref()
}
pub fn availability_zone(&self) -> std::option::Option<&str> {
self.availability_zone.as_deref()
}
pub fn eni_id(&self) -> std::option::Option<&str> {
self.eni_id.as_deref()
}
pub fn eni_ip(&self) -> std::option::Option<&str> {
self.eni_ip.as_deref()
}
pub fn subscription_type(&self) -> std::option::Option<&crate::model::SubscriptionType> {
self.subscription_type.as_ref()
}
pub fn subscription_start_date(&self) -> std::option::Option<&str> {
self.subscription_start_date.as_deref()
}
pub fn subscription_end_date(&self) -> std::option::Option<&str> {
self.subscription_end_date.as_deref()
}
pub fn vpc_id(&self) -> std::option::Option<&str> {
self.vpc_id.as_deref()
}
pub fn subnet_id(&self) -> std::option::Option<&str> {
self.subnet_id.as_deref()
}
pub fn iam_role_arn(&self) -> std::option::Option<&str> {
self.iam_role_arn.as_deref()
}
pub fn serial_number(&self) -> std::option::Option<&str> {
self.serial_number.as_deref()
}
pub fn vendor_name(&self) -> std::option::Option<&str> {
self.vendor_name.as_deref()
}
pub fn hsm_type(&self) -> std::option::Option<&str> {
self.hsm_type.as_deref()
}
pub fn software_version(&self) -> std::option::Option<&str> {
self.software_version.as_deref()
}
pub fn ssh_public_key(&self) -> std::option::Option<&str> {
self.ssh_public_key.as_deref()
}
pub fn ssh_key_last_updated(&self) -> std::option::Option<&str> {
self.ssh_key_last_updated.as_deref()
}
pub fn server_cert_uri(&self) -> std::option::Option<&str> {
self.server_cert_uri.as_deref()
}
pub fn server_cert_last_updated(&self) -> std::option::Option<&str> {
self.server_cert_last_updated.as_deref()
}
pub fn partitions(&self) -> std::option::Option<&[std::string::String]> {
self.partitions.as_deref()
}
}
impl std::fmt::Debug for DescribeHsmOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribeHsmOutput");
formatter.field("hsm_arn", &self.hsm_arn);
formatter.field("status", &self.status);
formatter.field("status_details", &self.status_details);
formatter.field("availability_zone", &self.availability_zone);
formatter.field("eni_id", &self.eni_id);
formatter.field("eni_ip", &self.eni_ip);
formatter.field("subscription_type", &self.subscription_type);
formatter.field("subscription_start_date", &self.subscription_start_date);
formatter.field("subscription_end_date", &self.subscription_end_date);
formatter.field("vpc_id", &self.vpc_id);
formatter.field("subnet_id", &self.subnet_id);
formatter.field("iam_role_arn", &self.iam_role_arn);
formatter.field("serial_number", &self.serial_number);
formatter.field("vendor_name", &self.vendor_name);
formatter.field("hsm_type", &self.hsm_type);
formatter.field("software_version", &self.software_version);
formatter.field("ssh_public_key", &self.ssh_public_key);
formatter.field("ssh_key_last_updated", &self.ssh_key_last_updated);
formatter.field("server_cert_uri", &self.server_cert_uri);
formatter.field("server_cert_last_updated", &self.server_cert_last_updated);
formatter.field("partitions", &self.partitions);
formatter.finish()
}
}
pub mod describe_hsm_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) hsm_arn: std::option::Option<std::string::String>,
pub(crate) status: std::option::Option<crate::model::HsmStatus>,
pub(crate) status_details: std::option::Option<std::string::String>,
pub(crate) availability_zone: std::option::Option<std::string::String>,
pub(crate) eni_id: std::option::Option<std::string::String>,
pub(crate) eni_ip: std::option::Option<std::string::String>,
pub(crate) subscription_type: std::option::Option<crate::model::SubscriptionType>,
pub(crate) subscription_start_date: std::option::Option<std::string::String>,
pub(crate) subscription_end_date: std::option::Option<std::string::String>,
pub(crate) vpc_id: std::option::Option<std::string::String>,
pub(crate) subnet_id: std::option::Option<std::string::String>,
pub(crate) iam_role_arn: std::option::Option<std::string::String>,
pub(crate) serial_number: std::option::Option<std::string::String>,
pub(crate) vendor_name: std::option::Option<std::string::String>,
pub(crate) hsm_type: std::option::Option<std::string::String>,
pub(crate) software_version: std::option::Option<std::string::String>,
pub(crate) ssh_public_key: std::option::Option<std::string::String>,
pub(crate) ssh_key_last_updated: std::option::Option<std::string::String>,
pub(crate) server_cert_uri: std::option::Option<std::string::String>,
pub(crate) server_cert_last_updated: std::option::Option<std::string::String>,
pub(crate) partitions: std::option::Option<std::vec::Vec<std::string::String>>,
}
impl Builder {
pub fn hsm_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.hsm_arn = Some(input.into());
self
}
pub fn set_hsm_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.hsm_arn = input;
self
}
pub fn status(mut self, input: crate::model::HsmStatus) -> Self {
self.status = Some(input);
self
}
pub fn set_status(mut self, input: std::option::Option<crate::model::HsmStatus>) -> Self {
self.status = input;
self
}
pub fn status_details(mut self, input: impl Into<std::string::String>) -> Self {
self.status_details = Some(input.into());
self
}
pub fn set_status_details(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.status_details = input;
self
}
pub fn availability_zone(mut self, input: impl Into<std::string::String>) -> Self {
self.availability_zone = Some(input.into());
self
}
pub fn set_availability_zone(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.availability_zone = input;
self
}
pub fn eni_id(mut self, input: impl Into<std::string::String>) -> Self {
self.eni_id = Some(input.into());
self
}
pub fn set_eni_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.eni_id = input;
self
}
pub fn eni_ip(mut self, input: impl Into<std::string::String>) -> Self {
self.eni_ip = Some(input.into());
self
}
pub fn set_eni_ip(mut self, input: std::option::Option<std::string::String>) -> Self {
self.eni_ip = input;
self
}
pub fn subscription_type(mut self, input: crate::model::SubscriptionType) -> Self {
self.subscription_type = Some(input);
self
}
pub fn set_subscription_type(
mut self,
input: std::option::Option<crate::model::SubscriptionType>,
) -> Self {
self.subscription_type = input;
self
}
pub fn subscription_start_date(mut self, input: impl Into<std::string::String>) -> Self {
self.subscription_start_date = Some(input.into());
self
}
pub fn set_subscription_start_date(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.subscription_start_date = input;
self
}
pub fn subscription_end_date(mut self, input: impl Into<std::string::String>) -> Self {
self.subscription_end_date = Some(input.into());
self
}
pub fn set_subscription_end_date(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.subscription_end_date = input;
self
}
pub fn vpc_id(mut self, input: impl Into<std::string::String>) -> Self {
self.vpc_id = Some(input.into());
self
}
pub fn set_vpc_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vpc_id = input;
self
}
pub fn subnet_id(mut self, input: impl Into<std::string::String>) -> Self {
self.subnet_id = Some(input.into());
self
}
pub fn set_subnet_id(mut self, input: std::option::Option<std::string::String>) -> Self {
self.subnet_id = input;
self
}
pub fn iam_role_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.iam_role_arn = Some(input.into());
self
}
pub fn set_iam_role_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.iam_role_arn = input;
self
}
pub fn serial_number(mut self, input: impl Into<std::string::String>) -> Self {
self.serial_number = Some(input.into());
self
}
pub fn set_serial_number(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.serial_number = input;
self
}
pub fn vendor_name(mut self, input: impl Into<std::string::String>) -> Self {
self.vendor_name = Some(input.into());
self
}
pub fn set_vendor_name(mut self, input: std::option::Option<std::string::String>) -> Self {
self.vendor_name = input;
self
}
pub fn hsm_type(mut self, input: impl Into<std::string::String>) -> Self {
self.hsm_type = Some(input.into());
self
}
pub fn set_hsm_type(mut self, input: std::option::Option<std::string::String>) -> Self {
self.hsm_type = input;
self
}
pub fn software_version(mut self, input: impl Into<std::string::String>) -> Self {
self.software_version = Some(input.into());
self
}
pub fn set_software_version(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.software_version = input;
self
}
pub fn ssh_public_key(mut self, input: impl Into<std::string::String>) -> Self {
self.ssh_public_key = Some(input.into());
self
}
pub fn set_ssh_public_key(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.ssh_public_key = input;
self
}
pub fn ssh_key_last_updated(mut self, input: impl Into<std::string::String>) -> Self {
self.ssh_key_last_updated = Some(input.into());
self
}
pub fn set_ssh_key_last_updated(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.ssh_key_last_updated = input;
self
}
pub fn server_cert_uri(mut self, input: impl Into<std::string::String>) -> Self {
self.server_cert_uri = Some(input.into());
self
}
pub fn set_server_cert_uri(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.server_cert_uri = input;
self
}
pub fn server_cert_last_updated(mut self, input: impl Into<std::string::String>) -> Self {
self.server_cert_last_updated = Some(input.into());
self
}
pub fn set_server_cert_last_updated(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.server_cert_last_updated = input;
self
}
pub fn partitions(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.partitions.unwrap_or_default();
v.push(input.into());
self.partitions = Some(v);
self
}
pub fn set_partitions(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.partitions = input;
self
}
pub fn build(self) -> crate::output::DescribeHsmOutput {
crate::output::DescribeHsmOutput {
hsm_arn: self.hsm_arn,
status: self.status,
status_details: self.status_details,
availability_zone: self.availability_zone,
eni_id: self.eni_id,
eni_ip: self.eni_ip,
subscription_type: self.subscription_type,
subscription_start_date: self.subscription_start_date,
subscription_end_date: self.subscription_end_date,
vpc_id: self.vpc_id,
subnet_id: self.subnet_id,
iam_role_arn: self.iam_role_arn,
serial_number: self.serial_number,
vendor_name: self.vendor_name,
hsm_type: self.hsm_type,
software_version: self.software_version,
ssh_public_key: self.ssh_public_key,
ssh_key_last_updated: self.ssh_key_last_updated,
server_cert_uri: self.server_cert_uri,
server_cert_last_updated: self.server_cert_last_updated,
partitions: self.partitions,
}
}
}
}
impl DescribeHsmOutput {
pub fn builder() -> crate::output::describe_hsm_output::Builder {
crate::output::describe_hsm_output::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DescribeHapgOutput {
pub hapg_arn: std::option::Option<std::string::String>,
pub hapg_serial: std::option::Option<std::string::String>,
pub hsms_last_action_failed: std::option::Option<std::vec::Vec<std::string::String>>,
pub hsms_pending_deletion: std::option::Option<std::vec::Vec<std::string::String>>,
pub hsms_pending_registration: std::option::Option<std::vec::Vec<std::string::String>>,
pub label: std::option::Option<std::string::String>,
pub last_modified_timestamp: std::option::Option<std::string::String>,
pub partition_serial_list: std::option::Option<std::vec::Vec<std::string::String>>,
pub state: std::option::Option<crate::model::CloudHsmObjectState>,
}
impl DescribeHapgOutput {
pub fn hapg_arn(&self) -> std::option::Option<&str> {
self.hapg_arn.as_deref()
}
pub fn hapg_serial(&self) -> std::option::Option<&str> {
self.hapg_serial.as_deref()
}
pub fn hsms_last_action_failed(&self) -> std::option::Option<&[std::string::String]> {
self.hsms_last_action_failed.as_deref()
}
pub fn hsms_pending_deletion(&self) -> std::option::Option<&[std::string::String]> {
self.hsms_pending_deletion.as_deref()
}
pub fn hsms_pending_registration(&self) -> std::option::Option<&[std::string::String]> {
self.hsms_pending_registration.as_deref()
}
pub fn label(&self) -> std::option::Option<&str> {
self.label.as_deref()
}
pub fn last_modified_timestamp(&self) -> std::option::Option<&str> {
self.last_modified_timestamp.as_deref()
}
pub fn partition_serial_list(&self) -> std::option::Option<&[std::string::String]> {
self.partition_serial_list.as_deref()
}
pub fn state(&self) -> std::option::Option<&crate::model::CloudHsmObjectState> {
self.state.as_ref()
}
}
impl std::fmt::Debug for DescribeHapgOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DescribeHapgOutput");
formatter.field("hapg_arn", &self.hapg_arn);
formatter.field("hapg_serial", &self.hapg_serial);
formatter.field("hsms_last_action_failed", &self.hsms_last_action_failed);
formatter.field("hsms_pending_deletion", &self.hsms_pending_deletion);
formatter.field("hsms_pending_registration", &self.hsms_pending_registration);
formatter.field("label", &self.label);
formatter.field("last_modified_timestamp", &self.last_modified_timestamp);
formatter.field("partition_serial_list", &self.partition_serial_list);
formatter.field("state", &self.state);
formatter.finish()
}
}
pub mod describe_hapg_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) hapg_arn: std::option::Option<std::string::String>,
pub(crate) hapg_serial: std::option::Option<std::string::String>,
pub(crate) hsms_last_action_failed: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) hsms_pending_deletion: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) hsms_pending_registration:
std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) label: std::option::Option<std::string::String>,
pub(crate) last_modified_timestamp: std::option::Option<std::string::String>,
pub(crate) partition_serial_list: std::option::Option<std::vec::Vec<std::string::String>>,
pub(crate) state: std::option::Option<crate::model::CloudHsmObjectState>,
}
impl Builder {
pub fn hapg_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.hapg_arn = Some(input.into());
self
}
pub fn set_hapg_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.hapg_arn = input;
self
}
pub fn hapg_serial(mut self, input: impl Into<std::string::String>) -> Self {
self.hapg_serial = Some(input.into());
self
}
pub fn set_hapg_serial(mut self, input: std::option::Option<std::string::String>) -> Self {
self.hapg_serial = input;
self
}
pub fn hsms_last_action_failed(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.hsms_last_action_failed.unwrap_or_default();
v.push(input.into());
self.hsms_last_action_failed = Some(v);
self
}
pub fn set_hsms_last_action_failed(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.hsms_last_action_failed = input;
self
}
pub fn hsms_pending_deletion(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.hsms_pending_deletion.unwrap_or_default();
v.push(input.into());
self.hsms_pending_deletion = Some(v);
self
}
pub fn set_hsms_pending_deletion(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.hsms_pending_deletion = input;
self
}
pub fn hsms_pending_registration(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.hsms_pending_registration.unwrap_or_default();
v.push(input.into());
self.hsms_pending_registration = Some(v);
self
}
pub fn set_hsms_pending_registration(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.hsms_pending_registration = input;
self
}
pub fn label(mut self, input: impl Into<std::string::String>) -> Self {
self.label = Some(input.into());
self
}
pub fn set_label(mut self, input: std::option::Option<std::string::String>) -> Self {
self.label = input;
self
}
pub fn last_modified_timestamp(mut self, input: impl Into<std::string::String>) -> Self {
self.last_modified_timestamp = Some(input.into());
self
}
pub fn set_last_modified_timestamp(
mut self,
input: std::option::Option<std::string::String>,
) -> Self {
self.last_modified_timestamp = input;
self
}
pub fn partition_serial_list(mut self, input: impl Into<std::string::String>) -> Self {
let mut v = self.partition_serial_list.unwrap_or_default();
v.push(input.into());
self.partition_serial_list = Some(v);
self
}
pub fn set_partition_serial_list(
mut self,
input: std::option::Option<std::vec::Vec<std::string::String>>,
) -> Self {
self.partition_serial_list = input;
self
}
pub fn state(mut self, input: crate::model::CloudHsmObjectState) -> Self {
self.state = Some(input);
self
}
pub fn set_state(
mut self,
input: std::option::Option<crate::model::CloudHsmObjectState>,
) -> Self {
self.state = input;
self
}
pub fn build(self) -> crate::output::DescribeHapgOutput {
crate::output::DescribeHapgOutput {
hapg_arn: self.hapg_arn,
hapg_serial: self.hapg_serial,
hsms_last_action_failed: self.hsms_last_action_failed,
hsms_pending_deletion: self.hsms_pending_deletion,
hsms_pending_registration: self.hsms_pending_registration,
label: self.label,
last_modified_timestamp: self.last_modified_timestamp,
partition_serial_list: self.partition_serial_list,
state: self.state,
}
}
}
}
impl DescribeHapgOutput {
pub fn builder() -> crate::output::describe_hapg_output::Builder {
crate::output::describe_hapg_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DeleteLunaClientOutput {
pub status: std::option::Option<std::string::String>,
}
impl DeleteLunaClientOutput {
pub fn status(&self) -> std::option::Option<&str> {
self.status.as_deref()
}
}
impl std::fmt::Debug for DeleteLunaClientOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DeleteLunaClientOutput");
formatter.field("status", &self.status);
formatter.finish()
}
}
pub mod delete_luna_client_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) status: std::option::Option<std::string::String>,
}
impl Builder {
pub fn status(mut self, input: impl Into<std::string::String>) -> Self {
self.status = Some(input.into());
self
}
pub fn set_status(mut self, input: std::option::Option<std::string::String>) -> Self {
self.status = input;
self
}
pub fn build(self) -> crate::output::DeleteLunaClientOutput {
crate::output::DeleteLunaClientOutput {
status: self.status,
}
}
}
}
impl DeleteLunaClientOutput {
pub fn builder() -> crate::output::delete_luna_client_output::Builder {
crate::output::delete_luna_client_output::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DeleteHsmOutput {
pub status: std::option::Option<std::string::String>,
}
impl DeleteHsmOutput {
pub fn status(&self) -> std::option::Option<&str> {
self.status.as_deref()
}
}
impl std::fmt::Debug for DeleteHsmOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DeleteHsmOutput");
formatter.field("status", &self.status);
formatter.finish()
}
}
pub mod delete_hsm_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) status: std::option::Option<std::string::String>,
}
impl Builder {
pub fn status(mut self, input: impl Into<std::string::String>) -> Self {
self.status = Some(input.into());
self
}
pub fn set_status(mut self, input: std::option::Option<std::string::String>) -> Self {
self.status = input;
self
}
pub fn build(self) -> crate::output::DeleteHsmOutput {
crate::output::DeleteHsmOutput {
status: self.status,
}
}
}
}
impl DeleteHsmOutput {
pub fn builder() -> crate::output::delete_hsm_output::Builder {
crate::output::delete_hsm_output::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct DeleteHapgOutput {
pub status: std::option::Option<std::string::String>,
}
impl DeleteHapgOutput {
pub fn status(&self) -> std::option::Option<&str> {
self.status.as_deref()
}
}
impl std::fmt::Debug for DeleteHapgOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("DeleteHapgOutput");
formatter.field("status", &self.status);
formatter.finish()
}
}
pub mod delete_hapg_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) status: std::option::Option<std::string::String>,
}
impl Builder {
pub fn status(mut self, input: impl Into<std::string::String>) -> Self {
self.status = Some(input.into());
self
}
pub fn set_status(mut self, input: std::option::Option<std::string::String>) -> Self {
self.status = input;
self
}
pub fn build(self) -> crate::output::DeleteHapgOutput {
crate::output::DeleteHapgOutput {
status: self.status,
}
}
}
}
impl DeleteHapgOutput {
pub fn builder() -> crate::output::delete_hapg_output::Builder {
crate::output::delete_hapg_output::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CreateLunaClientOutput {
pub client_arn: std::option::Option<std::string::String>,
}
impl CreateLunaClientOutput {
pub fn client_arn(&self) -> std::option::Option<&str> {
self.client_arn.as_deref()
}
}
impl std::fmt::Debug for CreateLunaClientOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CreateLunaClientOutput");
formatter.field("client_arn", &self.client_arn);
formatter.finish()
}
}
pub mod create_luna_client_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) client_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn client_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.client_arn = Some(input.into());
self
}
pub fn set_client_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.client_arn = input;
self
}
pub fn build(self) -> crate::output::CreateLunaClientOutput {
crate::output::CreateLunaClientOutput {
client_arn: self.client_arn,
}
}
}
}
impl CreateLunaClientOutput {
pub fn builder() -> crate::output::create_luna_client_output::Builder {
crate::output::create_luna_client_output::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CreateHsmOutput {
pub hsm_arn: std::option::Option<std::string::String>,
}
impl CreateHsmOutput {
pub fn hsm_arn(&self) -> std::option::Option<&str> {
self.hsm_arn.as_deref()
}
}
impl std::fmt::Debug for CreateHsmOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CreateHsmOutput");
formatter.field("hsm_arn", &self.hsm_arn);
formatter.finish()
}
}
pub mod create_hsm_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) hsm_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn hsm_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.hsm_arn = Some(input.into());
self
}
pub fn set_hsm_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.hsm_arn = input;
self
}
pub fn build(self) -> crate::output::CreateHsmOutput {
crate::output::CreateHsmOutput {
hsm_arn: self.hsm_arn,
}
}
}
}
impl CreateHsmOutput {
pub fn builder() -> crate::output::create_hsm_output::Builder {
crate::output::create_hsm_output::Builder::default()
}
}
#[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct CreateHapgOutput {
pub hapg_arn: std::option::Option<std::string::String>,
}
impl CreateHapgOutput {
pub fn hapg_arn(&self) -> std::option::Option<&str> {
self.hapg_arn.as_deref()
}
}
impl std::fmt::Debug for CreateHapgOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("CreateHapgOutput");
formatter.field("hapg_arn", &self.hapg_arn);
formatter.finish()
}
}
pub mod create_hapg_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) hapg_arn: std::option::Option<std::string::String>,
}
impl Builder {
pub fn hapg_arn(mut self, input: impl Into<std::string::String>) -> Self {
self.hapg_arn = Some(input.into());
self
}
pub fn set_hapg_arn(mut self, input: std::option::Option<std::string::String>) -> Self {
self.hapg_arn = input;
self
}
pub fn build(self) -> crate::output::CreateHapgOutput {
crate::output::CreateHapgOutput {
hapg_arn: self.hapg_arn,
}
}
}
}
impl CreateHapgOutput {
pub fn builder() -> crate::output::create_hapg_output::Builder {
crate::output::create_hapg_output::Builder::default()
}
}
#[allow(missing_docs)] #[non_exhaustive]
#[derive(std::clone::Clone, std::cmp::PartialEq)]
pub struct AddTagsToResourceOutput {
pub status: std::option::Option<std::string::String>,
}
impl AddTagsToResourceOutput {
pub fn status(&self) -> std::option::Option<&str> {
self.status.as_deref()
}
}
impl std::fmt::Debug for AddTagsToResourceOutput {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
let mut formatter = f.debug_struct("AddTagsToResourceOutput");
formatter.field("status", &self.status);
formatter.finish()
}
}
pub mod add_tags_to_resource_output {
#[derive(std::default::Default, std::clone::Clone, std::cmp::PartialEq, std::fmt::Debug)]
pub struct Builder {
pub(crate) status: std::option::Option<std::string::String>,
}
impl Builder {
pub fn status(mut self, input: impl Into<std::string::String>) -> Self {
self.status = Some(input.into());
self
}
pub fn set_status(mut self, input: std::option::Option<std::string::String>) -> Self {
self.status = input;
self
}
pub fn build(self) -> crate::output::AddTagsToResourceOutput {
crate::output::AddTagsToResourceOutput {
status: self.status,
}
}
}
}
impl AddTagsToResourceOutput {
pub fn builder() -> crate::output::add_tags_to_resource_output::Builder {
crate::output::add_tags_to_resource_output::Builder::default()
}
}