@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 APIs or EventBridge ApiDestinations. In the latter case, these are merged with any InvocationParameters specified on the Connection, with any values from the Connection taking precedence.
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 API or EventBridge ApiDestination.
|
List<String> |
getPathParameterValues()
The path parameter values to be used to populate API Gateway API or EventBridge ApiDestination path wildcards
("*").
|
Map<String,String> |
getQueryStringParameters()
The query string keys/values that need to be sent as part of request invoking the API Gateway API or EventBridge
ApiDestination.
|
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 API or EventBridge ApiDestination.
|
void |
setPathParameterValues(Collection<String> pathParameterValues)
The path parameter values to be used to populate API Gateway API or EventBridge ApiDestination 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 API or EventBridge
ApiDestination.
|
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 API or EventBridge ApiDestination.
|
HttpParameters |
withPathParameterValues(Collection<String> pathParameterValues)
The path parameter values to be used to populate API Gateway API or EventBridge ApiDestination path wildcards
("*").
|
HttpParameters |
withPathParameterValues(String... pathParameterValues)
The path parameter values to be used to populate API Gateway API or EventBridge ApiDestination 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 API or EventBridge
ApiDestination.
|
public List<String> getPathParameterValues()
The path parameter values to be used to populate API Gateway API or EventBridge ApiDestination path wildcards ("*").
public void setPathParameterValues(Collection<String> pathParameterValues)
The path parameter values to be used to populate API Gateway API or EventBridge ApiDestination path wildcards ("*").
pathParameterValues
- The path parameter values to be used to populate API Gateway API or EventBridge ApiDestination path
wildcards ("*").public HttpParameters withPathParameterValues(String... pathParameterValues)
The path parameter values to be used to populate API Gateway API or EventBridge ApiDestination 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 API or EventBridge ApiDestination path
wildcards ("*").public HttpParameters withPathParameterValues(Collection<String> pathParameterValues)
The path parameter values to be used to populate API Gateway API or EventBridge ApiDestination path wildcards ("*").
pathParameterValues
- The path parameter values to be used to populate API Gateway API or EventBridge ApiDestination path
wildcards ("*").public Map<String,String> getHeaderParameters()
The headers that need to be sent as part of request invoking the API Gateway API or EventBridge ApiDestination.
public void setHeaderParameters(Map<String,String> headerParameters)
The headers that need to be sent as part of request invoking the API Gateway API or EventBridge ApiDestination.
headerParameters
- The headers that need to be sent as part of request invoking the API Gateway API or EventBridge
ApiDestination.public HttpParameters withHeaderParameters(Map<String,String> headerParameters)
The headers that need to be sent as part of request invoking the API Gateway API or EventBridge ApiDestination.
headerParameters
- The headers that need to be sent as part of request invoking the API Gateway API or EventBridge
ApiDestination.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 API or EventBridge ApiDestination.
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 API or EventBridge ApiDestination.
queryStringParameters
- The query string keys/values that need to be sent as part of request invoking the API Gateway API or
EventBridge ApiDestination.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 API or EventBridge ApiDestination.
queryStringParameters
- The query string keys/values that need to be sent as part of request invoking the API Gateway API or
EventBridge ApiDestination.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.