@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class ShareError extends Object implements Serializable, Cloneable, StructuredPojo
Errors that occurred during the portfolio share operation.
Constructor and Description |
---|
ShareError() |
Modifier and Type | Method and Description |
---|---|
ShareError |
clone() |
boolean |
equals(Object obj) |
List<String> |
getAccounts()
List of accounts impacted by the error.
|
String |
getError()
Error type that happened when processing the operation.
|
String |
getMessage()
Information about the error.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setAccounts(Collection<String> accounts)
List of accounts impacted by the error.
|
void |
setError(String error)
Error type that happened when processing the operation.
|
void |
setMessage(String message)
Information about the error.
|
String |
toString()
Returns a string representation of this object.
|
ShareError |
withAccounts(Collection<String> accounts)
List of accounts impacted by the error.
|
ShareError |
withAccounts(String... accounts)
List of accounts impacted by the error.
|
ShareError |
withError(String error)
Error type that happened when processing the operation.
|
ShareError |
withMessage(String message)
Information about the error.
|
public List<String> getAccounts()
List of accounts impacted by the error.
public void setAccounts(Collection<String> accounts)
List of accounts impacted by the error.
accounts
- List of accounts impacted by the error.public ShareError withAccounts(String... accounts)
List of accounts impacted by the error.
NOTE: This method appends the values to the existing list (if any). Use
setAccounts(java.util.Collection)
or withAccounts(java.util.Collection)
if you want to override
the existing values.
accounts
- List of accounts impacted by the error.public ShareError withAccounts(Collection<String> accounts)
List of accounts impacted by the error.
accounts
- List of accounts impacted by the error.public void setMessage(String message)
Information about the error.
message
- Information about the error.public String getMessage()
Information about the error.
public ShareError withMessage(String message)
Information about the error.
message
- Information about the error.public void setError(String error)
Error type that happened when processing the operation.
error
- Error type that happened when processing the operation.public String getError()
Error type that happened when processing the operation.
public ShareError withError(String error)
Error type that happened when processing the operation.
error
- Error type that happened when processing the operation.public String toString()
toString
in class Object
Object.toString()
public ShareError clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.