#[non_exhaustive]pub struct DescribeHubOutputBuilder { /* private fields */ }
Expand description
A builder for DescribeHubOutput
.
Implementations§
source§impl DescribeHubOutputBuilder
impl DescribeHubOutputBuilder
sourcepub fn hub_arn(self, input: impl Into<String>) -> Self
pub fn hub_arn(self, input: impl Into<String>) -> Self
The ARN of the Hub resource that was retrieved.
sourcepub fn set_hub_arn(self, input: Option<String>) -> Self
pub fn set_hub_arn(self, input: Option<String>) -> Self
The ARN of the Hub resource that was retrieved.
sourcepub fn get_hub_arn(&self) -> &Option<String>
pub fn get_hub_arn(&self) -> &Option<String>
The ARN of the Hub resource that was retrieved.
sourcepub fn subscribed_at(self, input: impl Into<String>) -> Self
pub fn subscribed_at(self, input: impl Into<String>) -> Self
The date and time when Security Hub was enabled in the account.
sourcepub fn set_subscribed_at(self, input: Option<String>) -> Self
pub fn set_subscribed_at(self, input: Option<String>) -> Self
The date and time when Security Hub was enabled in the account.
sourcepub fn get_subscribed_at(&self) -> &Option<String>
pub fn get_subscribed_at(&self) -> &Option<String>
The date and time when Security Hub was enabled in the account.
sourcepub fn auto_enable_controls(self, input: bool) -> Self
pub fn auto_enable_controls(self, input: bool) -> Self
Whether to automatically enable new controls when they are added to standards that are enabled.
If set to true
, then new controls for enabled standards are enabled automatically. If set to false
, then new controls are not enabled.
sourcepub fn set_auto_enable_controls(self, input: Option<bool>) -> Self
pub fn set_auto_enable_controls(self, input: Option<bool>) -> Self
Whether to automatically enable new controls when they are added to standards that are enabled.
If set to true
, then new controls for enabled standards are enabled automatically. If set to false
, then new controls are not enabled.
sourcepub fn get_auto_enable_controls(&self) -> &Option<bool>
pub fn get_auto_enable_controls(&self) -> &Option<bool>
Whether to automatically enable new controls when they are added to standards that are enabled.
If set to true
, then new controls for enabled standards are enabled automatically. If set to false
, then new controls are not enabled.
sourcepub fn control_finding_generator(self, input: ControlFindingGenerator) -> Self
pub fn control_finding_generator(self, input: ControlFindingGenerator) -> Self
Specifies whether the calling account has consolidated control findings turned on. If the value for this field is set to SECURITY_CONTROL
, Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards.
If the value for this field is set to STANDARD_CONTROL
, Security Hub generates separate findings for a control check when the check applies to multiple enabled standards.
The value for this field in a member account matches the value in the administrator account. For accounts that aren't part of an organization, the default value of this field is SECURITY_CONTROL
if you enabled Security Hub on or after February 23, 2023.
sourcepub fn set_control_finding_generator(
self,
input: Option<ControlFindingGenerator>
) -> Self
pub fn set_control_finding_generator( self, input: Option<ControlFindingGenerator> ) -> Self
Specifies whether the calling account has consolidated control findings turned on. If the value for this field is set to SECURITY_CONTROL
, Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards.
If the value for this field is set to STANDARD_CONTROL
, Security Hub generates separate findings for a control check when the check applies to multiple enabled standards.
The value for this field in a member account matches the value in the administrator account. For accounts that aren't part of an organization, the default value of this field is SECURITY_CONTROL
if you enabled Security Hub on or after February 23, 2023.
sourcepub fn get_control_finding_generator(&self) -> &Option<ControlFindingGenerator>
pub fn get_control_finding_generator(&self) -> &Option<ControlFindingGenerator>
Specifies whether the calling account has consolidated control findings turned on. If the value for this field is set to SECURITY_CONTROL
, Security Hub generates a single finding for a control check even when the check applies to multiple enabled standards.
If the value for this field is set to STANDARD_CONTROL
, Security Hub generates separate findings for a control check when the check applies to multiple enabled standards.
The value for this field in a member account matches the value in the administrator account. For accounts that aren't part of an organization, the default value of this field is SECURITY_CONTROL
if you enabled Security Hub on or after February 23, 2023.
sourcepub fn build(self) -> DescribeHubOutput
pub fn build(self) -> DescribeHubOutput
Consumes the builder and constructs a DescribeHubOutput
.
Trait Implementations§
source§impl Clone for DescribeHubOutputBuilder
impl Clone for DescribeHubOutputBuilder
source§fn clone(&self) -> DescribeHubOutputBuilder
fn clone(&self) -> DescribeHubOutputBuilder
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for DescribeHubOutputBuilder
impl Debug for DescribeHubOutputBuilder
source§impl Default for DescribeHubOutputBuilder
impl Default for DescribeHubOutputBuilder
source§fn default() -> DescribeHubOutputBuilder
fn default() -> DescribeHubOutputBuilder
source§impl PartialEq for DescribeHubOutputBuilder
impl PartialEq for DescribeHubOutputBuilder
source§fn eq(&self, other: &DescribeHubOutputBuilder) -> bool
fn eq(&self, other: &DescribeHubOutputBuilder) -> bool
self
and other
values to be equal, and is used
by ==
.