#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq)]
pub struct CreateProfileEntryOutput {
pub id: ::std::string::String,
pub name: ::std::string::String,
pub arn: ::std::string::String,
pub profile_id: ::std::string::String,
pub profile_name: ::std::string::String,
pub extension_id: ::std::string::String,
pub extension_display_name: ::std::string::String,
pub version_policy: ::std::option::Option<crate::types::VersionPolicy>,
pub resolved_version: ::std::option::Option<::std::string::String>,
pub latest_version: ::std::option::Option<::std::string::String>,
pub created_at: ::aws_smithy_types::DateTime,
pub updated_at: ::aws_smithy_types::DateTime,
pub execution_role: ::std::option::Option<::std::string::String>,
pub description: ::std::option::Option<::std::string::String>,
pub effective_settings: ::std::option::Option<::aws_smithy_types::Document>,
pub approved_capabilities: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::CapabilityDefinition>>,
pub inherited: ::std::option::Option<crate::types::ExtensionDefaults>,
pub interfaces: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::InterfaceOptions>>,
_request_id: Option<String>,
}
impl CreateProfileEntryOutput {
pub fn id(&self) -> &str {
use std::ops::Deref;
self.id.deref()
}
pub fn name(&self) -> &str {
use std::ops::Deref;
self.name.deref()
}
pub fn arn(&self) -> &str {
use std::ops::Deref;
self.arn.deref()
}
pub fn profile_id(&self) -> &str {
use std::ops::Deref;
self.profile_id.deref()
}
pub fn profile_name(&self) -> &str {
use std::ops::Deref;
self.profile_name.deref()
}
pub fn extension_id(&self) -> &str {
use std::ops::Deref;
self.extension_id.deref()
}
pub fn extension_display_name(&self) -> &str {
use std::ops::Deref;
self.extension_display_name.deref()
}
pub fn version_policy(&self) -> ::std::option::Option<&crate::types::VersionPolicy> {
self.version_policy.as_ref()
}
pub fn resolved_version(&self) -> ::std::option::Option<&str> {
self.resolved_version.as_deref()
}
pub fn latest_version(&self) -> ::std::option::Option<&str> {
self.latest_version.as_deref()
}
pub fn created_at(&self) -> &::aws_smithy_types::DateTime {
&self.created_at
}
pub fn updated_at(&self) -> &::aws_smithy_types::DateTime {
&self.updated_at
}
pub fn execution_role(&self) -> ::std::option::Option<&str> {
self.execution_role.as_deref()
}
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
pub fn effective_settings(&self) -> ::std::option::Option<&::aws_smithy_types::Document> {
self.effective_settings.as_ref()
}
pub fn approved_capabilities(
&self,
) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::CapabilityDefinition>> {
self.approved_capabilities.as_ref()
}
pub fn inherited(&self) -> ::std::option::Option<&crate::types::ExtensionDefaults> {
self.inherited.as_ref()
}
pub fn interfaces(&self) -> ::std::option::Option<&::std::collections::HashMap<::std::string::String, crate::types::InterfaceOptions>> {
self.interfaces.as_ref()
}
}
impl ::std::fmt::Debug for CreateProfileEntryOutput {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("CreateProfileEntryOutput");
formatter.field("id", &self.id);
formatter.field("name", &self.name);
formatter.field("arn", &self.arn);
formatter.field("profile_id", &self.profile_id);
formatter.field("profile_name", &self.profile_name);
formatter.field("extension_id", &self.extension_id);
formatter.field("extension_display_name", &self.extension_display_name);
formatter.field("version_policy", &self.version_policy);
formatter.field("resolved_version", &self.resolved_version);
formatter.field("latest_version", &self.latest_version);
formatter.field("created_at", &self.created_at);
formatter.field("updated_at", &self.updated_at);
formatter.field("execution_role", &self.execution_role);
formatter.field("description", &self.description);
formatter.field("effective_settings", &"*** Sensitive Data Redacted ***");
formatter.field("approved_capabilities", &self.approved_capabilities);
formatter.field("inherited", &self.inherited);
formatter.field("interfaces", &self.interfaces);
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}
impl ::aws_types::request_id::RequestId for CreateProfileEntryOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl CreateProfileEntryOutput {
pub fn builder() -> crate::operation::create_profile_entry::builders::CreateProfileEntryOutputBuilder {
crate::operation::create_profile_entry::builders::CreateProfileEntryOutputBuilder::default()
}
}
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default)]
#[non_exhaustive]
pub struct CreateProfileEntryOutputBuilder {
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) profile_id: ::std::option::Option<::std::string::String>,
pub(crate) profile_name: ::std::option::Option<::std::string::String>,
pub(crate) extension_id: ::std::option::Option<::std::string::String>,
pub(crate) extension_display_name: ::std::option::Option<::std::string::String>,
pub(crate) version_policy: ::std::option::Option<crate::types::VersionPolicy>,
pub(crate) resolved_version: ::std::option::Option<::std::string::String>,
pub(crate) latest_version: ::std::option::Option<::std::string::String>,
pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) execution_role: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) effective_settings: ::std::option::Option<::aws_smithy_types::Document>,
pub(crate) approved_capabilities: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::CapabilityDefinition>>,
pub(crate) inherited: ::std::option::Option<crate::types::ExtensionDefaults>,
pub(crate) interfaces: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::InterfaceOptions>>,
_request_id: Option<String>,
}
impl CreateProfileEntryOutputBuilder {
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 name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
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 profile_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.profile_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_profile_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.profile_id = input;
self
}
pub fn get_profile_id(&self) -> &::std::option::Option<::std::string::String> {
&self.profile_id
}
pub fn profile_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.profile_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_profile_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.profile_name = input;
self
}
pub fn get_profile_name(&self) -> &::std::option::Option<::std::string::String> {
&self.profile_name
}
pub fn extension_id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.extension_id = ::std::option::Option::Some(input.into());
self
}
pub fn set_extension_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.extension_id = input;
self
}
pub fn get_extension_id(&self) -> &::std::option::Option<::std::string::String> {
&self.extension_id
}
pub fn extension_display_name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.extension_display_name = ::std::option::Option::Some(input.into());
self
}
pub fn set_extension_display_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.extension_display_name = input;
self
}
pub fn get_extension_display_name(&self) -> &::std::option::Option<::std::string::String> {
&self.extension_display_name
}
pub fn version_policy(mut self, input: crate::types::VersionPolicy) -> Self {
self.version_policy = ::std::option::Option::Some(input);
self
}
pub fn set_version_policy(mut self, input: ::std::option::Option<crate::types::VersionPolicy>) -> Self {
self.version_policy = input;
self
}
pub fn get_version_policy(&self) -> &::std::option::Option<crate::types::VersionPolicy> {
&self.version_policy
}
pub fn resolved_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.resolved_version = ::std::option::Option::Some(input.into());
self
}
pub fn set_resolved_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.resolved_version = input;
self
}
pub fn get_resolved_version(&self) -> &::std::option::Option<::std::string::String> {
&self.resolved_version
}
pub fn latest_version(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.latest_version = ::std::option::Option::Some(input.into());
self
}
pub fn set_latest_version(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.latest_version = input;
self
}
pub fn get_latest_version(&self) -> &::std::option::Option<::std::string::String> {
&self.latest_version
}
pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.created_at = ::std::option::Option::Some(input);
self
}
pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.created_at = input;
self
}
pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.created_at
}
pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.updated_at = ::std::option::Option::Some(input);
self
}
pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.updated_at = input;
self
}
pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.updated_at
}
pub fn execution_role(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.execution_role = ::std::option::Option::Some(input.into());
self
}
pub fn set_execution_role(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.execution_role = input;
self
}
pub fn get_execution_role(&self) -> &::std::option::Option<::std::string::String> {
&self.execution_role
}
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
pub fn effective_settings(mut self, input: ::aws_smithy_types::Document) -> Self {
self.effective_settings = ::std::option::Option::Some(input);
self
}
pub fn set_effective_settings(mut self, input: ::std::option::Option<::aws_smithy_types::Document>) -> Self {
self.effective_settings = input;
self
}
pub fn get_effective_settings(&self) -> &::std::option::Option<::aws_smithy_types::Document> {
&self.effective_settings
}
pub fn approved_capabilities(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::CapabilityDefinition) -> Self {
let mut hash_map = self.approved_capabilities.unwrap_or_default();
hash_map.insert(k.into(), v);
self.approved_capabilities = ::std::option::Option::Some(hash_map);
self
}
pub fn set_approved_capabilities(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::CapabilityDefinition>>,
) -> Self {
self.approved_capabilities = input;
self
}
pub fn get_approved_capabilities(
&self,
) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::CapabilityDefinition>> {
&self.approved_capabilities
}
pub fn inherited(mut self, input: crate::types::ExtensionDefaults) -> Self {
self.inherited = ::std::option::Option::Some(input);
self
}
pub fn set_inherited(mut self, input: ::std::option::Option<crate::types::ExtensionDefaults>) -> Self {
self.inherited = input;
self
}
pub fn get_inherited(&self) -> &::std::option::Option<crate::types::ExtensionDefaults> {
&self.inherited
}
pub fn interfaces(mut self, k: impl ::std::convert::Into<::std::string::String>, v: crate::types::InterfaceOptions) -> Self {
let mut hash_map = self.interfaces.unwrap_or_default();
hash_map.insert(k.into(), v);
self.interfaces = ::std::option::Option::Some(hash_map);
self
}
pub fn set_interfaces(
mut self,
input: ::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::InterfaceOptions>>,
) -> Self {
self.interfaces = input;
self
}
pub fn get_interfaces(&self) -> &::std::option::Option<::std::collections::HashMap<::std::string::String, crate::types::InterfaceOptions>> {
&self.interfaces
}
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,
) -> ::std::result::Result<crate::operation::create_profile_entry::CreateProfileEntryOutput, ::aws_smithy_types::error::operation::BuildError>
{
::std::result::Result::Ok(crate::operation::create_profile_entry::CreateProfileEntryOutput {
id: self.id.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"id",
"id was not specified but it is required when building CreateProfileEntryOutput",
)
})?,
name: self.name.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"name",
"name was not specified but it is required when building CreateProfileEntryOutput",
)
})?,
arn: self.arn.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"arn",
"arn was not specified but it is required when building CreateProfileEntryOutput",
)
})?,
profile_id: self.profile_id.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"profile_id",
"profile_id was not specified but it is required when building CreateProfileEntryOutput",
)
})?,
profile_name: self.profile_name.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"profile_name",
"profile_name was not specified but it is required when building CreateProfileEntryOutput",
)
})?,
extension_id: self.extension_id.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"extension_id",
"extension_id was not specified but it is required when building CreateProfileEntryOutput",
)
})?,
extension_display_name: self.extension_display_name.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"extension_display_name",
"extension_display_name was not specified but it is required when building CreateProfileEntryOutput",
)
})?,
version_policy: self.version_policy,
resolved_version: self.resolved_version,
latest_version: self.latest_version,
created_at: self.created_at.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"created_at",
"created_at was not specified but it is required when building CreateProfileEntryOutput",
)
})?,
updated_at: self.updated_at.ok_or_else(|| {
::aws_smithy_types::error::operation::BuildError::missing_field(
"updated_at",
"updated_at was not specified but it is required when building CreateProfileEntryOutput",
)
})?,
execution_role: self.execution_role,
description: self.description,
effective_settings: self.effective_settings,
approved_capabilities: self.approved_capabilities,
inherited: self.inherited,
interfaces: self.interfaces,
_request_id: self._request_id,
})
}
}
impl ::std::fmt::Debug for CreateProfileEntryOutputBuilder {
fn fmt(&self, f: &mut ::std::fmt::Formatter<'_>) -> ::std::fmt::Result {
let mut formatter = f.debug_struct("CreateProfileEntryOutputBuilder");
formatter.field("id", &self.id);
formatter.field("name", &self.name);
formatter.field("arn", &self.arn);
formatter.field("profile_id", &self.profile_id);
formatter.field("profile_name", &self.profile_name);
formatter.field("extension_id", &self.extension_id);
formatter.field("extension_display_name", &self.extension_display_name);
formatter.field("version_policy", &self.version_policy);
formatter.field("resolved_version", &self.resolved_version);
formatter.field("latest_version", &self.latest_version);
formatter.field("created_at", &self.created_at);
formatter.field("updated_at", &self.updated_at);
formatter.field("execution_role", &self.execution_role);
formatter.field("description", &self.description);
formatter.field("effective_settings", &"*** Sensitive Data Redacted ***");
formatter.field("approved_capabilities", &self.approved_capabilities);
formatter.field("inherited", &self.inherited);
formatter.field("interfaces", &self.interfaces);
formatter.field("_request_id", &self._request_id);
formatter.finish()
}
}