Class LicenseOperationFailure
- java.lang.Object
-
- software.amazon.awssdk.services.licensemanager.model.LicenseOperationFailure
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<LicenseOperationFailure.Builder,LicenseOperationFailure>
@Generated("software.amazon.awssdk:codegen") public final class LicenseOperationFailure extends Object implements SdkPojo, Serializable, ToCopyableBuilder<LicenseOperationFailure.Builder,LicenseOperationFailure>
Describes the failure of a license operation.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceLicenseOperationFailure.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static LicenseOperationFailure.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)StringerrorMessage()Error message.InstantfailureTime()Failure time.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()booleanhasMetadataList()For responses, this returns true if the service returned a value for the MetadataList property.List<Metadata>metadataList()Reserved.StringoperationName()Name of the operation.StringoperationRequestedBy()The requester is "License Manager Automated Discovery".StringresourceArn()Amazon Resource Name (ARN) of the resource.StringresourceOwnerId()ID of the Amazon Web Services account that owns the resource.ResourceTyperesourceType()Resource type.StringresourceTypeAsString()Resource type.List<SdkField<?>>sdkFields()static Class<? extends LicenseOperationFailure.Builder>serializableBuilderClass()LicenseOperationFailure.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
-
resourceArn
public final String resourceArn()
Amazon Resource Name (ARN) of the resource.
- Returns:
- Amazon Resource Name (ARN) of the resource.
-
resourceType
public final ResourceType resourceType()
Resource type.
If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- Resource type.
- See Also:
ResourceType
-
resourceTypeAsString
public final String resourceTypeAsString()
Resource type.
If the service returns an enum value that is not available in the current SDK version,
resourceTypewill returnResourceType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromresourceTypeAsString().- Returns:
- Resource type.
- See Also:
ResourceType
-
errorMessage
public final String errorMessage()
Error message.
- Returns:
- Error message.
-
failureTime
public final Instant failureTime()
Failure time.
- Returns:
- Failure time.
-
operationName
public final String operationName()
Name of the operation.
- Returns:
- Name of the operation.
-
resourceOwnerId
public final String resourceOwnerId()
ID of the Amazon Web Services account that owns the resource.
- Returns:
- ID of the Amazon Web Services account that owns the resource.
-
operationRequestedBy
public final String operationRequestedBy()
The requester is "License Manager Automated Discovery".
- Returns:
- The requester is "License Manager Automated Discovery".
-
hasMetadataList
public final boolean hasMetadataList()
For responses, this returns true if the service returned a value for the MetadataList property. This DOES NOT check that the value is non-empty (for which, you should check theisEmpty()method on the property). This is useful because the SDK will never return a null collection or map, but you may need to differentiate between the service returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true if a value for the property was specified in the request builder, and false if a value was not specified.
-
metadataList
public final List<Metadata> metadataList()
Reserved.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that you can differentiate between null and empty), you can use the
hasMetadataList()method.- Returns:
- Reserved.
-
toBuilder
public LicenseOperationFailure.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<LicenseOperationFailure.Builder,LicenseOperationFailure>
-
builder
public static LicenseOperationFailure.Builder builder()
-
serializableBuilderClass
public static Class<? extends LicenseOperationFailure.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.
-
-