@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class PutResourcePolicyRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
NOOP
Constructor and Description |
---|
PutResourcePolicyRequest() |
Modifier and Type | Method and Description |
---|---|
PutResourcePolicyRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getPolicy()
A JSON-formatted resource policy.
|
String |
getResourceArn()
The ARN of the
Project or ReportGroup resource you want to associate with a resource
policy. |
int |
hashCode() |
void |
setPolicy(String policy)
A JSON-formatted resource policy.
|
void |
setResourceArn(String resourceArn)
The ARN of the
Project or ReportGroup resource you want to associate with a resource
policy. |
String |
toString()
Returns a string representation of this object.
|
PutResourcePolicyRequest |
withPolicy(String policy)
A JSON-formatted resource policy.
|
PutResourcePolicyRequest |
withResourceArn(String resourceArn)
The ARN of the
Project or ReportGroup resource you want to associate with a resource
policy. |
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 setPolicy(String policy)
A JSON-formatted resource policy. For more information, see Sharing a Project and Sharing a Report Group in the CodeBuild User Guide.
policy
- A JSON-formatted resource policy. For more information, see Sharing a Project and Sharing a Report Group in the CodeBuild User Guide.public String getPolicy()
A JSON-formatted resource policy. For more information, see Sharing a Project and Sharing a Report Group in the CodeBuild User Guide.
public PutResourcePolicyRequest withPolicy(String policy)
A JSON-formatted resource policy. For more information, see Sharing a Project and Sharing a Report Group in the CodeBuild User Guide.
policy
- A JSON-formatted resource policy. For more information, see Sharing a Project and Sharing a Report Group in the CodeBuild User Guide.public void setResourceArn(String resourceArn)
The ARN of the Project
or ReportGroup
resource you want to associate with a resource
policy.
resourceArn
- The ARN of the Project
or ReportGroup
resource you want to associate with a
resource policy.public String getResourceArn()
The ARN of the Project
or ReportGroup
resource you want to associate with a resource
policy.
Project
or ReportGroup
resource you want to associate with a
resource policy.public PutResourcePolicyRequest withResourceArn(String resourceArn)
The ARN of the Project
or ReportGroup
resource you want to associate with a resource
policy.
resourceArn
- The ARN of the Project
or ReportGroup
resource you want to associate with a
resource policy.public String toString()
toString
in class Object
Object.toString()
public PutResourcePolicyRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()