@Generated(value="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.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateModelRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateModelRequest.Builder |
builder() |
String |
contentType()
The content-type for the model.
|
String |
description()
The description of the model.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the model.
|
String |
restApiId()
The RestApi identifier under which the Model will be created.
|
String |
schema()
The schema for the model.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateModelRequest.Builder> |
serializableBuilderClass() |
CreateModelRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String restApiId()
The RestApi identifier under which the Model will be created.
public final String name()
The name of the model. Must be alphanumeric.
public final String description()
The description of the model.
public final String schema()
The schema for the model. For application/json models, this should be JSON schema draft 4 model.
application/json models, this should be JSON schema draft 4
model.public final String contentType()
The content-type for the model.
public CreateModelRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateModelRequest.Builder,CreateModelRequest>toBuilder in class ApiGatewayRequestpublic static CreateModelRequest.Builder builder()
public static Class<? extends CreateModelRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.