#[allow(missing_docs)] #[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct CreatePackagingGroupOutput {
pub arn: ::std::option::Option<::std::string::String>,
pub authorization: ::std::option::Option<crate::types::Authorization>,
pub created_at: ::std::option::Option<::std::string::String>,
pub domain_name: ::std::option::Option<::std::string::String>,
pub egress_access_logs: ::std::option::Option<crate::types::EgressAccessLogs>,
pub id: ::std::option::Option<::std::string::String>,
pub tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
_request_id: Option<String>,
}
impl CreatePackagingGroupOutput {
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
pub fn authorization(&self) -> ::std::option::Option<&crate::types::Authorization> {
self.authorization.as_ref()
}
pub fn created_at(&self) -> ::std::option::Option<&str> {
self.created_at.as_deref()
}
pub fn domain_name(&self) -> ::std::option::Option<&str> {
self.domain_name.as_deref()
}
pub fn egress_access_logs(&self) -> ::std::option::Option<&crate::types::EgressAccessLogs> {
self.egress_access_logs.as_ref()
}
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
pub fn tags(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, ::std::string::String>> {
self.tags.as_ref()
}
}
impl ::aws_types::request_id::RequestId for CreatePackagingGroupOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreatePackagingGroupOutput {
pub fn builder() -> crate::operation::create_packaging_group::builders::CreatePackagingGroupOutputBuilder {
crate::operation::create_packaging_group::builders::CreatePackagingGroupOutputBuilder::default()
}
}
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
pub struct CreatePackagingGroupOutputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) authorization: ::std::option::Option<crate::types::Authorization>,
pub(crate) created_at: ::std::option::Option<::std::string::String>,
pub(crate) domain_name: ::std::option::Option<::std::string::String>,
pub(crate) egress_access_logs: ::std::option::Option<crate::types::EgressAccessLogs>,
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) tags: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>,
_request_id: Option<String>,
}
impl CreatePackagingGroupOutputBuilder {
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
pub fn authorization(mut self, input: crate::types::Authorization) -> Self {
self.authorization = ::std::option::Option::Some(input);
self
}
pub fn set_authorization(mut self, input: ::std::option::Option<crate::types::Authorization>) -> Self {
self.authorization = input;
self
}
pub fn get_authorization(&self) -> &::std::option::Option<crate::types::Authorization> {
&self.authorization
}
pub fn created_at(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.created_at = ::std::option::Option::Some(input.into());
self
}
pub fn set_created_at(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.created_at = input;
self
}
pub fn get_created_at(&self) -> &::std::option::Option<::std::string::String> {
&self.created_at
}
pub fn domain_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.domain_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_domain_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.domain_name = input;
self
}
pub fn get_domain_name(&self) -> &::std::option::Option<::std::string::String> {
&self.domain_name
}
pub fn egress_access_logs(mut self, input: crate::types::EgressAccessLogs) -> Self {
self.egress_access_logs = ::std::option::Option::Some(input);
self
}
pub fn set_egress_access_logs(mut self, input: ::std::option::Option<crate::types::EgressAccessLogs>) -> Self {
self.egress_access_logs = input;
self
}
pub fn get_egress_access_logs(&self) -> &::std::option::Option<crate::types::EgressAccessLogs> {
&self.egress_access_logs
}
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
pub fn tags(mut self, k: impl ::std::convert::Into<::std::string::String>, v: impl ::std::convert::Into<::std::string::String>) -> Self {
let mut hash_map = self.tags.unwrap_or_default();
hash_map.insert(k.into(), v.into());
self.tags = ::std::option::Option::Some(hash_map);
self
}
pub fn set_tags(mut self, input: ::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>>) -> Self {
self.tags = input;
self
}
pub fn get_tags(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, ::std::string::String>> {
&self.tags
}
pub(crate) fn _request_id(mut self, request_id: impl Into<String>) -> Self {
self._request_id = Some(request_id.into());
self
}
pub(crate) fn _set_request_id(&mut self, request_id: Option<String>) -> &mut Self {
self._request_id = request_id;
self
}
pub fn build(self) -> crate::operation::create_packaging_group::CreatePackagingGroupOutput {
crate::operation::create_packaging_group::CreatePackagingGroupOutput {
arn: self.arn,
authorization: self.authorization,
created_at: self.created_at,
domain_name: self.domain_name,
egress_access_logs: self.egress_access_logs,
id: self.id,
tags: self.tags,
_request_id: self._request_id,
}
}
}