@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class DescribeProtectionRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
DescribeProtectionRequest() |
Modifier and Type | Method and Description |
---|---|
DescribeProtectionRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getProtectionId()
The unique identifier (ID) for the Protection object to describe.
|
String |
getResourceArn()
The ARN (Amazon Resource Name) of the protected Amazon Web Services resource.
|
int |
hashCode() |
void |
setProtectionId(String protectionId)
The unique identifier (ID) for the Protection object to describe.
|
void |
setResourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the protected Amazon Web Services resource.
|
String |
toString()
Returns a string representation of this object.
|
DescribeProtectionRequest |
withProtectionId(String protectionId)
The unique identifier (ID) for the Protection object to describe.
|
DescribeProtectionRequest |
withResourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the protected Amazon Web Services resource.
|
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 setProtectionId(String protectionId)
The unique identifier (ID) for the Protection object to describe. You must provide either the
ResourceArn
of the protected resource or the ProtectionID
of the protection, but not
both.
protectionId
- The unique identifier (ID) for the Protection object to describe. You must provide either the
ResourceArn
of the protected resource or the ProtectionID
of the protection, but
not both.public String getProtectionId()
The unique identifier (ID) for the Protection object to describe. You must provide either the
ResourceArn
of the protected resource or the ProtectionID
of the protection, but not
both.
ResourceArn
of the protected resource or the ProtectionID
of the protection,
but not both.public DescribeProtectionRequest withProtectionId(String protectionId)
The unique identifier (ID) for the Protection object to describe. You must provide either the
ResourceArn
of the protected resource or the ProtectionID
of the protection, but not
both.
protectionId
- The unique identifier (ID) for the Protection object to describe. You must provide either the
ResourceArn
of the protected resource or the ProtectionID
of the protection, but
not both.public void setResourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the
ResourceArn
of the protected resource or the ProtectionID
of the protection, but not
both.
resourceArn
- The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the
ResourceArn
of the protected resource or the ProtectionID
of the protection, but
not both.public String getResourceArn()
The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the
ResourceArn
of the protected resource or the ProtectionID
of the protection, but not
both.
ResourceArn
of the protected resource or the ProtectionID
of the protection,
but not both.public DescribeProtectionRequest withResourceArn(String resourceArn)
The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the
ResourceArn
of the protected resource or the ProtectionID
of the protection, but not
both.
resourceArn
- The ARN (Amazon Resource Name) of the protected Amazon Web Services resource. You must provide either the
ResourceArn
of the protected resource or the ProtectionID
of the protection, but
not both.public String toString()
toString
in class Object
Object.toString()
public DescribeProtectionRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()