@Generated(value="software.amazon.awssdk:codegen") public final class ShareError extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ShareError.Builder,ShareError>
Errors that occurred during the portfolio share operation.
| Modifier and Type | Class and Description |
|---|---|
static interface |
ShareError.Builder |
| Modifier and Type | Method and Description |
|---|---|
List<String> |
accounts()
List of accounts impacted by the error.
|
static ShareError.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
String |
error()
Error type that happened when processing the operation.
|
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
boolean |
hasAccounts()
Returns true if the Accounts property was specified by the sender (it may be empty), or false if the sender did
not specify the value (it will be empty).
|
int |
hashCode() |
String |
message()
Information about the error.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends ShareError.Builder> |
serializableBuilderClass() |
ShareError.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
clone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final boolean hasAccounts()
public final List<String> accounts()
List of accounts impacted by the error.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasAccounts() to see if a value was sent in this field.
public final String message()
Information about the error.
public final String error()
Error type that happened when processing the operation.
public ShareError.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<ShareError.Builder,ShareError>public static ShareError.Builder builder()
public static Class<? extends ShareError.Builder> serializableBuilderClass()
public final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
Copyright © 2021. All rights reserved.