@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) |
String |
getId()
The unique identifier (ID) of the protection.
|
String |
getName()
The friendly 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 |
setId(String id)
The unique identifier (ID) of the protection.
|
void |
setName(String name)
The friendly 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; useful for testing and debugging.
|
Protection |
withId(String id)
The unique identifier (ID) of the protection.
|
Protection |
withName(String name)
The friendly 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 friendly name of the protection. For example, My CloudFront distributions
.
name
- The friendly name of the protection. For example, My CloudFront distributions
.public String getName()
The friendly name of the protection. For example, My CloudFront distributions
.
My CloudFront distributions
.public Protection withName(String name)
The friendly name of the protection. For example, My CloudFront distributions
.
name
- The friendly 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 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.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.