@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class SecurityHubPolicy extends Object implements Serializable, Cloneable, StructuredPojo
An object that defines how Security Hub is configured. The configuration policy includes whether Security Hub 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 you provide a list of security controls that are enabled in the configuration policy, Security Hub disables all other controls (including newly released controls). If you provide a list of security controls that are disabled in the configuration policy, Security Hub enables all other controls (including newly released controls).
Constructor and Description |
---|
SecurityHubPolicy() |
Modifier and Type | Method and Description |
---|---|
SecurityHubPolicy |
clone() |
boolean |
equals(Object obj) |
List<String> |
getEnabledStandardIdentifiers()
A list that defines which security standards are enabled in the configuration policy.
|
SecurityControlsConfiguration |
getSecurityControlsConfiguration()
An object that defines which security controls are enabled in the configuration policy.
|
Boolean |
getServiceEnabled()
Indicates whether Security Hub is enabled in the policy.
|
int |
hashCode() |
Boolean |
isServiceEnabled()
Indicates whether Security Hub is enabled in the policy.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setEnabledStandardIdentifiers(Collection<String> enabledStandardIdentifiers)
A list that defines which security standards are enabled in the configuration policy.
|
void |
setSecurityControlsConfiguration(SecurityControlsConfiguration securityControlsConfiguration)
An object that defines which security controls are enabled in the configuration policy.
|
void |
setServiceEnabled(Boolean serviceEnabled)
Indicates whether Security Hub is enabled in the policy.
|
String |
toString()
Returns a string representation of this object.
|
SecurityHubPolicy |
withEnabledStandardIdentifiers(Collection<String> enabledStandardIdentifiers)
A list that defines which security standards are enabled in the configuration policy.
|
SecurityHubPolicy |
withEnabledStandardIdentifiers(String... enabledStandardIdentifiers)
A list that defines which security standards are enabled in the configuration policy.
|
SecurityHubPolicy |
withSecurityControlsConfiguration(SecurityControlsConfiguration securityControlsConfiguration)
An object that defines which security controls are enabled in the configuration policy.
|
SecurityHubPolicy |
withServiceEnabled(Boolean serviceEnabled)
Indicates whether Security Hub is enabled in the policy.
|
public void setServiceEnabled(Boolean serviceEnabled)
Indicates whether Security Hub is enabled in the policy.
serviceEnabled
- Indicates whether Security Hub is enabled in the policy.public Boolean getServiceEnabled()
Indicates whether Security Hub is enabled in the policy.
public SecurityHubPolicy withServiceEnabled(Boolean serviceEnabled)
Indicates whether Security Hub is enabled in the policy.
serviceEnabled
- Indicates whether Security Hub is enabled in the policy.public Boolean isServiceEnabled()
Indicates whether Security Hub is enabled in the policy.
public List<String> getEnabledStandardIdentifiers()
A list that defines which security standards are enabled in the configuration policy.
public void setEnabledStandardIdentifiers(Collection<String> enabledStandardIdentifiers)
A list that defines which security standards are enabled in the configuration policy.
enabledStandardIdentifiers
- A list that defines which security standards are enabled in the configuration policy.public SecurityHubPolicy withEnabledStandardIdentifiers(String... enabledStandardIdentifiers)
A list that defines which security standards are enabled in the configuration policy.
NOTE: This method appends the values to the existing list (if any). Use
setEnabledStandardIdentifiers(java.util.Collection)
or
withEnabledStandardIdentifiers(java.util.Collection)
if you want to override the existing values.
enabledStandardIdentifiers
- A list that defines which security standards are enabled in the configuration policy.public SecurityHubPolicy withEnabledStandardIdentifiers(Collection<String> enabledStandardIdentifiers)
A list that defines which security standards are enabled in the configuration policy.
enabledStandardIdentifiers
- A list that defines which security standards are enabled in the configuration policy.public void setSecurityControlsConfiguration(SecurityControlsConfiguration securityControlsConfiguration)
An object that defines which security controls are enabled in the configuration policy. The enablement status of a control is aligned across all of the enabled standards in an account.
securityControlsConfiguration
- An object that defines which security controls are enabled in the configuration policy. The enablement
status of a control is aligned across all of the enabled standards in an account.public SecurityControlsConfiguration getSecurityControlsConfiguration()
An object that defines which security controls are enabled in the configuration policy. The enablement status of a control is aligned across all of the enabled standards in an account.
public SecurityHubPolicy withSecurityControlsConfiguration(SecurityControlsConfiguration securityControlsConfiguration)
An object that defines which security controls are enabled in the configuration policy. The enablement status of a control is aligned across all of the enabled standards in an account.
securityControlsConfiguration
- An object that defines which security controls are enabled in the configuration policy. The enablement
status of a control is aligned across all of the enabled standards in an account.public String toString()
toString
in class Object
Object.toString()
public SecurityHubPolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.