@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ImagePermission extends Object implements Serializable, Cloneable, StructuredPojo
Describes the Amazon Web Services accounts that have been granted permission to use a shared image. For more information about sharing images, see Share or Unshare a Custom WorkSpaces Image.
| Constructor and Description | 
|---|
| ImagePermission() | 
| Modifier and Type | Method and Description | 
|---|---|
| ImagePermission | clone() | 
| boolean | equals(Object obj) | 
| String | getSharedAccountId()
 The identifier of the Amazon Web Services account that an image has been shared with. | 
| int | hashCode() | 
| void | marshall(ProtocolMarshaller protocolMarshaller)Marshalls this structured data using the given  ProtocolMarshaller. | 
| void | setSharedAccountId(String sharedAccountId)
 The identifier of the Amazon Web Services account that an image has been shared with. | 
| String | toString()Returns a string representation of this object. | 
| ImagePermission | withSharedAccountId(String sharedAccountId)
 The identifier of the Amazon Web Services account that an image has been shared with. | 
public void setSharedAccountId(String sharedAccountId)
The identifier of the Amazon Web Services account that an image has been shared with.
sharedAccountId - The identifier of the Amazon Web Services account that an image has been shared with.public String getSharedAccountId()
The identifier of the Amazon Web Services account that an image has been shared with.
public ImagePermission withSharedAccountId(String sharedAccountId)
The identifier of the Amazon Web Services account that an image has been shared with.
sharedAccountId - The identifier of the Amazon Web Services account that an image has been shared with.public String toString()
toString in class ObjectObject.toString()public ImagePermission clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojoProtocolMarshaller.marshall in interface StructuredPojoprotocolMarshaller - Implementation of ProtocolMarshaller used to marshall this object's data.