Class BatchGetPolicyErrorItem
- java.lang.Object
-
- software.amazon.awssdk.services.verifiedpermissions.model.BatchGetPolicyErrorItem
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<BatchGetPolicyErrorItem.Builder,BatchGetPolicyErrorItem>
@Generated("software.amazon.awssdk:codegen") public final class BatchGetPolicyErrorItem extends Object implements SdkPojo, Serializable, ToCopyableBuilder<BatchGetPolicyErrorItem.Builder,BatchGetPolicyErrorItem>
Contains the information about an error resulting from a
BatchGetPolicyAPI call.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceBatchGetPolicyErrorItem.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static BatchGetPolicyErrorItem.Builderbuilder()BatchGetPolicyErrorCodecode()The error code that was returned.StringcodeAsString()The error code that was returned.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringmessage()A detailed error message.StringpolicyId()The identifier of the policy associated with the failed request.StringpolicyStoreId()The identifier of the policy store associated with the failed request.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends BatchGetPolicyErrorItem.Builder>serializableBuilderClass()BatchGetPolicyErrorItem.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
code
public final BatchGetPolicyErrorCode code()
The error code that was returned.
If the service returns an enum value that is not available in the current SDK version,
codewill returnBatchGetPolicyErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- The error code that was returned.
- See Also:
BatchGetPolicyErrorCode
-
codeAsString
public final String codeAsString()
The error code that was returned.
If the service returns an enum value that is not available in the current SDK version,
codewill returnBatchGetPolicyErrorCode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromcodeAsString().- Returns:
- The error code that was returned.
- See Also:
BatchGetPolicyErrorCode
-
policyStoreId
public final String policyStoreId()
The identifier of the policy store associated with the failed request.
- Returns:
- The identifier of the policy store associated with the failed request.
-
policyId
public final String policyId()
The identifier of the policy associated with the failed request.
- Returns:
- The identifier of the policy associated with the failed request.
-
message
public final String message()
A detailed error message.
- Returns:
- A detailed error message.
-
toBuilder
public BatchGetPolicyErrorItem.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<BatchGetPolicyErrorItem.Builder,BatchGetPolicyErrorItem>
-
builder
public static BatchGetPolicyErrorItem.Builder builder()
-
serializableBuilderClass
public static Class<? extends BatchGetPolicyErrorItem.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
sdkFieldNameToField
public final Map<String,SdkField<?>> sdkFieldNameToField()
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-
-