Class AutomationRulesMetadata
- java.lang.Object
-
- software.amazon.awssdk.services.securityhub.model.AutomationRulesMetadata
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<AutomationRulesMetadata.Builder,AutomationRulesMetadata>
@Generated("software.amazon.awssdk:codegen") public final class AutomationRulesMetadata extends Object implements SdkPojo, Serializable, ToCopyableBuilder<AutomationRulesMetadata.Builder,AutomationRulesMetadata>
Metadata for automation rules in the calling account. The response includes rules with a
RuleStatusofENABLEDandDISABLED.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceAutomationRulesMetadata.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static AutomationRulesMetadata.Builderbuilder()InstantcreatedAt()A timestamp that indicates when the rule was created.StringcreatedBy()The principal that created a rule.Stringdescription()A description of the rule.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()BooleanisTerminal()Specifies whether a rule is the last to be applied with respect to a finding that matches the rule criteria.StringruleArn()The Amazon Resource Name (ARN) for the rule.StringruleName()The name of the rule.IntegerruleOrder()An integer ranging from 1 to 1000 that represents the order in which the rule action is applied to findings.RuleStatusruleStatus()Whether the rule is active after it is created.StringruleStatusAsString()Whether the rule is active after it is created.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends AutomationRulesMetadata.Builder>serializableBuilderClass()AutomationRulesMetadata.BuildertoBuilder()StringtoString()Returns a string representation of this object.InstantupdatedAt()A timestamp that indicates when the rule was most recently updated.-
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
-
ruleArn
public final String ruleArn()
The Amazon Resource Name (ARN) for the rule.
- Returns:
- The Amazon Resource Name (ARN) for the rule.
-
ruleStatus
public final RuleStatus ruleStatus()
Whether the rule is active after it is created. If this parameter is equal to
ENABLED, Security Hub starts applying the rule to findings and finding updates after the rule is created. To change the value of this parameter after creating a rule, useBatchUpdateAutomationRules.If the service returns an enum value that is not available in the current SDK version,
ruleStatuswill returnRuleStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromruleStatusAsString().- Returns:
- Whether the rule is active after it is created. If this parameter is equal to
ENABLED, Security Hub starts applying the rule to findings and finding updates after the rule is created. To change the value of this parameter after creating a rule, useBatchUpdateAutomationRules. - See Also:
RuleStatus
-
ruleStatusAsString
public final String ruleStatusAsString()
Whether the rule is active after it is created. If this parameter is equal to
ENABLED, Security Hub starts applying the rule to findings and finding updates after the rule is created. To change the value of this parameter after creating a rule, useBatchUpdateAutomationRules.If the service returns an enum value that is not available in the current SDK version,
ruleStatuswill returnRuleStatus.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromruleStatusAsString().- Returns:
- Whether the rule is active after it is created. If this parameter is equal to
ENABLED, Security Hub starts applying the rule to findings and finding updates after the rule is created. To change the value of this parameter after creating a rule, useBatchUpdateAutomationRules. - See Also:
RuleStatus
-
ruleOrder
public final Integer ruleOrder()
An integer ranging from 1 to 1000 that represents the order in which the rule action is applied to findings. Security Hub applies rules with lower values for this parameter first.
- Returns:
- An integer ranging from 1 to 1000 that represents the order in which the rule action is applied to findings. Security Hub applies rules with lower values for this parameter first.
-
ruleName
public final String ruleName()
The name of the rule.
- Returns:
- The name of the rule.
-
description
public final String description()
A description of the rule.
- Returns:
- A description of the rule.
-
isTerminal
public final Boolean isTerminal()
Specifies whether a rule is the last to be applied with respect to a finding that matches the rule criteria. This is useful when a finding matches the criteria for multiple rules, and each rule has different actions. If a rule is terminal, Security Hub applies the rule action to a finding that matches the rule criteria and doesn't evaluate other rules for the finding. By default, a rule isn't terminal.
- Returns:
- Specifies whether a rule is the last to be applied with respect to a finding that matches the rule criteria. This is useful when a finding matches the criteria for multiple rules, and each rule has different actions. If a rule is terminal, Security Hub applies the rule action to a finding that matches the rule criteria and doesn't evaluate other rules for the finding. By default, a rule isn't terminal.
-
createdAt
public final Instant createdAt()
A timestamp that indicates when the rule was created.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Returns:
- A timestamp that indicates when the rule was created.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
-
updatedAt
public final Instant updatedAt()
A timestamp that indicates when the rule was most recently updated.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
- Returns:
- A timestamp that indicates when the rule was most recently updated.
For more information about the validation and formatting of timestamp fields in Security Hub, see Timestamps.
-
createdBy
public final String createdBy()
The principal that created a rule.
- Returns:
- The principal that created a rule.
-
toBuilder
public AutomationRulesMetadata.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<AutomationRulesMetadata.Builder,AutomationRulesMetadata>
-
builder
public static AutomationRulesMetadata.Builder builder()
-
serializableBuilderClass
public static Class<? extends AutomationRulesMetadata.Builder> serializableBuilderClass()
-
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.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-