Class ServiceError
- java.lang.Object
-
- software.amazon.awssdk.services.opsworks.model.ServiceError
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<ServiceError.Builder,ServiceError>
@Generated("software.amazon.awssdk:codegen") public final class ServiceError extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ServiceError.Builder,ServiceError>
Describes an AWS OpsWorks Stacks service error.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceServiceError.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ServiceError.Builderbuilder()StringcreatedAt()When the error occurred.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()StringinstanceId()The instance ID.Stringmessage()A message that describes the error.List<SdkField<?>>sdkFields()static Class<? extends ServiceError.Builder>serializableBuilderClass()StringserviceErrorId()The error ID.StringstackId()The stack ID.ServiceError.BuildertoBuilder()StringtoString()Returns a string representation of this object.Stringtype()The error type.-
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
-
serviceErrorId
public final String serviceErrorId()
The error ID.
- Returns:
- The error ID.
-
stackId
public final String stackId()
The stack ID.
- Returns:
- The stack ID.
-
instanceId
public final String instanceId()
The instance ID.
- Returns:
- The instance ID.
-
type
public final String type()
The error type.
- Returns:
- The error type.
-
message
public final String message()
A message that describes the error.
- Returns:
- A message that describes the error.
-
createdAt
public final String createdAt()
When the error occurred.
- Returns:
- When the error occurred.
-
toBuilder
public ServiceError.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<ServiceError.Builder,ServiceError>
-
builder
public static ServiceError.Builder builder()
-
serializableBuilderClass
public static Class<? extends ServiceError.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.
-
-