Class ValidationError
- java.lang.Object
-
- software.amazon.awssdk.services.ec2.model.ValidationError
-
- All Implemented Interfaces:
Serializable
,SdkPojo
,ToCopyableBuilder<ValidationError.Builder,ValidationError>
@Generated("software.amazon.awssdk:codegen") public final class ValidationError extends Object implements SdkPojo, Serializable, ToCopyableBuilder<ValidationError.Builder,ValidationError>
The error code and error message that is returned for a parameter or parameter combination that is not valid when a new launch template or new version of a launch template is created.
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interface
ValidationError.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static ValidationError.Builder
builder()
String
code()
The error code that indicates why the parameter or parameter combination is not valid.boolean
equals(Object obj)
boolean
equalsBySdkFields(Object obj)
<T> Optional<T>
getValueForField(String fieldName, Class<T> clazz)
int
hashCode()
String
message()
The error message that describes why the parameter or parameter combination is not valid.List<SdkField<?>>
sdkFields()
static Class<? extends ValidationError.Builder>
serializableBuilderClass()
ValidationError.Builder
toBuilder()
String
toString()
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 String code()
The error code that indicates why the parameter or parameter combination is not valid. For more information about error codes, see Error codes.
- Returns:
- The error code that indicates why the parameter or parameter combination is not valid. For more information about error codes, see Error codes.
-
message
public final String message()
The error message that describes why the parameter or parameter combination is not valid. For more information about error messages, see Error codes.
- Returns:
- The error message that describes why the parameter or parameter combination is not valid. For more information about error messages, see Error codes.
-
toBuilder
public ValidationError.Builder toBuilder()
- Specified by:
toBuilder
in interfaceToCopyableBuilder<ValidationError.Builder,ValidationError>
-
builder
public static ValidationError.Builder builder()
-
serializableBuilderClass
public static Class<? extends ValidationError.Builder> serializableBuilderClass()
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFields
in 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.
-
-