Class MockInput
- java.lang.Object
-
- software.amazon.awssdk.services.sfn.model.MockInput
-
- All Implemented Interfaces:
Serializable,SdkPojo,ToCopyableBuilder<MockInput.Builder,MockInput>
@Generated("software.amazon.awssdk:codegen") public final class MockInput extends Object implements SdkPojo, Serializable, ToCopyableBuilder<MockInput.Builder,MockInput>
A JSON object that contains a mocked
resultorerrorOutput.- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceMockInput.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MockInput.Builderbuilder()booleanequals(Object obj)booleanequalsBySdkFields(Object obj)MockErrorOutputerrorOutput()The mocked error output when calling TestState.MockResponseValidationModefieldValidationMode()Determines the level of strictness when validating mocked results against their respective API models.StringfieldValidationModeAsString()Determines the level of strictness when validating mocked results against their respective API models.<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringresult()A JSON string containing the mocked result of the state invocation.Map<String,SdkField<?>>sdkFieldNameToField()List<SdkField<?>>sdkFields()static Class<? extends MockInput.Builder>serializableBuilderClass()MockInput.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
-
result
public final String result()
A JSON string containing the mocked result of the state invocation.
- Returns:
- A JSON string containing the mocked result of the state invocation.
-
errorOutput
public final MockErrorOutput errorOutput()
The mocked error output when calling TestState. When specified, the mocked response is returned as a JSON object that contains an
errorandcausefield.- Returns:
- The mocked error output when calling TestState. When specified, the mocked response is returned as a JSON
object that contains an
errorandcausefield.
-
fieldValidationMode
public final MockResponseValidationMode fieldValidationMode()
Determines the level of strictness when validating mocked results against their respective API models. Values include:
-
STRICT: All required fields must be present, and all present fields must conform to the API's schema. -
PRESENT: All present fields must conform to the API's schema. -
NONE: No validation is performed.
If no value is specified, the default value is
STRICT.If the service returns an enum value that is not available in the current SDK version,
fieldValidationModewill returnMockResponseValidationMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfieldValidationModeAsString().- Returns:
- Determines the level of strictness when validating mocked results against their respective API models.
Values include:
-
STRICT: All required fields must be present, and all present fields must conform to the API's schema. -
PRESENT: All present fields must conform to the API's schema. -
NONE: No validation is performed.
If no value is specified, the default value is
STRICT. -
- See Also:
MockResponseValidationMode
-
-
fieldValidationModeAsString
public final String fieldValidationModeAsString()
Determines the level of strictness when validating mocked results against their respective API models. Values include:
-
STRICT: All required fields must be present, and all present fields must conform to the API's schema. -
PRESENT: All present fields must conform to the API's schema. -
NONE: No validation is performed.
If no value is specified, the default value is
STRICT.If the service returns an enum value that is not available in the current SDK version,
fieldValidationModewill returnMockResponseValidationMode.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromfieldValidationModeAsString().- Returns:
- Determines the level of strictness when validating mocked results against their respective API models.
Values include:
-
STRICT: All required fields must be present, and all present fields must conform to the API's schema. -
PRESENT: All present fields must conform to the API's schema. -
NONE: No validation is performed.
If no value is specified, the default value is
STRICT. -
- See Also:
MockResponseValidationMode
-
-
toBuilder
public MockInput.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<MockInput.Builder,MockInput>
-
builder
public static MockInput.Builder builder()
-
serializableBuilderClass
public static Class<? extends MockInput.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
-
-