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 |
getHttpMethod()
Specifies the put 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()
Represents requests parameters that are sent with the backend request.
|
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 |
setHttpMethod(String httpMethod)
Specifies the put 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)
Represents requests parameters that are sent with the backend request.
|
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 |
withHttpMethod(String httpMethod)
Specifies the put 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)
Represents requests parameters that are sent with the backend request.
|
PutMethodRequest |
withResourceId(String resourceId)
|
PutMethodRequest |
withRestApiId(String restApiId)
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, 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 put method request's HTTP method type.
httpMethod
- Specifies the put method request's HTTP method type.public String getHttpMethod()
Specifies the put method request's HTTP method type.
public PutMethodRequest withHttpMethod(String httpMethod)
Specifies the put method request's HTTP method type.
httpMethod
- Specifies the put 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 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()
Represents requests parameters that are sent with the backend request.
Request parameters are represented as a key/value map, with a destination
as the key and a source as the value. A source must match an existing
method request parameter, or a static value. Static values must be
enclosed with single quotes, and be pre-encoded based on their
destination in the request. The destination must match the pattern
integration.request.{location}.{name}
, where
location
is either querystring, path, or header.
name
must be a valid, unique parameter name.
integration.request.{location}.{name}
, where
location
is either querystring, path, or header.
name
must be a valid, unique parameter name.public void setRequestParameters(Map<String,Boolean> requestParameters)
Represents requests parameters that are sent with the backend request.
Request parameters are represented as a key/value map, with a destination
as the key and a source as the value. A source must match an existing
method request parameter, or a static value. Static values must be
enclosed with single quotes, and be pre-encoded based on their
destination in the request. The destination must match the pattern
integration.request.{location}.{name}
, where
location
is either querystring, path, or header.
name
must be a valid, unique parameter name.
requestParameters
- Represents requests parameters that are sent with the backend
request. Request parameters are represented as a key/value map,
with a destination as the key and a source as the value. A source
must match an existing method request parameter, or a static
value. Static values must be enclosed with single quotes, and be
pre-encoded based on their destination in the request. The
destination must match the pattern
integration.request.{location}.{name}
, where
location
is either querystring, path, or header.
name
must be a valid, unique parameter name.public PutMethodRequest withRequestParameters(Map<String,Boolean> requestParameters)
Represents requests parameters that are sent with the backend request.
Request parameters are represented as a key/value map, with a destination
as the key and a source as the value. A source must match an existing
method request parameter, or a static value. Static values must be
enclosed with single quotes, and be pre-encoded based on their
destination in the request. The destination must match the pattern
integration.request.{location}.{name}
, where
location
is either querystring, path, or header.
name
must be a valid, unique parameter name.
requestParameters
- Represents requests parameters that are sent with the backend
request. Request parameters are represented as a key/value map,
with a destination as the key and a source as the value. A source
must match an existing method request parameter, or a static
value. Static values must be enclosed with single quotes, and be
pre-encoded based on their destination in the request. The
destination must match the pattern
integration.request.{location}.{name}
, where
location
is either querystring, path, or header.
name
must be a valid, unique parameter name.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 © 2015. All rights reserved.