@Generated(value="software.amazon.awssdk:codegen") public final class PutGatewayResponseRequest extends ApiGatewayRequest implements ToCopyableBuilder<PutGatewayResponseRequest.Builder,PutGatewayResponseRequest>
Creates a customization of a GatewayResponse of a specified response type and status code on the given RestApi.
| Modifier and Type | Class and Description |
|---|---|
static interface |
PutGatewayResponseRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static PutGatewayResponseRequest.Builder |
builder() |
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasResponseParameters()
Returns true if the ResponseParameters property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
boolean |
hasResponseTemplates()
Returns true if the ResponseTemplates property was specified by the sender (it may be empty), or false if the
sender did not specify the value (it will be empty).
|
Map<String,String> |
responseParameters() |
Map<String,String> |
responseTemplates() |
GatewayResponseType |
responseType()
[Required]
|
String |
responseTypeAsString()
[Required]
|
String |
restApiId()
[Required] The string identifier of the associated RestApi.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends PutGatewayResponseRequest.Builder> |
serializableBuilderClass() |
String |
statusCode()
The HTTP status code of the GatewayResponse.
|
PutGatewayResponseRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String restApiId()
[Required] The string identifier of the associated RestApi.
public final GatewayResponseType responseType()
[Required]
The response type of the associated GatewayResponse. Valid values are
If the service returns an enum value that is not available in the current SDK version, responseType will
return GatewayResponseType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from responseTypeAsString().
The response type of the associated GatewayResponse. Valid values are
GatewayResponseTypepublic final String responseTypeAsString()
[Required]
The response type of the associated GatewayResponse. Valid values are
If the service returns an enum value that is not available in the current SDK version, responseType will
return GatewayResponseType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available
from responseTypeAsString().
The response type of the associated GatewayResponse. Valid values are
GatewayResponseTypepublic final String statusCode()
public final boolean hasResponseParameters()
public final Map<String,String> responseParameters()
Response parameters (paths, query strings and headers) of the GatewayResponse as a string-to-string map of key-value pairs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasResponseParameters() to see if a value was sent in this field.
public final boolean hasResponseTemplates()
public final Map<String,String> responseTemplates()
Response templates of the GatewayResponse as a string-to-string map of key-value pairs.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
You can use hasResponseTemplates() to see if a value was sent in this field.
public PutGatewayResponseRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<PutGatewayResponseRequest.Builder,PutGatewayResponseRequest>toBuilder in class ApiGatewayRequestpublic static PutGatewayResponseRequest.Builder builder()
public static Class<? extends PutGatewayResponseRequest.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 © 2021. All rights reserved.