/* * Copyright 2018-2023 Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). You may not use this file except in compliance with * the License. A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR * CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions * and limitations under the License. */ package com.amazonaws.services.cloudwatchevents.model; import java.io.Serializable; import javax.annotation.Generated; import com.amazonaws.protocol.StructuredPojo; import com.amazonaws.protocol.ProtocolMarshaller; /** *
* These are custom parameter to be used when the target is an API Gateway REST 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. *
* * @see AWS API * Documentation */ @Generated("com.amazonaws:aws-java-sdk-code-generator") public class HttpParameters implements Serializable, Cloneable, StructuredPojo { /** ** The path parameter values to be used to populate API Gateway REST API or EventBridge ApiDestination path * wildcards ("*"). *
*/ private java.util.List* The headers that need to be sent as part of request invoking the API Gateway REST API or EventBridge * ApiDestination. *
*/ private java.util.Map* The query string keys/values that need to be sent as part of request invoking the API Gateway REST API or * EventBridge ApiDestination. *
*/ private java.util.Map* The path parameter values to be used to populate API Gateway REST API or EventBridge ApiDestination path * wildcards ("*"). *
* * @return The path parameter values to be used to populate API Gateway REST API or EventBridge ApiDestination path * wildcards ("*"). */ public java.util.List* The path parameter values to be used to populate API Gateway REST API or EventBridge ApiDestination path * wildcards ("*"). *
* * @param pathParameterValues * The path parameter values to be used to populate API Gateway REST API or EventBridge ApiDestination path * wildcards ("*"). */ public void setPathParameterValues(java.util.Collection* The path parameter values to be used to populate API Gateway REST API or EventBridge ApiDestination path * wildcards ("*"). *
** NOTE: This method appends the values to the existing list (if any). Use * {@link #setPathParameterValues(java.util.Collection)} or {@link #withPathParameterValues(java.util.Collection)} * if you want to override the existing values. *
* * @param pathParameterValues * The path parameter values to be used to populate API Gateway REST API or EventBridge ApiDestination path * wildcards ("*"). * @return Returns a reference to this object so that method calls can be chained together. */ public HttpParameters withPathParameterValues(String... pathParameterValues) { if (this.pathParameterValues == null) { setPathParameterValues(new java.util.ArrayList* The path parameter values to be used to populate API Gateway REST API or EventBridge ApiDestination path * wildcards ("*"). *
* * @param pathParameterValues * The path parameter values to be used to populate API Gateway REST API or EventBridge ApiDestination path * wildcards ("*"). * @return Returns a reference to this object so that method calls can be chained together. */ public HttpParameters withPathParameterValues(java.util.Collection* The headers that need to be sent as part of request invoking the API Gateway REST API or EventBridge * ApiDestination. *
* * @return The headers that need to be sent as part of request invoking the API Gateway REST API or EventBridge * ApiDestination. */ public java.util.Map* The headers that need to be sent as part of request invoking the API Gateway REST API or EventBridge * ApiDestination. *
* * @param headerParameters * The headers that need to be sent as part of request invoking the API Gateway REST API or EventBridge * ApiDestination. */ public void setHeaderParameters(java.util.Map* The headers that need to be sent as part of request invoking the API Gateway REST API or EventBridge * ApiDestination. *
* * @param headerParameters * The headers that need to be sent as part of request invoking the API Gateway REST API or EventBridge * ApiDestination. * @return Returns a reference to this object so that method calls can be chained together. */ public HttpParameters withHeaderParameters(java.util.Map* The query string keys/values that need to be sent as part of request invoking the API Gateway REST API or * EventBridge ApiDestination. *
* * @return The query string keys/values that need to be sent as part of request invoking the API Gateway REST API or * EventBridge ApiDestination. */ public java.util.Map* The query string keys/values that need to be sent as part of request invoking the API Gateway REST API or * EventBridge ApiDestination. *
* * @param queryStringParameters * The query string keys/values that need to be sent as part of request invoking the API Gateway REST API or * EventBridge ApiDestination. */ public void setQueryStringParameters(java.util.Map* The query string keys/values that need to be sent as part of request invoking the API Gateway REST API or * EventBridge ApiDestination. *
* * @param queryStringParameters * The query string keys/values that need to be sent as part of request invoking the API Gateway REST API or * EventBridge ApiDestination. * @return Returns a reference to this object so that method calls can be chained together. */ public HttpParameters withQueryStringParameters(java.util.Map