@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ResourcePolicy extends Object implements Serializable, Cloneable, StructuredPojo
An CodeArtifact resource policy that contains a resource ARN, document details, and a revision.
Constructor and Description |
---|
ResourcePolicy() |
Modifier and Type | Method and Description |
---|---|
ResourcePolicy |
clone() |
boolean |
equals(Object obj) |
String |
getDocument()
The resource policy formatted in JSON.
|
String |
getResourceArn()
The ARN of the resource associated with the resource policy
|
String |
getRevision()
The current revision of the resource policy.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setDocument(String document)
The resource policy formatted in JSON.
|
void |
setResourceArn(String resourceArn)
The ARN of the resource associated with the resource policy
|
void |
setRevision(String revision)
The current revision of the resource policy.
|
String |
toString()
Returns a string representation of this object.
|
ResourcePolicy |
withDocument(String document)
The resource policy formatted in JSON.
|
ResourcePolicy |
withResourceArn(String resourceArn)
The ARN of the resource associated with the resource policy
|
ResourcePolicy |
withRevision(String revision)
The current revision of the resource policy.
|
public void setResourceArn(String resourceArn)
The ARN of the resource associated with the resource policy
resourceArn
- The ARN of the resource associated with the resource policypublic String getResourceArn()
The ARN of the resource associated with the resource policy
public ResourcePolicy withResourceArn(String resourceArn)
The ARN of the resource associated with the resource policy
resourceArn
- The ARN of the resource associated with the resource policypublic void setRevision(String revision)
The current revision of the resource policy.
revision
- The current revision of the resource policy.public String getRevision()
The current revision of the resource policy.
public ResourcePolicy withRevision(String revision)
The current revision of the resource policy.
revision
- The current revision of the resource policy.public void setDocument(String document)
The resource policy formatted in JSON.
document
- The resource policy formatted in JSON.public String getDocument()
The resource policy formatted in JSON.
public ResourcePolicy withDocument(String document)
The resource policy formatted in JSON.
document
- The resource policy formatted in JSON.public String toString()
toString
in class Object
Object.toString()
public ResourcePolicy clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.