@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.
|
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.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
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.
|
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, withSdkRequestTimeoutpublic 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 AWS CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-id
For Amazon Route 53: arn:aws:route53::account-id: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 AWS CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-id
For Amazon Route 53: arn:aws:route53::account-id: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 AWS CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-id
For Amazon Route 53: arn:aws:route53::account-id: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 AWS CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-id
For Amazon Route 53: arn:aws:route53::account-id: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 AWS CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-id
For Amazon Route 53: arn:aws:route53::account-id: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 AWS CloudFront distribution:
arn:aws:cloudfront::account-id:distribution/distribution-id
For Amazon Route 53: arn:aws:route53::account-id:hostedzone/hosted-zone-id
For an Elastic IP address:
arn:aws:ec2:region:account-id:eip-allocation/allocation-id
public String toString()
toString in class ObjectObject.toString()public CreateProtectionRequest clone()
AmazonWebServiceRequestclone in class AmazonWebServiceRequestObject.clone()Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.