@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateProtectionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
CreateProtectionRequest() |
Modifier and Type | Method and Description |
---|---|
CreateProtectionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getName()
Friendly name for the
Protection you are creating. |
String |
getResourceArn()
The ARN (Amazon Resource Name) of the resource to be protected.
|
List<Tag> |
getTags()
One or more tag key-value pairs for the Protection object that is created.
|
int |
hashCode() |
void |
setName(String name)
Friendly name for the
Protection you are creating. |
void |
setResourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the resource to be protected.
|
void |
setTags(Collection<Tag> tags)
One or more tag key-value pairs for the Protection object that is created.
|
String |
toString()
Returns a string representation of this object.
|
CreateProtectionRequest |
withName(String name)
Friendly name for the
Protection you are creating. |
CreateProtectionRequest |
withResourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the resource to be protected.
|
CreateProtectionRequest |
withTags(Collection<Tag> tags)
One or more tag key-value pairs for the Protection object that is created.
|
CreateProtectionRequest |
withTags(Tag... tags)
One or more tag key-value pairs for the Protection object that is created.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setName(String name)
Friendly name for the Protection
you are creating.
name
- Friendly name for the Protection
you are creating.public String getName()
Friendly name for the Protection
you are creating.
Protection
you are creating.public CreateProtectionRequest withName(String name)
Friendly name for the Protection
you are creating.
name
- Friendly name for the Protection
you are creating.public void setResourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the resource to be protected.
The ARN should be in one of the following formats:
For an Application Load Balancer:
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
For an Elastic Load Balancer (Classic Load Balancer):
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name
For an Amazon CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-id
For an Global Accelerator standard accelerator:
arn:aws:globalaccelerator::account-id:accelerator/accelerator-id
For Amazon Route 53: arn:aws:route53:::hostedzone/hosted-zone-id
For an Elastic IP address:
arn:aws:ec2:region:account-id:eip-allocation/allocation-id
resourceArn
- The ARN (Amazon Resource Name) of the resource to be protected.
The ARN should be in one of the following formats:
For an Application Load Balancer:
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
For an Elastic Load Balancer (Classic Load Balancer):
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name
For an Amazon CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-id
For an Global Accelerator standard accelerator:
arn:aws:globalaccelerator::account-id:accelerator/accelerator-id
For Amazon Route 53: arn:aws:route53:::hostedzone/hosted-zone-id
For an Elastic IP address:
arn:aws:ec2:region:account-id:eip-allocation/allocation-id
public String getResourceArn()
The ARN (Amazon Resource Name) of the resource to be protected.
The ARN should be in one of the following formats:
For an Application Load Balancer:
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
For an Elastic Load Balancer (Classic Load Balancer):
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name
For an Amazon CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-id
For an Global Accelerator standard accelerator:
arn:aws:globalaccelerator::account-id:accelerator/accelerator-id
For Amazon Route 53: arn:aws:route53:::hostedzone/hosted-zone-id
For an Elastic IP address:
arn:aws:ec2:region:account-id:eip-allocation/allocation-id
The ARN should be in one of the following formats:
For an Application Load Balancer:
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
For an Elastic Load Balancer (Classic Load Balancer):
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name
For an Amazon CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-id
For an Global Accelerator standard accelerator:
arn:aws:globalaccelerator::account-id:accelerator/accelerator-id
For Amazon Route 53: arn:aws:route53:::hostedzone/hosted-zone-id
For an Elastic IP address:
arn:aws:ec2:region:account-id:eip-allocation/allocation-id
public CreateProtectionRequest withResourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the resource to be protected.
The ARN should be in one of the following formats:
For an Application Load Balancer:
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
For an Elastic Load Balancer (Classic Load Balancer):
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name
For an Amazon CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-id
For an Global Accelerator standard accelerator:
arn:aws:globalaccelerator::account-id:accelerator/accelerator-id
For Amazon Route 53: arn:aws:route53:::hostedzone/hosted-zone-id
For an Elastic IP address:
arn:aws:ec2:region:account-id:eip-allocation/allocation-id
resourceArn
- The ARN (Amazon Resource Name) of the resource to be protected.
The ARN should be in one of the following formats:
For an Application Load Balancer:
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/app/load-balancer-name/load-balancer-id
For an Elastic Load Balancer (Classic Load Balancer):
arn:aws:elasticloadbalancing:region:account-id:loadbalancer/load-balancer-name
For an Amazon CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-id
For an Global Accelerator standard accelerator:
arn:aws:globalaccelerator::account-id:accelerator/accelerator-id
For Amazon Route 53: arn:aws:route53:::hostedzone/hosted-zone-id
For an Elastic IP address:
arn:aws:ec2:region:account-id:eip-allocation/allocation-id
public List<Tag> getTags()
One or more tag key-value pairs for the Protection object that is created.
public void setTags(Collection<Tag> tags)
One or more tag key-value pairs for the Protection object that is created.
tags
- One or more tag key-value pairs for the Protection object that is created.public CreateProtectionRequest withTags(Tag... tags)
One or more tag key-value pairs for the Protection object that is created.
NOTE: This method appends the values to the existing list (if any). Use
setTags(java.util.Collection)
or withTags(java.util.Collection)
if you want to override the
existing values.
tags
- One or more tag key-value pairs for the Protection object that is created.public CreateProtectionRequest withTags(Collection<Tag> tags)
One or more tag key-value pairs for the Protection object that is created.
tags
- One or more tag key-value pairs for the Protection object that is created.public String toString()
toString
in class Object
Object.toString()
public CreateProtectionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()