@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Protection extends Object implements Serializable, Cloneable, StructuredPojo
An object that represents a resource that is under DDoS protection.
Constructor and Description |
---|
Protection() |
Modifier and Type | Method and Description |
---|---|
Protection |
clone() |
boolean |
equals(Object obj) |
ApplicationLayerAutomaticResponseConfiguration |
getApplicationLayerAutomaticResponseConfiguration()
The automatic application layer DDoS mitigation settings for the protection.
|
List<String> |
getHealthCheckIds()
The unique identifier (ID) for the Route 53 health check that's associated with the protection.
|
String |
getId()
The unique identifier (ID) of the protection.
|
String |
getName()
The name of the protection.
|
String |
getProtectionArn()
The ARN (Amazon Resource Name) of the protection.
|
String |
getResourceArn()
The ARN (Amazon Resource Name) of the Amazon Web Services resource that is protected.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setApplicationLayerAutomaticResponseConfiguration(ApplicationLayerAutomaticResponseConfiguration applicationLayerAutomaticResponseConfiguration)
The automatic application layer DDoS mitigation settings for the protection.
|
void |
setHealthCheckIds(Collection<String> healthCheckIds)
The unique identifier (ID) for the Route 53 health check that's associated with the protection.
|
void |
setId(String id)
The unique identifier (ID) of the protection.
|
void |
setName(String name)
The name of the protection.
|
void |
setProtectionArn(String protectionArn)
The ARN (Amazon Resource Name) of the protection.
|
void |
setResourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the Amazon Web Services resource that is protected.
|
String |
toString()
Returns a string representation of this object.
|
Protection |
withApplicationLayerAutomaticResponseConfiguration(ApplicationLayerAutomaticResponseConfiguration applicationLayerAutomaticResponseConfiguration)
The automatic application layer DDoS mitigation settings for the protection.
|
Protection |
withHealthCheckIds(Collection<String> healthCheckIds)
The unique identifier (ID) for the Route 53 health check that's associated with the protection.
|
Protection |
withHealthCheckIds(String... healthCheckIds)
The unique identifier (ID) for the Route 53 health check that's associated with the protection.
|
Protection |
withId(String id)
The unique identifier (ID) of the protection.
|
Protection |
withName(String name)
The name of the protection.
|
Protection |
withProtectionArn(String protectionArn)
The ARN (Amazon Resource Name) of the protection.
|
Protection |
withResourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the Amazon Web Services resource that is protected.
|
public void setId(String id)
The unique identifier (ID) of the protection.
id
- The unique identifier (ID) of the protection.public String getId()
The unique identifier (ID) of the protection.
public Protection withId(String id)
The unique identifier (ID) of the protection.
id
- The unique identifier (ID) of the protection.public void setName(String name)
The name of the protection. For example, My CloudFront distributions
.
name
- The name of the protection. For example, My CloudFront distributions
.public String getName()
The name of the protection. For example, My CloudFront distributions
.
My CloudFront distributions
.public Protection withName(String name)
The name of the protection. For example, My CloudFront distributions
.
name
- The name of the protection. For example, My CloudFront distributions
.public void setResourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the Amazon Web Services resource that is protected.
resourceArn
- The ARN (Amazon Resource Name) of the Amazon Web Services resource that is protected.public String getResourceArn()
The ARN (Amazon Resource Name) of the Amazon Web Services resource that is protected.
public Protection withResourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the Amazon Web Services resource that is protected.
resourceArn
- The ARN (Amazon Resource Name) of the Amazon Web Services resource that is protected.public List<String> getHealthCheckIds()
The unique identifier (ID) for the Route 53 health check that's associated with the protection.
public void setHealthCheckIds(Collection<String> healthCheckIds)
The unique identifier (ID) for the Route 53 health check that's associated with the protection.
healthCheckIds
- The unique identifier (ID) for the Route 53 health check that's associated with the protection.public Protection withHealthCheckIds(String... healthCheckIds)
The unique identifier (ID) for the Route 53 health check that's associated with the protection.
NOTE: This method appends the values to the existing list (if any). Use
setHealthCheckIds(java.util.Collection)
or withHealthCheckIds(java.util.Collection)
if you want
to override the existing values.
healthCheckIds
- The unique identifier (ID) for the Route 53 health check that's associated with the protection.public Protection withHealthCheckIds(Collection<String> healthCheckIds)
The unique identifier (ID) for the Route 53 health check that's associated with the protection.
healthCheckIds
- The unique identifier (ID) for the Route 53 health check that's associated with the protection.public void setProtectionArn(String protectionArn)
The ARN (Amazon Resource Name) of the protection.
protectionArn
- The ARN (Amazon Resource Name) of the protection.public String getProtectionArn()
The ARN (Amazon Resource Name) of the protection.
public Protection withProtectionArn(String protectionArn)
The ARN (Amazon Resource Name) of the protection.
protectionArn
- The ARN (Amazon Resource Name) of the protection.public void setApplicationLayerAutomaticResponseConfiguration(ApplicationLayerAutomaticResponseConfiguration applicationLayerAutomaticResponseConfiguration)
The automatic application layer DDoS mitigation settings for the protection. This configuration determines whether Shield Advanced automatically manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks.
applicationLayerAutomaticResponseConfiguration
- The automatic application layer DDoS mitigation settings for the protection. This configuration determines
whether Shield Advanced automatically manages rules in the web ACL in order to respond to application
layer events that Shield Advanced determines to be DDoS attacks.public ApplicationLayerAutomaticResponseConfiguration getApplicationLayerAutomaticResponseConfiguration()
The automatic application layer DDoS mitigation settings for the protection. This configuration determines whether Shield Advanced automatically manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks.
public Protection withApplicationLayerAutomaticResponseConfiguration(ApplicationLayerAutomaticResponseConfiguration applicationLayerAutomaticResponseConfiguration)
The automatic application layer DDoS mitigation settings for the protection. This configuration determines whether Shield Advanced automatically manages rules in the web ACL in order to respond to application layer events that Shield Advanced determines to be DDoS attacks.
applicationLayerAutomaticResponseConfiguration
- The automatic application layer DDoS mitigation settings for the protection. This configuration determines
whether Shield Advanced automatically manages rules in the web ACL in order to respond to application
layer events that Shield Advanced determines to be DDoS attacks.public String toString()
toString
in class Object
Object.toString()
public Protection clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.