Class DescribeHubResponse
- java.lang.Object
-
- software.amazon.awssdk.core.SdkResponse
-
- software.amazon.awssdk.awscore.AwsResponse
-
- software.amazon.awssdk.services.securityhub.model.SecurityHubResponse
-
- software.amazon.awssdk.services.securityhub.model.DescribeHubResponse
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<DescribeHubResponse.Builder,DescribeHubResponse>
@Generated("software.amazon.awssdk:codegen") public final class DescribeHubResponse extends SecurityHubResponse implements ToCopyableBuilder<DescribeHubResponse.Builder,DescribeHubResponse>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceDescribeHubResponse.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BooleanautoEnableControls()Whether to automatically enable new controls when they are added to standards that are enabled.static DescribeHubResponse.Builderbuilder()ControlFindingGeneratorcontrolFindingGenerator()Specifies whether the calling account has consolidated control findings turned on.StringcontrolFindingGeneratorAsString()Specifies whether the calling account has consolidated control findings turned on.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringhubArn()The ARN of the Hub resource that was retrieved.List<SdkField<?>>sdkFields()static Class<? extends DescribeHubResponse.Builder>serializableBuilderClass()StringsubscribedAt()The date and time when Security Hub was enabled in the account.DescribeHubResponse.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.services.securityhub.model.SecurityHubResponse
responseMetadata
-
Methods inherited from class software.amazon.awssdk.core.SdkResponse
sdkHttpResponse
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
hubArn
public final String hubArn()
The ARN of the Hub resource that was retrieved.
- Returns:
- The ARN of the Hub resource that was retrieved.
-
subscribedAt
public final String subscribedAt()
The date and time when Security Hub was enabled in the account.
- Returns:
- The date and time when Security Hub was enabled in the account.
-
autoEnableControls
public final Boolean autoEnableControls()
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 tofalse, then new controls are not enabled.- Returns:
- 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 tofalse, then new controls are not enabled.
-
controlFindingGenerator
public final ControlFindingGenerator 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_CONTROLif you enabled Security Hub on or after February 23, 2023.If the service returns an enum value that is not available in the current SDK version,
controlFindingGeneratorwill returnControlFindingGenerator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcontrolFindingGeneratorAsString().- Returns:
- 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_CONTROLif you enabled Security Hub on or after February 23, 2023. - See Also:
ControlFindingGenerator
-
controlFindingGeneratorAsString
public final String controlFindingGeneratorAsString()
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_CONTROLif you enabled Security Hub on or after February 23, 2023.If the service returns an enum value that is not available in the current SDK version,
controlFindingGeneratorwill returnControlFindingGenerator.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcontrolFindingGeneratorAsString().- Returns:
- 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_CONTROLif you enabled Security Hub on or after February 23, 2023. - See Also:
ControlFindingGenerator
-
toBuilder
public DescribeHubResponse.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<DescribeHubResponse.Builder,DescribeHubResponse>- Specified by:
toBuilderin classAwsResponse
-
builder
public static DescribeHubResponse.Builder builder()
-
serializableBuilderClass
public static Class<? extends DescribeHubResponse.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsResponse
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsResponse
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkResponse
-
-