@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Policy extends Object implements Serializable, Cloneable, StructuredPojo
An object that defines how Security Hub is configured. It 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 |
---|
Policy() |
Modifier and Type | Method and Description |
---|---|
Policy |
clone() |
boolean |
equals(Object obj) |
SecurityHubPolicy |
getSecurityHub()
The Amazon Web Service that the configuration policy applies to.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setSecurityHub(SecurityHubPolicy securityHub)
The Amazon Web Service that the configuration policy applies to.
|
String |
toString()
Returns a string representation of this object.
|
Policy |
withSecurityHub(SecurityHubPolicy securityHub)
The Amazon Web Service that the configuration policy applies to.
|
public void setSecurityHub(SecurityHubPolicy securityHub)
The Amazon Web Service that the configuration policy applies to.
securityHub
- The Amazon Web Service that the configuration policy applies to.public SecurityHubPolicy getSecurityHub()
The Amazon Web Service that the configuration policy applies to.
public Policy withSecurityHub(SecurityHubPolicy securityHub)
The Amazon Web Service that the configuration policy applies to.
securityHub
- The Amazon Web Service that the configuration policy applies to.public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.