public class PutMethodRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Request to add a method to an existing Resource resource.
NOOP
Constructor and Description |
---|
PutMethodRequest() |
Modifier and Type | Method and Description |
---|---|
PutMethodRequest |
addRequestModelsEntry(String key,
String value) |
PutMethodRequest |
addRequestParametersEntry(String key,
Boolean value) |
PutMethodRequest |
clearRequestModelsEntries()
Removes all the entries added into RequestModels.
|
PutMethodRequest |
clearRequestParametersEntries()
Removes all the entries added into RequestParameters.
|
PutMethodRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(Object obj) |
Boolean |
getApiKeyRequired()
Specifies whether the method required a valid ApiKey.
|
String |
getAuthorizationType()
Specifies the type of authorization used for the method.
|
String |
getAuthorizerId()
Specifies the identifier of an Authorizer to use on this Method,
if the type is CUSTOM.
|
String |
getHttpMethod()
Specifies the method request's HTTP method type.
|
Map<String,String> |
getRequestModels()
Specifies the Model resources used for the request's content type.
|
Map<String,Boolean> |
getRequestParameters()
A key-value map defining required or optional method request parameters
that can be accepted by Amazon API Gateway.
|
String |
getResourceId()
|
String |
getRestApiId()
|
int |
hashCode() |
Boolean |
isApiKeyRequired()
Specifies whether the method required a valid ApiKey.
|
void |
setApiKeyRequired(Boolean apiKeyRequired)
Specifies whether the method required a valid ApiKey.
|
void |
setAuthorizationType(String authorizationType)
Specifies the type of authorization used for the method.
|
void |
setAuthorizerId(String authorizerId)
Specifies the identifier of an Authorizer to use on this Method,
if the type is CUSTOM.
|
void |
setHttpMethod(String httpMethod)
Specifies the method request's HTTP method type.
|
void |
setRequestModels(Map<String,String> requestModels)
Specifies the Model resources used for the request's content type.
|
void |
setRequestParameters(Map<String,Boolean> requestParameters)
A key-value map defining required or optional method request parameters
that can be accepted by Amazon API Gateway.
|
void |
setResourceId(String resourceId)
|
void |
setRestApiId(String restApiId)
|
String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
PutMethodRequest |
withApiKeyRequired(Boolean apiKeyRequired)
Specifies whether the method required a valid ApiKey.
|
PutMethodRequest |
withAuthorizationType(String authorizationType)
Specifies the type of authorization used for the method.
|
PutMethodRequest |
withAuthorizerId(String authorizerId)
Specifies the identifier of an Authorizer to use on this Method,
if the type is CUSTOM.
|
PutMethodRequest |
withHttpMethod(String httpMethod)
Specifies the method request's HTTP method type.
|
PutMethodRequest |
withRequestModels(Map<String,String> requestModels)
Specifies the Model resources used for the request's content type.
|
PutMethodRequest |
withRequestParameters(Map<String,Boolean> requestParameters)
A key-value map defining required or optional method request parameters
that can be accepted by Amazon API Gateway.
|
PutMethodRequest |
withResourceId(String resourceId)
|
PutMethodRequest |
withRestApiId(String restApiId)
|
getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setRestApiId(String restApiId)
public String getRestApiId()
public PutMethodRequest withRestApiId(String restApiId)
public void setResourceId(String resourceId)
public String getResourceId()
public PutMethodRequest withResourceId(String resourceId)
public void setHttpMethod(String httpMethod)
Specifies the method request's HTTP method type.
httpMethod
- Specifies the method request's HTTP method type.public String getHttpMethod()
Specifies the method request's HTTP method type.
public PutMethodRequest withHttpMethod(String httpMethod)
Specifies the method request's HTTP method type.
httpMethod
- Specifies the method request's HTTP method type.public void setAuthorizationType(String authorizationType)
Specifies the type of authorization used for the method.
authorizationType
- Specifies the type of authorization used for the method.public String getAuthorizationType()
Specifies the type of authorization used for the method.
public PutMethodRequest withAuthorizationType(String authorizationType)
Specifies the type of authorization used for the method.
authorizationType
- Specifies the type of authorization used for the method.public void setAuthorizerId(String authorizerId)
Specifies the identifier of an Authorizer to use on this Method, if the type is CUSTOM.
authorizerId
- Specifies the identifier of an Authorizer to use on this
Method, if the type is CUSTOM.public String getAuthorizerId()
Specifies the identifier of an Authorizer to use on this Method, if the type is CUSTOM.
public PutMethodRequest withAuthorizerId(String authorizerId)
Specifies the identifier of an Authorizer to use on this Method, if the type is CUSTOM.
authorizerId
- Specifies the identifier of an Authorizer to use on this
Method, if the type is CUSTOM.public void setApiKeyRequired(Boolean apiKeyRequired)
Specifies whether the method required a valid ApiKey.
apiKeyRequired
- Specifies whether the method required a valid ApiKey.public Boolean getApiKeyRequired()
Specifies whether the method required a valid ApiKey.
public PutMethodRequest withApiKeyRequired(Boolean apiKeyRequired)
Specifies whether the method required a valid ApiKey.
apiKeyRequired
- Specifies whether the method required a valid ApiKey.public Boolean isApiKeyRequired()
Specifies whether the method required a valid ApiKey.
public Map<String,Boolean> getRequestParameters()
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 void setRequestParameters(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.
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.public PutMethodRequest withRequestParameters(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.
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.public PutMethodRequest addRequestParametersEntry(String key, Boolean value)
public PutMethodRequest clearRequestParametersEntries()
public PutMethodRequest withRequestModels(Map<String,String> requestModels)
public PutMethodRequest addRequestModelsEntry(String key, String value)
public PutMethodRequest clearRequestModelsEntries()
public String toString()
toString
in class Object
Object.toString()
public PutMethodRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()
Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.