Class CreateModelRequest
java.lang.Object
software.amazon.awssdk.core.SdkRequest
software.amazon.awssdk.awscore.AwsRequest
software.amazon.awssdk.services.apigateway.model.ApiGatewayRequest
software.amazon.awssdk.services.apigateway.model.CreateModelRequest
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<CreateModelRequest.Builder,CreateModelRequest>
@Generated("software.amazon.awssdk:codegen")
public final class CreateModelRequest
extends ApiGatewayRequest
implements ToCopyableBuilder<CreateModelRequest.Builder,CreateModelRequest>
Request to add a new Model to an existing RestApi resource.
-
Nested Class Summary
Nested Classes -
Method Summary
Modifier and TypeMethodDescriptionstatic CreateModelRequest.Builderbuilder()final StringThe content-type for the model.final StringThe description of the model.final booleanfinal booleanequalsBySdkFields(Object obj) final <T> Optional<T>getValueForField(String fieldName, Class<T> clazz) final inthashCode()final Stringname()The name of the model.final StringThe RestApi identifier under which the Model will be created.final Stringschema()The schema for the model.static Class<? extends CreateModelRequest.Builder>final StringtoString()Returns a string representation of this object.Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfigurationMethods 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
-
restApiId
The RestApi identifier under which the Model will be created.
- Returns:
- The RestApi identifier under which the Model will be created.
-
name
The name of the model. Must be alphanumeric.
- Returns:
- The name of the model. Must be alphanumeric.
-
description
The description of the model.
- Returns:
- The description of the model.
-
schema
The schema for the model. For
application/jsonmodels, this should be JSON schema draft 4 model. The maximum size of the model is 400 KB.- Returns:
- The schema for the model. For
application/jsonmodels, this should be JSON schema draft 4 model. The maximum size of the model is 400 KB.
-
contentType
The content-type for the model.
- Returns:
- The content-type for the model.
-
toBuilder
- Specified by:
toBuilderin interfaceToCopyableBuilder<CreateModelRequest.Builder,CreateModelRequest> - Specified by:
toBuilderin classApiGatewayRequest
-
builder
-
serializableBuilderClass
-
hashCode
public final int hashCode()- Overrides:
hashCodein classAwsRequest
-
equals
- Overrides:
equalsin classAwsRequest
-
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
- Overrides:
getValueForFieldin classSdkRequest
-
sdkFields
-
sdkFieldNameToField
- Specified by:
sdkFieldNameToFieldin interfaceSdkPojo
-