Cloneable
, ReadLimitInfo
, ToCopyableBuilder<PutMethodRequest.Builder,PutMethodRequest>
@Generated("software.amazon.awssdk:codegen") public class PutMethodRequest extends AmazonWebServiceRequest implements ToCopyableBuilder<PutMethodRequest.Builder,PutMethodRequest>
Request to add a method to an existing Resource resource.
Modifier and Type | Class | Description |
---|---|---|
static interface |
PutMethodRequest.Builder |
NOOP
Modifier and Type | Method | Description |
---|---|---|
Boolean |
apiKeyRequired() |
Specifies whether the method required a valid ApiKey.
|
String |
authorizationType() |
The method's authorization type.
|
String |
authorizerId() |
Specifies the identifier of an Authorizer to use on this Method, if the type is CUSTOM.
|
static PutMethodRequest.Builder |
builder() |
|
boolean |
equals(Object obj) |
|
int |
hashCode() |
|
String |
httpMethod() |
Specifies the method request's HTTP method type.
|
String |
operationName() |
A human-friendly operation identifier for the method.
|
Map<String,String> |
requestModels() |
Specifies the Model resources used for the request's content type.
|
Map<String,Boolean> |
requestParameters() |
A key-value map defining required or optional method request parameters that can be accepted by Amazon API
Gateway.
|
String |
requestValidatorId() |
The identifier of a RequestValidator for validating the method request.
|
String |
resourceId() |
|
String |
restApiId() |
|
static Class<? extends PutMethodRequest.Builder> |
serializableBuilderClass() |
|
PutMethodRequest.Builder |
toBuilder() |
Take this object and create a builder that contains all of the current property values of this object.
|
String |
toString() |
clone, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout
public String resourceId()
public String httpMethod()
Specifies the method request's HTTP method type.
public String authorizationType()
The method's authorization type. Valid values are NONE
for open access, AWS_IAM
for
using AWS IAM permissions, CUSTOM
for using a custom authorizer, or COGNITO_USER_POOLS
for using a Cognito user pool.
NONE
for open access, AWS_IAM
for using AWS IAM permissions, CUSTOM
for using a custom authorizer, or
COGNITO_USER_POOLS
for using a Cognito user pool.public String authorizerId()
Specifies the identifier of an Authorizer to use on this Method, if the type is CUSTOM.
public Boolean apiKeyRequired()
Specifies whether the method required a valid ApiKey.
public String operationName()
A human-friendly operation identifier for the method. For example, you can assign the operationName
of ListPets
for the GET /pets
method in PetStore example.
operationName
of ListPets
for the GET /pets
method in PetStore example.public Map<String,Boolean> requestParameters()
A key-value map defining required or optional method request parameters that can be accepted by Amazon API
Gateway. A key defines a method request parameter name matching the pattern of
method.request.{location}.{name}
, where location
is querystring
,
path
, or header
and name
is a valid and unique parameter name. The value
associated with the key is a Boolean flag indicating whether the parameter is required (true
) or
optional (false
). The method request parameter names defined here are available in
Integration to be mapped to integration request parameters or body-mapping templates.
method.request.{location}.{name}
, where location
is querystring
,
path
, or header
and name
is a valid and unique parameter name. The
value associated with the key is a Boolean flag indicating whether the parameter is required (
true
) or optional (false
). The method request parameter names defined here are
available in Integration to be mapped to integration request parameters or body-mapping templates.public String requestValidatorId()
The identifier of a RequestValidator for validating the method request.
public PutMethodRequest.Builder toBuilder()
ToCopyableBuilder
toBuilder
in interface ToCopyableBuilder<PutMethodRequest.Builder,PutMethodRequest>
public static PutMethodRequest.Builder builder()
public static Class<? extends PutMethodRequest.Builder> serializableBuilderClass()
Copyright © 2017 Amazon Web Services, Inc. All Rights Reserved.