#[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 ==.impl StructuralPartialEq for DescribeHubOutputBuilder
Auto Trait Implementations§
impl Freeze for DescribeHubOutputBuilder
impl RefUnwindSafe for DescribeHubOutputBuilder
impl Send for DescribeHubOutputBuilder
impl Sync for DescribeHubOutputBuilder
impl Unpin for DescribeHubOutputBuilder
impl UnwindSafe for DescribeHubOutputBuilder
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)source§impl<T> Instrument for T
impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more