// Code generated by software.amazon.smithy.rust.codegen.smithy-rs. DO NOT EDIT.
#[allow(missing_docs)] // documentation missing in model
#[non_exhaustive]
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::fmt::Debug)]
pub struct UpdateConfigurationPolicyOutput {
/// <p>The ARN of the configuration policy.</p>
pub arn: ::std::option::Option<::std::string::String>,
/// <p>The UUID of the configuration policy.</p>
pub id: ::std::option::Option<::std::string::String>,
/// <p>The name of the configuration policy.</p>
pub name: ::std::option::Option<::std::string::String>,
/// <p>The description of the configuration policy.</p>
pub description: ::std::option::Option<::std::string::String>,
/// <p>The date and time, in UTC and ISO 8601 format, that the configuration policy was last updated.</p>
pub updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>The date and time, in UTC and ISO 8601 format, that the configuration policy was created.</p>
pub created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
/// <p>An object that defines how Security Hub CSPM is configured. It includes whether Security Hub CSPM is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If the request included a list of security controls that are enabled in the configuration policy, Security Hub CSPM disables all other controls (including newly released controls). If the request included a list of security controls that are disabled in the configuration policy, Security Hub CSPM enables all other controls (including newly released controls).</p>
pub configuration_policy: ::std::option::Option<crate::types::Policy>,
_request_id: Option<String>,
}
impl UpdateConfigurationPolicyOutput {
/// <p>The ARN of the configuration policy.</p>
pub fn arn(&self) -> ::std::option::Option<&str> {
self.arn.as_deref()
}
/// <p>The UUID of the configuration policy.</p>
pub fn id(&self) -> ::std::option::Option<&str> {
self.id.as_deref()
}
/// <p>The name of the configuration policy.</p>
pub fn name(&self) -> ::std::option::Option<&str> {
self.name.as_deref()
}
/// <p>The description of the configuration policy.</p>
pub fn description(&self) -> ::std::option::Option<&str> {
self.description.as_deref()
}
/// <p>The date and time, in UTC and ISO 8601 format, that the configuration policy was last updated.</p>
pub fn updated_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.updated_at.as_ref()
}
/// <p>The date and time, in UTC and ISO 8601 format, that the configuration policy was created.</p>
pub fn created_at(&self) -> ::std::option::Option<&::aws_smithy_types::DateTime> {
self.created_at.as_ref()
}
/// <p>An object that defines how Security Hub CSPM is configured. It includes whether Security Hub CSPM is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If the request included a list of security controls that are enabled in the configuration policy, Security Hub CSPM disables all other controls (including newly released controls). If the request included a list of security controls that are disabled in the configuration policy, Security Hub CSPM enables all other controls (including newly released controls).</p>
pub fn configuration_policy(&self) -> ::std::option::Option<&crate::types::Policy> {
self.configuration_policy.as_ref()
}
}
impl ::aws_types::request_id::RequestId for UpdateConfigurationPolicyOutput {
fn request_id(&self) -> Option<&str> {
self._request_id.as_deref()
}
}
impl UpdateConfigurationPolicyOutput {
/// Creates a new builder-style object to manufacture [`UpdateConfigurationPolicyOutput`](crate::operation::update_configuration_policy::UpdateConfigurationPolicyOutput).
pub fn builder() -> crate::operation::update_configuration_policy::builders::UpdateConfigurationPolicyOutputBuilder {
crate::operation::update_configuration_policy::builders::UpdateConfigurationPolicyOutputBuilder::default()
}
}
/// A builder for [`UpdateConfigurationPolicyOutput`](crate::operation::update_configuration_policy::UpdateConfigurationPolicyOutput).
#[derive(::std::clone::Clone, ::std::cmp::PartialEq, ::std::default::Default, ::std::fmt::Debug)]
#[non_exhaustive]
pub struct UpdateConfigurationPolicyOutputBuilder {
pub(crate) arn: ::std::option::Option<::std::string::String>,
pub(crate) id: ::std::option::Option<::std::string::String>,
pub(crate) name: ::std::option::Option<::std::string::String>,
pub(crate) description: ::std::option::Option<::std::string::String>,
pub(crate) updated_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) created_at: ::std::option::Option<::aws_smithy_types::DateTime>,
pub(crate) configuration_policy: ::std::option::Option<crate::types::Policy>,
_request_id: Option<String>,
}
impl UpdateConfigurationPolicyOutputBuilder {
/// <p>The ARN of the configuration policy.</p>
pub fn arn(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.arn = ::std::option::Option::Some(input.into());
self
}
/// <p>The ARN of the configuration policy.</p>
pub fn set_arn(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.arn = input;
self
}
/// <p>The ARN of the configuration policy.</p>
pub fn get_arn(&self) -> &::std::option::Option<::std::string::String> {
&self.arn
}
/// <p>The UUID of the configuration policy.</p>
pub fn id(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.id = ::std::option::Option::Some(input.into());
self
}
/// <p>The UUID of the configuration policy.</p>
pub fn set_id(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.id = input;
self
}
/// <p>The UUID of the configuration policy.</p>
pub fn get_id(&self) -> &::std::option::Option<::std::string::String> {
&self.id
}
/// <p>The name of the configuration policy.</p>
pub fn name(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.name = ::std::option::Option::Some(input.into());
self
}
/// <p>The name of the configuration policy.</p>
pub fn set_name(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.name = input;
self
}
/// <p>The name of the configuration policy.</p>
pub fn get_name(&self) -> &::std::option::Option<::std::string::String> {
&self.name
}
/// <p>The description of the configuration policy.</p>
pub fn description(mut self, input: impl ::std::convert::Into<::std::string::String>) -> Self {
self.description = ::std::option::Option::Some(input.into());
self
}
/// <p>The description of the configuration policy.</p>
pub fn set_description(mut self, input: ::std::option::Option<::std::string::String>) -> Self {
self.description = input;
self
}
/// <p>The description of the configuration policy.</p>
pub fn get_description(&self) -> &::std::option::Option<::std::string::String> {
&self.description
}
/// <p>The date and time, in UTC and ISO 8601 format, that the configuration policy was last updated.</p>
pub fn updated_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.updated_at = ::std::option::Option::Some(input);
self
}
/// <p>The date and time, in UTC and ISO 8601 format, that the configuration policy was last updated.</p>
pub fn set_updated_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.updated_at = input;
self
}
/// <p>The date and time, in UTC and ISO 8601 format, that the configuration policy was last updated.</p>
pub fn get_updated_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.updated_at
}
/// <p>The date and time, in UTC and ISO 8601 format, that the configuration policy was created.</p>
pub fn created_at(mut self, input: ::aws_smithy_types::DateTime) -> Self {
self.created_at = ::std::option::Option::Some(input);
self
}
/// <p>The date and time, in UTC and ISO 8601 format, that the configuration policy was created.</p>
pub fn set_created_at(mut self, input: ::std::option::Option<::aws_smithy_types::DateTime>) -> Self {
self.created_at = input;
self
}
/// <p>The date and time, in UTC and ISO 8601 format, that the configuration policy was created.</p>
pub fn get_created_at(&self) -> &::std::option::Option<::aws_smithy_types::DateTime> {
&self.created_at
}
/// <p>An object that defines how Security Hub CSPM is configured. It includes whether Security Hub CSPM is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If the request included a list of security controls that are enabled in the configuration policy, Security Hub CSPM disables all other controls (including newly released controls). If the request included a list of security controls that are disabled in the configuration policy, Security Hub CSPM enables all other controls (including newly released controls).</p>
pub fn configuration_policy(mut self, input: crate::types::Policy) -> Self {
self.configuration_policy = ::std::option::Option::Some(input);
self
}
/// <p>An object that defines how Security Hub CSPM is configured. It includes whether Security Hub CSPM is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If the request included a list of security controls that are enabled in the configuration policy, Security Hub CSPM disables all other controls (including newly released controls). If the request included a list of security controls that are disabled in the configuration policy, Security Hub CSPM enables all other controls (including newly released controls).</p>
pub fn set_configuration_policy(mut self, input: ::std::option::Option<crate::types::Policy>) -> Self {
self.configuration_policy = input;
self
}
/// <p>An object that defines how Security Hub CSPM is configured. It includes whether Security Hub CSPM is enabled or disabled, a list of enabled security standards, a list of enabled or disabled security controls, and a list of custom parameter values for specified controls. If the request included a list of security controls that are enabled in the configuration policy, Security Hub CSPM disables all other controls (including newly released controls). If the request included a list of security controls that are disabled in the configuration policy, Security Hub CSPM enables all other controls (including newly released controls).</p>
pub fn get_configuration_policy(&self) -> &::std::option::Option<crate::types::Policy> {
&self.configuration_policy
}
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
}
/// Consumes the builder and constructs a [`UpdateConfigurationPolicyOutput`](crate::operation::update_configuration_policy::UpdateConfigurationPolicyOutput).
pub fn build(self) -> crate::operation::update_configuration_policy::UpdateConfigurationPolicyOutput {
crate::operation::update_configuration_policy::UpdateConfigurationPolicyOutput {
arn: self.arn,
id: self.id,
name: self.name,
description: self.description,
updated_at: self.updated_at,
created_at: self.created_at,
configuration_policy: self.configuration_policy,
_request_id: self._request_id,
}
}
}