@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class HttpParameters extends Object implements Serializable, Cloneable, StructuredPojo
These are custom parameter to be used when the target is an API Gateway REST APIs.
Constructor and Description |
---|
HttpParameters() |
Modifier and Type | Method and Description |
---|---|
HttpParameters |
addHeaderParametersEntry(String key,
String value)
Add a single HeaderParameters entry
|
HttpParameters |
addQueryStringParametersEntry(String key,
String value)
Add a single QueryStringParameters entry
|
HttpParameters |
clearHeaderParametersEntries()
Removes all the entries added into HeaderParameters.
|
HttpParameters |
clearQueryStringParametersEntries()
Removes all the entries added into QueryStringParameters.
|
HttpParameters |
clone() |
boolean |
equals(Object obj) |
Map<String,String> |
getHeaderParameters()
The headers that need to be sent as part of request invoking the API Gateway REST API.
|
List<String> |
getPathParameterValues()
The path parameter values to be used to populate API Gateway REST API path wildcards ("*").
|
Map<String,String> |
getQueryStringParameters()
The query string keys/values that need to be sent as part of request invoking the API Gateway REST API.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setHeaderParameters(Map<String,String> headerParameters)
The headers that need to be sent as part of request invoking the API Gateway REST API.
|
void |
setPathParameterValues(Collection<String> pathParameterValues)
The path parameter values to be used to populate API Gateway REST API path wildcards ("*").
|
void |
setQueryStringParameters(Map<String,String> queryStringParameters)
The query string keys/values that need to be sent as part of request invoking the API Gateway REST API.
|
String |
toString()
Returns a string representation of this object.
|
HttpParameters |
withHeaderParameters(Map<String,String> headerParameters)
The headers that need to be sent as part of request invoking the API Gateway REST API.
|
HttpParameters |
withPathParameterValues(Collection<String> pathParameterValues)
The path parameter values to be used to populate API Gateway REST API path wildcards ("*").
|
HttpParameters |
withPathParameterValues(String... pathParameterValues)
The path parameter values to be used to populate API Gateway REST API path wildcards ("*").
|
HttpParameters |
withQueryStringParameters(Map<String,String> queryStringParameters)
The query string keys/values that need to be sent as part of request invoking the API Gateway REST API.
|
public List<String> getPathParameterValues()
The path parameter values to be used to populate API Gateway REST API path wildcards ("*").
public void setPathParameterValues(Collection<String> pathParameterValues)
The path parameter values to be used to populate API Gateway REST API path wildcards ("*").
pathParameterValues
- The path parameter values to be used to populate API Gateway REST API path wildcards ("*").public HttpParameters withPathParameterValues(String... pathParameterValues)
The path parameter values to be used to populate API Gateway REST API path wildcards ("*").
NOTE: This method appends the values to the existing list (if any). Use
setPathParameterValues(java.util.Collection)
or withPathParameterValues(java.util.Collection)
if you want to override the existing values.
pathParameterValues
- The path parameter values to be used to populate API Gateway REST API path wildcards ("*").public HttpParameters withPathParameterValues(Collection<String> pathParameterValues)
The path parameter values to be used to populate API Gateway REST API path wildcards ("*").
pathParameterValues
- The path parameter values to be used to populate API Gateway REST API path wildcards ("*").public Map<String,String> getHeaderParameters()
The headers that need to be sent as part of request invoking the API Gateway REST API.
public void setHeaderParameters(Map<String,String> headerParameters)
The headers that need to be sent as part of request invoking the API Gateway REST API.
headerParameters
- The headers that need to be sent as part of request invoking the API Gateway REST API.public HttpParameters withHeaderParameters(Map<String,String> headerParameters)
The headers that need to be sent as part of request invoking the API Gateway REST API.
headerParameters
- The headers that need to be sent as part of request invoking the API Gateway REST API.public HttpParameters addHeaderParametersEntry(String key, String value)
public HttpParameters clearHeaderParametersEntries()
public Map<String,String> getQueryStringParameters()
The query string keys/values that need to be sent as part of request invoking the API Gateway REST API.
public void setQueryStringParameters(Map<String,String> queryStringParameters)
The query string keys/values that need to be sent as part of request invoking the API Gateway REST API.
queryStringParameters
- The query string keys/values that need to be sent as part of request invoking the API Gateway REST API.public HttpParameters withQueryStringParameters(Map<String,String> queryStringParameters)
The query string keys/values that need to be sent as part of request invoking the API Gateway REST API.
queryStringParameters
- The query string keys/values that need to be sent as part of request invoking the API Gateway REST API.public HttpParameters addQueryStringParametersEntry(String key, String value)
public HttpParameters clearQueryStringParametersEntries()
public String toString()
toString
in class Object
Object.toString()
public HttpParameters clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.