@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) |
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 |
getResourceArn()
The ARN (Amazon Resource Name) of the AWS resource that is protected.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
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 |
setResourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the AWS resource that is protected.
|
String |
toString()
Returns a string representation of this object.
|
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 |
withResourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the AWS 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 AWS resource that is protected.
resourceArn
- The ARN (Amazon Resource Name) of the AWS resource that is protected.public String getResourceArn()
The ARN (Amazon Resource Name) of the AWS resource that is protected.
public Protection withResourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the AWS resource that is protected.
resourceArn
- The ARN (Amazon Resource Name) of the AWS 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 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.