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:
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic ValidationError.Builderbuilder()final Stringcode()The error code that indicates why the parameter or parameter combination is not valid.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringmessage()The error message that describes why the parameter or parameter combination is not valid.static Class<? extends ValidationError.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
Method Details
-
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
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
- Specified by:
toBuilderin interfaceToCopyableBuilder<ValidationError.Builder,ValidationError>
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode() -
equals
-
equalsBySdkFields
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
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. -
getValueForField
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-