@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ShareResult extends Object implements Serializable, Cloneable, StructuredPojo
Describes the share results of a resource.
Constructor and Description |
---|
ShareResult() |
Modifier and Type | Method and Description |
---|---|
ShareResult |
clone() |
boolean |
equals(Object obj) |
String |
getPrincipalId()
The ID of the principal.
|
String |
getRole()
The role.
|
String |
getShareId()
The ID of the resource that was shared.
|
String |
getStatus()
The status.
|
String |
getStatusMessage()
The status message.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setPrincipalId(String principalId)
The ID of the principal.
|
void |
setRole(RoleType role)
The role.
|
void |
setRole(String role)
The role.
|
void |
setShareId(String shareId)
The ID of the resource that was shared.
|
void |
setStatus(ShareStatusType status)
The status.
|
void |
setStatus(String status)
The status.
|
void |
setStatusMessage(String statusMessage)
The status message.
|
String |
toString()
Returns a string representation of this object; useful for testing and debugging.
|
ShareResult |
withPrincipalId(String principalId)
The ID of the principal.
|
ShareResult |
withRole(RoleType role)
The role.
|
ShareResult |
withRole(String role)
The role.
|
ShareResult |
withShareId(String shareId)
The ID of the resource that was shared.
|
ShareResult |
withStatus(ShareStatusType status)
The status.
|
ShareResult |
withStatus(String status)
The status.
|
ShareResult |
withStatusMessage(String statusMessage)
The status message.
|
public void setPrincipalId(String principalId)
The ID of the principal.
principalId
- The ID of the principal.public String getPrincipalId()
The ID of the principal.
public ShareResult withPrincipalId(String principalId)
The ID of the principal.
principalId
- The ID of the principal.public ShareResult withRole(String role)
The role.
role
- The role.RoleType
public void setRole(RoleType role)
The role.
role
- The role.RoleType
public ShareResult withRole(RoleType role)
The role.
role
- The role.RoleType
public void setStatus(String status)
The status.
status
- The status.ShareStatusType
public String getStatus()
The status.
ShareStatusType
public ShareResult withStatus(String status)
The status.
status
- The status.ShareStatusType
public void setStatus(ShareStatusType status)
The status.
status
- The status.ShareStatusType
public ShareResult withStatus(ShareStatusType status)
The status.
status
- The status.ShareStatusType
public void setShareId(String shareId)
The ID of the resource that was shared.
shareId
- The ID of the resource that was shared.public String getShareId()
The ID of the resource that was shared.
public ShareResult withShareId(String shareId)
The ID of the resource that was shared.
shareId
- The ID of the resource that was shared.public void setStatusMessage(String statusMessage)
The status message.
statusMessage
- The status message.public String getStatusMessage()
The status message.
public ShareResult withStatusMessage(String statusMessage)
The status message.
statusMessage
- The status message.public String toString()
toString
in class Object
Object.toString()
public ShareResult clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.