
com.amazonaws.services.apigateway.model.UpdateIntegrationResult Maven / Gradle / Ivy
/*
* Copyright 2017-2022 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.apigateway.model;
import java.io.Serializable;
import javax.annotation.Generated;
/**
*
* Represents an HTTP, HTTP_PROXY, AWS, AWS_PROXY, or Mock integration.
*
*/
@Generated("com.amazonaws:aws-java-sdk-code-generator")
public class UpdateIntegrationResult extends com.amazonaws.AmazonWebServiceResult implements Serializable, Cloneable {
/**
*
* Specifies an API method integration type. The valid value is one of the following:
*
*
* For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https
), port
* and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy
* integration with a connectionType
of VPC_LINK
is referred to as a private integration
* and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.
*
*/
private String type;
/**
*
* Specifies the integration's HTTP method type.
*
*/
private String httpMethod;
/**
*
* Specifies Uniform Resource Identifier (URI) of the integration endpoint.
*
*
* For HTTP
or HTTP_PROXY
integrations, the URI must be a fully formed, encoded HTTP(S)
* URL according to the RFC-3986 specification, for either standard integration, where connectionType
* is not VPC_LINK
, or private integration, where connectionType
is VPC_LINK
.
* For a private HTTP integration, the URI is not used for routing. For AWS
or AWS_PROXY
* integrations, the URI is of the form
* arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}
. Here, {Region} is
* the API Gateway region (e.g., us-east-1); {service} is the name of the integrated Amazon Web Services service
* (e.g., s3); and {subdomain} is a designated subdomain supported by certain Amazon Web Services service for fast
* host-name lookup. action can be used for an Amazon Web Services service action-based API, using an
* Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action
* {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The
* ensuing service_api refers to the path to an Amazon Web Services service resource, including the region of the
* integrated Amazon Web Services service, if applicable. For example, for integration with the S3 API of GetObject,
* the uri can be either
* arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key}
or
* arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}
*
*/
private String uri;
/**
*
* The type of the network connection to the integration endpoint. The valid value is INTERNET
for
* connections through the public routable internet or VPC_LINK
for private connections between API
* Gateway and a network load balancer in a VPC. The default value is INTERNET
.
*
*/
private String connectionType;
/**
*
* The ID of the VpcLink used for the integration when connectionType=VPC_LINK
and undefined,
* otherwise.
*
*/
private String connectionId;
/**
*
* Specifies the credentials required for the integration, if any. For AWS integrations, three options are
* available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To
* require that the caller's identity be passed through from the request, specify the string
* arn:aws:iam::\*:user/\*
. To use resource-based permissions on supported AWS services, specify null.
*
*/
private String credentials;
/**
*
* A key-value map specifying request parameters that are passed from the method request to the back end. The key is
* an integration request parameter name and the associated value is a method request parameter value or static
* value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request
* parameter value must match the pattern of method.request.{location}.{name}
, where
* location
is querystring
, path
, or header
and
* name
must be a valid and unique method request parameter name.
*
*/
private java.util.Map requestParameters;
/**
*
* Represents a map of Velocity templates that are applied on the request payload based on the value of the
* Content-Type header sent by the client. The content type value is the key in this map, and the template (as a
* String) is the value.
*
*/
private java.util.Map requestTemplates;
/**
*
* Specifies how the method request body of an unmapped content type will be passed through the integration request
* to the back end without transformation. A content type is unmapped if no mapping template is defined in the
* integration or the content type does not match any of the mapped content types, as specified in
* requestTemplates
. The valid value is one of the following: WHEN_NO_MATCH
: passes the
* method request body through the integration request to the back end without transformation when the method
* request content type does not match any content type associated with the mapping templates defined in the
* integration request. WHEN_NO_TEMPLATES
: passes the method request body through the integration
* request to the back end without transformation when no mapping template is defined in the integration request. If
* a template is defined when this option is selected, the method request of an unmapped content-type will be
* rejected with an HTTP 415 Unsupported Media Type response. NEVER
: rejects the method request with an
* HTTP 415 Unsupported Media Type response when either the method request content type does not match any content
* type associated with the mapping templates defined in the integration request or no mapping template is defined
* in the integration request.
*
*/
private String passthroughBehavior;
/**
*
* Specifies how to handle request payload content type conversions. Supported values are
* CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
*
*
* If this property is not defined, the request payload will be passed through from the method request to
* integration request without modification, provided that the passthroughBehavior
is configured to
* support payload pass-through.
*
*/
private String contentHandling;
/**
*
* Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.
*
*/
private Integer timeoutInMillis;
/**
*
* Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the
* cacheNamespace
. You can specify the same cacheNamespace
across resources to return the
* same cached data for requests to different resources.
*
*/
private String cacheNamespace;
/**
*
* A list of request parameters whose values API Gateway caches. To be valid values for
* cacheKeyParameters
, these parameters must also be specified for Method
* requestParameters
.
*
*/
private java.util.List cacheKeyParameters;
/**
*
* Specifies the integration's responses.
*
*/
private java.util.Map integrationResponses;
/**
*
* Specifies the TLS configuration for an integration.
*
*/
private TlsConfig tlsConfig;
/**
*
* Specifies an API method integration type. The valid value is one of the following:
*
*
* For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https
), port
* and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy
* integration with a connectionType
of VPC_LINK
is referred to as a private integration
* and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.
*
*
* @param type
* Specifies an API method integration type. The valid value is one of the following:
*
* For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https
* ), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or
* HTTP proxy integration with a connectionType
of VPC_LINK
is referred to as a
* private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.
* @see IntegrationType
*/
public void setType(String type) {
this.type = type;
}
/**
*
* Specifies an API method integration type. The valid value is one of the following:
*
*
* For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https
), port
* and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy
* integration with a connectionType
of VPC_LINK
is referred to as a private integration
* and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.
*
*
* @return Specifies an API method integration type. The valid value is one of the following:
*
* For the HTTP and HTTP proxy integrations, each integration can specify a protocol (
* http/https
), port and path. Standard 80 and 443 ports are supported as well as custom ports
* above 1024. An HTTP or HTTP proxy integration with a connectionType
of VPC_LINK
* is referred to as a private integration and uses a VpcLink to connect API Gateway to a network load
* balancer of a VPC.
* @see IntegrationType
*/
public String getType() {
return this.type;
}
/**
*
* Specifies an API method integration type. The valid value is one of the following:
*
*
* For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https
), port
* and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy
* integration with a connectionType
of VPC_LINK
is referred to as a private integration
* and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.
*
*
* @param type
* Specifies an API method integration type. The valid value is one of the following:
*
* For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https
* ), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or
* HTTP proxy integration with a connectionType
of VPC_LINK
is referred to as a
* private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IntegrationType
*/
public UpdateIntegrationResult withType(String type) {
setType(type);
return this;
}
/**
*
* Specifies an API method integration type. The valid value is one of the following:
*
*
* For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https
), port
* and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy
* integration with a connectionType
of VPC_LINK
is referred to as a private integration
* and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.
*
*
* @param type
* Specifies an API method integration type. The valid value is one of the following:
*
* For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https
* ), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or
* HTTP proxy integration with a connectionType
of VPC_LINK
is referred to as a
* private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.
* @see IntegrationType
*/
public void setType(IntegrationType type) {
withType(type);
}
/**
*
* Specifies an API method integration type. The valid value is one of the following:
*
*
* For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https
), port
* and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or HTTP proxy
* integration with a connectionType
of VPC_LINK
is referred to as a private integration
* and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.
*
*
* @param type
* Specifies an API method integration type. The valid value is one of the following:
*
* For the HTTP and HTTP proxy integrations, each integration can specify a protocol (http/https
* ), port and path. Standard 80 and 443 ports are supported as well as custom ports above 1024. An HTTP or
* HTTP proxy integration with a connectionType
of VPC_LINK
is referred to as a
* private integration and uses a VpcLink to connect API Gateway to a network load balancer of a VPC.
* @return Returns a reference to this object so that method calls can be chained together.
* @see IntegrationType
*/
public UpdateIntegrationResult withType(IntegrationType type) {
this.type = type.toString();
return this;
}
/**
*
* Specifies the integration's HTTP method type.
*
*
* @param httpMethod
* Specifies the integration's HTTP method type.
*/
public void setHttpMethod(String httpMethod) {
this.httpMethod = httpMethod;
}
/**
*
* Specifies the integration's HTTP method type.
*
*
* @return Specifies the integration's HTTP method type.
*/
public String getHttpMethod() {
return this.httpMethod;
}
/**
*
* Specifies the integration's HTTP method type.
*
*
* @param httpMethod
* Specifies the integration's HTTP method type.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult withHttpMethod(String httpMethod) {
setHttpMethod(httpMethod);
return this;
}
/**
*
* Specifies Uniform Resource Identifier (URI) of the integration endpoint.
*
*
* For HTTP
or HTTP_PROXY
integrations, the URI must be a fully formed, encoded HTTP(S)
* URL according to the RFC-3986 specification, for either standard integration, where connectionType
* is not VPC_LINK
, or private integration, where connectionType
is VPC_LINK
.
* For a private HTTP integration, the URI is not used for routing. For AWS
or AWS_PROXY
* integrations, the URI is of the form
* arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}
. Here, {Region} is
* the API Gateway region (e.g., us-east-1); {service} is the name of the integrated Amazon Web Services service
* (e.g., s3); and {subdomain} is a designated subdomain supported by certain Amazon Web Services service for fast
* host-name lookup. action can be used for an Amazon Web Services service action-based API, using an
* Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action
* {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The
* ensuing service_api refers to the path to an Amazon Web Services service resource, including the region of the
* integrated Amazon Web Services service, if applicable. For example, for integration with the S3 API of GetObject,
* the uri can be either
* arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key}
or
* arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}
*
*
* @param uri
* Specifies Uniform Resource Identifier (URI) of the integration endpoint.
*
* For HTTP
or HTTP_PROXY
integrations, the URI must be a fully formed, encoded
* HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where
* connectionType
is not VPC_LINK
, or private integration, where
* connectionType
is VPC_LINK
. For a private HTTP integration, the URI is not used
* for routing. For AWS
or AWS_PROXY
integrations, the URI is of the form
* arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}
. Here,
* {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated Amazon Web
* Services service (e.g., s3); and {subdomain} is a designated subdomain supported by certain Amazon Web
* Services service for fast host-name lookup. action can be used for an Amazon Web Services service
* action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing
* {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path
* can be used for an AWS service path-based API. The ensuing service_api refers to the path to an Amazon Web
* Services service resource, including the region of the integrated Amazon Web Services service, if
* applicable. For example, for integration with the S3 API of GetObject, the uri can be either
* arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key}
or
* arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}
*/
public void setUri(String uri) {
this.uri = uri;
}
/**
*
* Specifies Uniform Resource Identifier (URI) of the integration endpoint.
*
*
* For HTTP
or HTTP_PROXY
integrations, the URI must be a fully formed, encoded HTTP(S)
* URL according to the RFC-3986 specification, for either standard integration, where connectionType
* is not VPC_LINK
, or private integration, where connectionType
is VPC_LINK
.
* For a private HTTP integration, the URI is not used for routing. For AWS
or AWS_PROXY
* integrations, the URI is of the form
* arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}
. Here, {Region} is
* the API Gateway region (e.g., us-east-1); {service} is the name of the integrated Amazon Web Services service
* (e.g., s3); and {subdomain} is a designated subdomain supported by certain Amazon Web Services service for fast
* host-name lookup. action can be used for an Amazon Web Services service action-based API, using an
* Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action
* {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The
* ensuing service_api refers to the path to an Amazon Web Services service resource, including the region of the
* integrated Amazon Web Services service, if applicable. For example, for integration with the S3 API of GetObject,
* the uri can be either
* arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key}
or
* arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}
*
*
* @return Specifies Uniform Resource Identifier (URI) of the integration endpoint.
*
* For HTTP
or HTTP_PROXY
integrations, the URI must be a fully formed, encoded
* HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where
* connectionType
is not VPC_LINK
, or private integration, where
* connectionType
is VPC_LINK
. For a private HTTP integration, the URI is not used
* for routing. For AWS
or AWS_PROXY
integrations, the URI is of the form
* arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}
. Here,
* {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated Amazon Web
* Services service (e.g., s3); and {subdomain} is a designated subdomain supported by certain Amazon Web
* Services service for fast host-name lookup. action can be used for an Amazon Web Services service
* action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing
* {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path
* can be used for an AWS service path-based API. The ensuing service_api refers to the path to an Amazon
* Web Services service resource, including the region of the integrated Amazon Web Services service, if
* applicable. For example, for integration with the S3 API of GetObject, the uri can be either
* arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key}
or
* arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}
*/
public String getUri() {
return this.uri;
}
/**
*
* Specifies Uniform Resource Identifier (URI) of the integration endpoint.
*
*
* For HTTP
or HTTP_PROXY
integrations, the URI must be a fully formed, encoded HTTP(S)
* URL according to the RFC-3986 specification, for either standard integration, where connectionType
* is not VPC_LINK
, or private integration, where connectionType
is VPC_LINK
.
* For a private HTTP integration, the URI is not used for routing. For AWS
or AWS_PROXY
* integrations, the URI is of the form
* arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}
. Here, {Region} is
* the API Gateway region (e.g., us-east-1); {service} is the name of the integrated Amazon Web Services service
* (e.g., s3); and {subdomain} is a designated subdomain supported by certain Amazon Web Services service for fast
* host-name lookup. action can be used for an Amazon Web Services service action-based API, using an
* Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing {service_api} refers to a supported action
* {name} plus any required input parameters. Alternatively, path can be used for an AWS service path-based API. The
* ensuing service_api refers to the path to an Amazon Web Services service resource, including the region of the
* integrated Amazon Web Services service, if applicable. For example, for integration with the S3 API of GetObject,
* the uri can be either
* arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key}
or
* arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}
*
*
* @param uri
* Specifies Uniform Resource Identifier (URI) of the integration endpoint.
*
* For HTTP
or HTTP_PROXY
integrations, the URI must be a fully formed, encoded
* HTTP(S) URL according to the RFC-3986 specification, for either standard integration, where
* connectionType
is not VPC_LINK
, or private integration, where
* connectionType
is VPC_LINK
. For a private HTTP integration, the URI is not used
* for routing. For AWS
or AWS_PROXY
integrations, the URI is of the form
* arn:aws:apigateway:{region}:{subdomain.service|service}:path|action/{service_api}
. Here,
* {Region} is the API Gateway region (e.g., us-east-1); {service} is the name of the integrated Amazon Web
* Services service (e.g., s3); and {subdomain} is a designated subdomain supported by certain Amazon Web
* Services service for fast host-name lookup. action can be used for an Amazon Web Services service
* action-based API, using an Action={name}&{p1}={v1}&p2={v2}... query string. The ensuing
* {service_api} refers to a supported action {name} plus any required input parameters. Alternatively, path
* can be used for an AWS service path-based API. The ensuing service_api refers to the path to an Amazon Web
* Services service resource, including the region of the integrated Amazon Web Services service, if
* applicable. For example, for integration with the S3 API of GetObject, the uri can be either
* arn:aws:apigateway:us-west-2:s3:action/GetObject&Bucket={bucket}&Key={key}
or
* arn:aws:apigateway:us-west-2:s3:path/{bucket}/{key}
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult withUri(String uri) {
setUri(uri);
return this;
}
/**
*
* The type of the network connection to the integration endpoint. The valid value is INTERNET
for
* connections through the public routable internet or VPC_LINK
for private connections between API
* Gateway and a network load balancer in a VPC. The default value is INTERNET
.
*
*
* @param connectionType
* The type of the network connection to the integration endpoint. The valid value is INTERNET
* for connections through the public routable internet or VPC_LINK
for private connections
* between API Gateway and a network load balancer in a VPC. The default value is INTERNET
.
* @see ConnectionType
*/
public void setConnectionType(String connectionType) {
this.connectionType = connectionType;
}
/**
*
* The type of the network connection to the integration endpoint. The valid value is INTERNET
for
* connections through the public routable internet or VPC_LINK
for private connections between API
* Gateway and a network load balancer in a VPC. The default value is INTERNET
.
*
*
* @return The type of the network connection to the integration endpoint. The valid value is INTERNET
* for connections through the public routable internet or VPC_LINK
for private connections
* between API Gateway and a network load balancer in a VPC. The default value is INTERNET
.
* @see ConnectionType
*/
public String getConnectionType() {
return this.connectionType;
}
/**
*
* The type of the network connection to the integration endpoint. The valid value is INTERNET
for
* connections through the public routable internet or VPC_LINK
for private connections between API
* Gateway and a network load balancer in a VPC. The default value is INTERNET
.
*
*
* @param connectionType
* The type of the network connection to the integration endpoint. The valid value is INTERNET
* for connections through the public routable internet or VPC_LINK
for private connections
* between API Gateway and a network load balancer in a VPC. The default value is INTERNET
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConnectionType
*/
public UpdateIntegrationResult withConnectionType(String connectionType) {
setConnectionType(connectionType);
return this;
}
/**
*
* The type of the network connection to the integration endpoint. The valid value is INTERNET
for
* connections through the public routable internet or VPC_LINK
for private connections between API
* Gateway and a network load balancer in a VPC. The default value is INTERNET
.
*
*
* @param connectionType
* The type of the network connection to the integration endpoint. The valid value is INTERNET
* for connections through the public routable internet or VPC_LINK
for private connections
* between API Gateway and a network load balancer in a VPC. The default value is INTERNET
.
* @see ConnectionType
*/
public void setConnectionType(ConnectionType connectionType) {
withConnectionType(connectionType);
}
/**
*
* The type of the network connection to the integration endpoint. The valid value is INTERNET
for
* connections through the public routable internet or VPC_LINK
for private connections between API
* Gateway and a network load balancer in a VPC. The default value is INTERNET
.
*
*
* @param connectionType
* The type of the network connection to the integration endpoint. The valid value is INTERNET
* for connections through the public routable internet or VPC_LINK
for private connections
* between API Gateway and a network load balancer in a VPC. The default value is INTERNET
.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ConnectionType
*/
public UpdateIntegrationResult withConnectionType(ConnectionType connectionType) {
this.connectionType = connectionType.toString();
return this;
}
/**
*
* The ID of the VpcLink used for the integration when connectionType=VPC_LINK
and undefined,
* otherwise.
*
*
* @param connectionId
* The ID of the VpcLink used for the integration when connectionType=VPC_LINK
and undefined,
* otherwise.
*/
public void setConnectionId(String connectionId) {
this.connectionId = connectionId;
}
/**
*
* The ID of the VpcLink used for the integration when connectionType=VPC_LINK
and undefined,
* otherwise.
*
*
* @return The ID of the VpcLink used for the integration when connectionType=VPC_LINK
and undefined,
* otherwise.
*/
public String getConnectionId() {
return this.connectionId;
}
/**
*
* The ID of the VpcLink used for the integration when connectionType=VPC_LINK
and undefined,
* otherwise.
*
*
* @param connectionId
* The ID of the VpcLink used for the integration when connectionType=VPC_LINK
and undefined,
* otherwise.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult withConnectionId(String connectionId) {
setConnectionId(connectionId);
return this;
}
/**
*
* Specifies the credentials required for the integration, if any. For AWS integrations, three options are
* available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To
* require that the caller's identity be passed through from the request, specify the string
* arn:aws:iam::\*:user/\*
. To use resource-based permissions on supported AWS services, specify null.
*
*
* @param credentials
* Specifies the credentials required for the integration, if any. For AWS integrations, three options are
* available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To
* require that the caller's identity be passed through from the request, specify the string
* arn:aws:iam::\*:user/\*
. To use resource-based permissions on supported AWS services, specify
* null.
*/
public void setCredentials(String credentials) {
this.credentials = credentials;
}
/**
*
* Specifies the credentials required for the integration, if any. For AWS integrations, three options are
* available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To
* require that the caller's identity be passed through from the request, specify the string
* arn:aws:iam::\*:user/\*
. To use resource-based permissions on supported AWS services, specify null.
*
*
* @return Specifies the credentials required for the integration, if any. For AWS integrations, three options are
* available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN).
* To require that the caller's identity be passed through from the request, specify the string
* arn:aws:iam::\*:user/\*
. To use resource-based permissions on supported AWS services,
* specify null.
*/
public String getCredentials() {
return this.credentials;
}
/**
*
* Specifies the credentials required for the integration, if any. For AWS integrations, three options are
* available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To
* require that the caller's identity be passed through from the request, specify the string
* arn:aws:iam::\*:user/\*
. To use resource-based permissions on supported AWS services, specify null.
*
*
* @param credentials
* Specifies the credentials required for the integration, if any. For AWS integrations, three options are
* available. To specify an IAM Role for API Gateway to assume, use the role's Amazon Resource Name (ARN). To
* require that the caller's identity be passed through from the request, specify the string
* arn:aws:iam::\*:user/\*
. To use resource-based permissions on supported AWS services, specify
* null.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult withCredentials(String credentials) {
setCredentials(credentials);
return this;
}
/**
*
* A key-value map specifying request parameters that are passed from the method request to the back end. The key is
* an integration request parameter name and the associated value is a method request parameter value or static
* value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request
* parameter value must match the pattern of method.request.{location}.{name}
, where
* location
is querystring
, path
, or header
and
* name
must be a valid and unique method request parameter name.
*
*
* @return A key-value map specifying request parameters that are passed from the method request to the back end.
* The key is an integration request parameter name and the associated value is a method request parameter
* value or static value that must be enclosed within single quotes and pre-encoded as required by the back
* end. The method request parameter value must match the pattern of
* method.request.{location}.{name}
, where location
is querystring
,
* path
, or header
and name
must be a valid and unique method request
* parameter name.
*/
public java.util.Map getRequestParameters() {
return requestParameters;
}
/**
*
* A key-value map specifying request parameters that are passed from the method request to the back end. The key is
* an integration request parameter name and the associated value is a method request parameter value or static
* value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request
* parameter value must match the pattern of method.request.{location}.{name}
, where
* location
is querystring
, path
, or header
and
* name
must be a valid and unique method request parameter name.
*
*
* @param requestParameters
* A key-value map specifying request parameters that are passed from the method request to the back end. The
* key is an integration request parameter name and the associated value is a method request parameter value
* or static value that must be enclosed within single quotes and pre-encoded as required by the back end.
* The method request parameter value must match the pattern of method.request.{location}.{name}
* , where location
is querystring
, path
, or header
and
* name
must be a valid and unique method request parameter name.
*/
public void setRequestParameters(java.util.Map requestParameters) {
this.requestParameters = requestParameters;
}
/**
*
* A key-value map specifying request parameters that are passed from the method request to the back end. The key is
* an integration request parameter name and the associated value is a method request parameter value or static
* value that must be enclosed within single quotes and pre-encoded as required by the back end. The method request
* parameter value must match the pattern of method.request.{location}.{name}
, where
* location
is querystring
, path
, or header
and
* name
must be a valid and unique method request parameter name.
*
*
* @param requestParameters
* A key-value map specifying request parameters that are passed from the method request to the back end. The
* key is an integration request parameter name and the associated value is a method request parameter value
* or static value that must be enclosed within single quotes and pre-encoded as required by the back end.
* The method request parameter value must match the pattern of method.request.{location}.{name}
* , where location
is querystring
, path
, or header
and
* name
must be a valid and unique method request parameter name.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult withRequestParameters(java.util.Map requestParameters) {
setRequestParameters(requestParameters);
return this;
}
/**
* Add a single RequestParameters entry
*
* @see UpdateIntegrationResult#withRequestParameters
* @returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult addRequestParametersEntry(String key, String value) {
if (null == this.requestParameters) {
this.requestParameters = new java.util.HashMap();
}
if (this.requestParameters.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.requestParameters.put(key, value);
return this;
}
/**
* Removes all the entries added into RequestParameters.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult clearRequestParametersEntries() {
this.requestParameters = null;
return this;
}
/**
*
* Represents a map of Velocity templates that are applied on the request payload based on the value of the
* Content-Type header sent by the client. The content type value is the key in this map, and the template (as a
* String) is the value.
*
*
* @return Represents a map of Velocity templates that are applied on the request payload based on the value of the
* Content-Type header sent by the client. The content type value is the key in this map, and the template
* (as a String) is the value.
*/
public java.util.Map getRequestTemplates() {
return requestTemplates;
}
/**
*
* Represents a map of Velocity templates that are applied on the request payload based on the value of the
* Content-Type header sent by the client. The content type value is the key in this map, and the template (as a
* String) is the value.
*
*
* @param requestTemplates
* Represents a map of Velocity templates that are applied on the request payload based on the value of the
* Content-Type header sent by the client. The content type value is the key in this map, and the template
* (as a String) is the value.
*/
public void setRequestTemplates(java.util.Map requestTemplates) {
this.requestTemplates = requestTemplates;
}
/**
*
* Represents a map of Velocity templates that are applied on the request payload based on the value of the
* Content-Type header sent by the client. The content type value is the key in this map, and the template (as a
* String) is the value.
*
*
* @param requestTemplates
* Represents a map of Velocity templates that are applied on the request payload based on the value of the
* Content-Type header sent by the client. The content type value is the key in this map, and the template
* (as a String) is the value.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult withRequestTemplates(java.util.Map requestTemplates) {
setRequestTemplates(requestTemplates);
return this;
}
/**
* Add a single RequestTemplates entry
*
* @see UpdateIntegrationResult#withRequestTemplates
* @returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult addRequestTemplatesEntry(String key, String value) {
if (null == this.requestTemplates) {
this.requestTemplates = new java.util.HashMap();
}
if (this.requestTemplates.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.requestTemplates.put(key, value);
return this;
}
/**
* Removes all the entries added into RequestTemplates.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult clearRequestTemplatesEntries() {
this.requestTemplates = null;
return this;
}
/**
*
* Specifies how the method request body of an unmapped content type will be passed through the integration request
* to the back end without transformation. A content type is unmapped if no mapping template is defined in the
* integration or the content type does not match any of the mapped content types, as specified in
* requestTemplates
. The valid value is one of the following: WHEN_NO_MATCH
: passes the
* method request body through the integration request to the back end without transformation when the method
* request content type does not match any content type associated with the mapping templates defined in the
* integration request. WHEN_NO_TEMPLATES
: passes the method request body through the integration
* request to the back end without transformation when no mapping template is defined in the integration request. If
* a template is defined when this option is selected, the method request of an unmapped content-type will be
* rejected with an HTTP 415 Unsupported Media Type response. NEVER
: rejects the method request with an
* HTTP 415 Unsupported Media Type response when either the method request content type does not match any content
* type associated with the mapping templates defined in the integration request or no mapping template is defined
* in the integration request.
*
*
* @param passthroughBehavior
* Specifies how the method request body of an unmapped content type will be passed through the integration
* request to the back end without transformation. A content type is unmapped if no mapping template is
* defined in the integration or the content type does not match any of the mapped content types, as
* specified in requestTemplates
. The valid value is one of the following:
* WHEN_NO_MATCH
: passes the method request body through the integration request to the back end
* without transformation when the method request content type does not match any content type associated
* with the mapping templates defined in the integration request. WHEN_NO_TEMPLATES
: passes the
* method request body through the integration request to the back end without transformation when no mapping
* template is defined in the integration request. If a template is defined when this option is selected, the
* method request of an unmapped content-type will be rejected with an HTTP 415 Unsupported Media Type
* response. NEVER
: rejects the method request with an HTTP 415 Unsupported Media Type response
* when either the method request content type does not match any content type associated with the mapping
* templates defined in the integration request or no mapping template is defined in the integration request.
*/
public void setPassthroughBehavior(String passthroughBehavior) {
this.passthroughBehavior = passthroughBehavior;
}
/**
*
* Specifies how the method request body of an unmapped content type will be passed through the integration request
* to the back end without transformation. A content type is unmapped if no mapping template is defined in the
* integration or the content type does not match any of the mapped content types, as specified in
* requestTemplates
. The valid value is one of the following: WHEN_NO_MATCH
: passes the
* method request body through the integration request to the back end without transformation when the method
* request content type does not match any content type associated with the mapping templates defined in the
* integration request. WHEN_NO_TEMPLATES
: passes the method request body through the integration
* request to the back end without transformation when no mapping template is defined in the integration request. If
* a template is defined when this option is selected, the method request of an unmapped content-type will be
* rejected with an HTTP 415 Unsupported Media Type response. NEVER
: rejects the method request with an
* HTTP 415 Unsupported Media Type response when either the method request content type does not match any content
* type associated with the mapping templates defined in the integration request or no mapping template is defined
* in the integration request.
*
*
* @return Specifies how the method request body of an unmapped content type will be passed through the integration
* request to the back end without transformation. A content type is unmapped if no mapping template is
* defined in the integration or the content type does not match any of the mapped content types, as
* specified in requestTemplates
. The valid value is one of the following:
* WHEN_NO_MATCH
: passes the method request body through the integration request to the back
* end without transformation when the method request content type does not match any content type
* associated with the mapping templates defined in the integration request. WHEN_NO_TEMPLATES
:
* passes the method request body through the integration request to the back end without transformation
* when no mapping template is defined in the integration request. If a template is defined when this option
* is selected, the method request of an unmapped content-type will be rejected with an HTTP 415 Unsupported
* Media Type response. NEVER
: rejects the method request with an HTTP 415 Unsupported Media
* Type response when either the method request content type does not match any content type associated with
* the mapping templates defined in the integration request or no mapping template is defined in the
* integration request.
*/
public String getPassthroughBehavior() {
return this.passthroughBehavior;
}
/**
*
* Specifies how the method request body of an unmapped content type will be passed through the integration request
* to the back end without transformation. A content type is unmapped if no mapping template is defined in the
* integration or the content type does not match any of the mapped content types, as specified in
* requestTemplates
. The valid value is one of the following: WHEN_NO_MATCH
: passes the
* method request body through the integration request to the back end without transformation when the method
* request content type does not match any content type associated with the mapping templates defined in the
* integration request. WHEN_NO_TEMPLATES
: passes the method request body through the integration
* request to the back end without transformation when no mapping template is defined in the integration request. If
* a template is defined when this option is selected, the method request of an unmapped content-type will be
* rejected with an HTTP 415 Unsupported Media Type response. NEVER
: rejects the method request with an
* HTTP 415 Unsupported Media Type response when either the method request content type does not match any content
* type associated with the mapping templates defined in the integration request or no mapping template is defined
* in the integration request.
*
*
* @param passthroughBehavior
* Specifies how the method request body of an unmapped content type will be passed through the integration
* request to the back end without transformation. A content type is unmapped if no mapping template is
* defined in the integration or the content type does not match any of the mapped content types, as
* specified in requestTemplates
. The valid value is one of the following:
* WHEN_NO_MATCH
: passes the method request body through the integration request to the back end
* without transformation when the method request content type does not match any content type associated
* with the mapping templates defined in the integration request. WHEN_NO_TEMPLATES
: passes the
* method request body through the integration request to the back end without transformation when no mapping
* template is defined in the integration request. If a template is defined when this option is selected, the
* method request of an unmapped content-type will be rejected with an HTTP 415 Unsupported Media Type
* response. NEVER
: rejects the method request with an HTTP 415 Unsupported Media Type response
* when either the method request content type does not match any content type associated with the mapping
* templates defined in the integration request or no mapping template is defined in the integration request.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult withPassthroughBehavior(String passthroughBehavior) {
setPassthroughBehavior(passthroughBehavior);
return this;
}
/**
*
* Specifies how to handle request payload content type conversions. Supported values are
* CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
*
*
* If this property is not defined, the request payload will be passed through from the method request to
* integration request without modification, provided that the passthroughBehavior
is configured to
* support payload pass-through.
*
*
* @param contentHandling
* Specifies how to handle request payload content type conversions. Supported values are
* CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
*
* If this property is not defined, the request payload will be passed through from the method request to
* integration request without modification, provided that the passthroughBehavior
is configured
* to support payload pass-through.
* @see ContentHandlingStrategy
*/
public void setContentHandling(String contentHandling) {
this.contentHandling = contentHandling;
}
/**
*
* Specifies how to handle request payload content type conversions. Supported values are
* CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
*
*
* If this property is not defined, the request payload will be passed through from the method request to
* integration request without modification, provided that the passthroughBehavior
is configured to
* support payload pass-through.
*
*
* @return Specifies how to handle request payload content type conversions. Supported values are
* CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
*
* If this property is not defined, the request payload will be passed through from the method request to
* integration request without modification, provided that the passthroughBehavior
is
* configured to support payload pass-through.
* @see ContentHandlingStrategy
*/
public String getContentHandling() {
return this.contentHandling;
}
/**
*
* Specifies how to handle request payload content type conversions. Supported values are
* CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
*
*
* If this property is not defined, the request payload will be passed through from the method request to
* integration request without modification, provided that the passthroughBehavior
is configured to
* support payload pass-through.
*
*
* @param contentHandling
* Specifies how to handle request payload content type conversions. Supported values are
* CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
*
* If this property is not defined, the request payload will be passed through from the method request to
* integration request without modification, provided that the passthroughBehavior
is configured
* to support payload pass-through.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ContentHandlingStrategy
*/
public UpdateIntegrationResult withContentHandling(String contentHandling) {
setContentHandling(contentHandling);
return this;
}
/**
*
* Specifies how to handle request payload content type conversions. Supported values are
* CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
*
*
* If this property is not defined, the request payload will be passed through from the method request to
* integration request without modification, provided that the passthroughBehavior
is configured to
* support payload pass-through.
*
*
* @param contentHandling
* Specifies how to handle request payload content type conversions. Supported values are
* CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
*
* If this property is not defined, the request payload will be passed through from the method request to
* integration request without modification, provided that the passthroughBehavior
is configured
* to support payload pass-through.
* @see ContentHandlingStrategy
*/
public void setContentHandling(ContentHandlingStrategy contentHandling) {
withContentHandling(contentHandling);
}
/**
*
* Specifies how to handle request payload content type conversions. Supported values are
* CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
*
*
* If this property is not defined, the request payload will be passed through from the method request to
* integration request without modification, provided that the passthroughBehavior
is configured to
* support payload pass-through.
*
*
* @param contentHandling
* Specifies how to handle request payload content type conversions. Supported values are
* CONVERT_TO_BINARY
and CONVERT_TO_TEXT
, with the following behaviors:
*
* If this property is not defined, the request payload will be passed through from the method request to
* integration request without modification, provided that the passthroughBehavior
is configured
* to support payload pass-through.
* @return Returns a reference to this object so that method calls can be chained together.
* @see ContentHandlingStrategy
*/
public UpdateIntegrationResult withContentHandling(ContentHandlingStrategy contentHandling) {
this.contentHandling = contentHandling.toString();
return this;
}
/**
*
* Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.
*
*
* @param timeoutInMillis
* Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.
*/
public void setTimeoutInMillis(Integer timeoutInMillis) {
this.timeoutInMillis = timeoutInMillis;
}
/**
*
* Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.
*
*
* @return Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29
* seconds.
*/
public Integer getTimeoutInMillis() {
return this.timeoutInMillis;
}
/**
*
* Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.
*
*
* @param timeoutInMillis
* Custom timeout between 50 and 29,000 milliseconds. The default value is 29,000 milliseconds or 29 seconds.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult withTimeoutInMillis(Integer timeoutInMillis) {
setTimeoutInMillis(timeoutInMillis);
return this;
}
/**
*
* Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the
* cacheNamespace
. You can specify the same cacheNamespace
across resources to return the
* same cached data for requests to different resources.
*
*
* @param cacheNamespace
* Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the
* cacheNamespace
. You can specify the same cacheNamespace
across resources to
* return the same cached data for requests to different resources.
*/
public void setCacheNamespace(String cacheNamespace) {
this.cacheNamespace = cacheNamespace;
}
/**
*
* Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the
* cacheNamespace
. You can specify the same cacheNamespace
across resources to return the
* same cached data for requests to different resources.
*
*
* @return Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the
* cacheNamespace
. You can specify the same cacheNamespace
across resources to
* return the same cached data for requests to different resources.
*/
public String getCacheNamespace() {
return this.cacheNamespace;
}
/**
*
* Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the
* cacheNamespace
. You can specify the same cacheNamespace
across resources to return the
* same cached data for requests to different resources.
*
*
* @param cacheNamespace
* Specifies a group of related cached parameters. By default, API Gateway uses the resource ID as the
* cacheNamespace
. You can specify the same cacheNamespace
across resources to
* return the same cached data for requests to different resources.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult withCacheNamespace(String cacheNamespace) {
setCacheNamespace(cacheNamespace);
return this;
}
/**
*
* A list of request parameters whose values API Gateway caches. To be valid values for
* cacheKeyParameters
, these parameters must also be specified for Method
* requestParameters
.
*
*
* @return A list of request parameters whose values API Gateway caches. To be valid values for
* cacheKeyParameters
, these parameters must also be specified for Method
* requestParameters
.
*/
public java.util.List getCacheKeyParameters() {
return cacheKeyParameters;
}
/**
*
* A list of request parameters whose values API Gateway caches. To be valid values for
* cacheKeyParameters
, these parameters must also be specified for Method
* requestParameters
.
*
*
* @param cacheKeyParameters
* A list of request parameters whose values API Gateway caches. To be valid values for
* cacheKeyParameters
, these parameters must also be specified for Method
* requestParameters
.
*/
public void setCacheKeyParameters(java.util.Collection cacheKeyParameters) {
if (cacheKeyParameters == null) {
this.cacheKeyParameters = null;
return;
}
this.cacheKeyParameters = new java.util.ArrayList(cacheKeyParameters);
}
/**
*
* A list of request parameters whose values API Gateway caches. To be valid values for
* cacheKeyParameters
, these parameters must also be specified for Method
* requestParameters
.
*
*
* NOTE: This method appends the values to the existing list (if any). Use
* {@link #setCacheKeyParameters(java.util.Collection)} or {@link #withCacheKeyParameters(java.util.Collection)} if
* you want to override the existing values.
*
*
* @param cacheKeyParameters
* A list of request parameters whose values API Gateway caches. To be valid values for
* cacheKeyParameters
, these parameters must also be specified for Method
* requestParameters
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult withCacheKeyParameters(String... cacheKeyParameters) {
if (this.cacheKeyParameters == null) {
setCacheKeyParameters(new java.util.ArrayList(cacheKeyParameters.length));
}
for (String ele : cacheKeyParameters) {
this.cacheKeyParameters.add(ele);
}
return this;
}
/**
*
* A list of request parameters whose values API Gateway caches. To be valid values for
* cacheKeyParameters
, these parameters must also be specified for Method
* requestParameters
.
*
*
* @param cacheKeyParameters
* A list of request parameters whose values API Gateway caches. To be valid values for
* cacheKeyParameters
, these parameters must also be specified for Method
* requestParameters
.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult withCacheKeyParameters(java.util.Collection cacheKeyParameters) {
setCacheKeyParameters(cacheKeyParameters);
return this;
}
/**
*
* Specifies the integration's responses.
*
*
* @return Specifies the integration's responses.
*/
public java.util.Map getIntegrationResponses() {
return integrationResponses;
}
/**
*
* Specifies the integration's responses.
*
*
* @param integrationResponses
* Specifies the integration's responses.
*/
public void setIntegrationResponses(java.util.Map integrationResponses) {
this.integrationResponses = integrationResponses;
}
/**
*
* Specifies the integration's responses.
*
*
* @param integrationResponses
* Specifies the integration's responses.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult withIntegrationResponses(java.util.Map integrationResponses) {
setIntegrationResponses(integrationResponses);
return this;
}
/**
* Add a single IntegrationResponses entry
*
* @see UpdateIntegrationResult#withIntegrationResponses
* @returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult addIntegrationResponsesEntry(String key, IntegrationResponse value) {
if (null == this.integrationResponses) {
this.integrationResponses = new java.util.HashMap();
}
if (this.integrationResponses.containsKey(key))
throw new IllegalArgumentException("Duplicated keys (" + key.toString() + ") are provided.");
this.integrationResponses.put(key, value);
return this;
}
/**
* Removes all the entries added into IntegrationResponses.
*
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult clearIntegrationResponsesEntries() {
this.integrationResponses = null;
return this;
}
/**
*
* Specifies the TLS configuration for an integration.
*
*
* @param tlsConfig
* Specifies the TLS configuration for an integration.
*/
public void setTlsConfig(TlsConfig tlsConfig) {
this.tlsConfig = tlsConfig;
}
/**
*
* Specifies the TLS configuration for an integration.
*
*
* @return Specifies the TLS configuration for an integration.
*/
public TlsConfig getTlsConfig() {
return this.tlsConfig;
}
/**
*
* Specifies the TLS configuration for an integration.
*
*
* @param tlsConfig
* Specifies the TLS configuration for an integration.
* @return Returns a reference to this object so that method calls can be chained together.
*/
public UpdateIntegrationResult withTlsConfig(TlsConfig tlsConfig) {
setTlsConfig(tlsConfig);
return this;
}
/**
* Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be
* redacted from this string using a placeholder value.
*
* @return A string representation of this object.
*
* @see java.lang.Object#toString()
*/
@Override
public String toString() {
StringBuilder sb = new StringBuilder();
sb.append("{");
if (getType() != null)
sb.append("Type: ").append(getType()).append(",");
if (getHttpMethod() != null)
sb.append("HttpMethod: ").append(getHttpMethod()).append(",");
if (getUri() != null)
sb.append("Uri: ").append(getUri()).append(",");
if (getConnectionType() != null)
sb.append("ConnectionType: ").append(getConnectionType()).append(",");
if (getConnectionId() != null)
sb.append("ConnectionId: ").append(getConnectionId()).append(",");
if (getCredentials() != null)
sb.append("Credentials: ").append(getCredentials()).append(",");
if (getRequestParameters() != null)
sb.append("RequestParameters: ").append(getRequestParameters()).append(",");
if (getRequestTemplates() != null)
sb.append("RequestTemplates: ").append(getRequestTemplates()).append(",");
if (getPassthroughBehavior() != null)
sb.append("PassthroughBehavior: ").append(getPassthroughBehavior()).append(",");
if (getContentHandling() != null)
sb.append("ContentHandling: ").append(getContentHandling()).append(",");
if (getTimeoutInMillis() != null)
sb.append("TimeoutInMillis: ").append(getTimeoutInMillis()).append(",");
if (getCacheNamespace() != null)
sb.append("CacheNamespace: ").append(getCacheNamespace()).append(",");
if (getCacheKeyParameters() != null)
sb.append("CacheKeyParameters: ").append(getCacheKeyParameters()).append(",");
if (getIntegrationResponses() != null)
sb.append("IntegrationResponses: ").append(getIntegrationResponses()).append(",");
if (getTlsConfig() != null)
sb.append("TlsConfig: ").append(getTlsConfig());
sb.append("}");
return sb.toString();
}
@Override
public boolean equals(Object obj) {
if (this == obj)
return true;
if (obj == null)
return false;
if (obj instanceof UpdateIntegrationResult == false)
return false;
UpdateIntegrationResult other = (UpdateIntegrationResult) obj;
if (other.getType() == null ^ this.getType() == null)
return false;
if (other.getType() != null && other.getType().equals(this.getType()) == false)
return false;
if (other.getHttpMethod() == null ^ this.getHttpMethod() == null)
return false;
if (other.getHttpMethod() != null && other.getHttpMethod().equals(this.getHttpMethod()) == false)
return false;
if (other.getUri() == null ^ this.getUri() == null)
return false;
if (other.getUri() != null && other.getUri().equals(this.getUri()) == false)
return false;
if (other.getConnectionType() == null ^ this.getConnectionType() == null)
return false;
if (other.getConnectionType() != null && other.getConnectionType().equals(this.getConnectionType()) == false)
return false;
if (other.getConnectionId() == null ^ this.getConnectionId() == null)
return false;
if (other.getConnectionId() != null && other.getConnectionId().equals(this.getConnectionId()) == false)
return false;
if (other.getCredentials() == null ^ this.getCredentials() == null)
return false;
if (other.getCredentials() != null && other.getCredentials().equals(this.getCredentials()) == false)
return false;
if (other.getRequestParameters() == null ^ this.getRequestParameters() == null)
return false;
if (other.getRequestParameters() != null && other.getRequestParameters().equals(this.getRequestParameters()) == false)
return false;
if (other.getRequestTemplates() == null ^ this.getRequestTemplates() == null)
return false;
if (other.getRequestTemplates() != null && other.getRequestTemplates().equals(this.getRequestTemplates()) == false)
return false;
if (other.getPassthroughBehavior() == null ^ this.getPassthroughBehavior() == null)
return false;
if (other.getPassthroughBehavior() != null && other.getPassthroughBehavior().equals(this.getPassthroughBehavior()) == false)
return false;
if (other.getContentHandling() == null ^ this.getContentHandling() == null)
return false;
if (other.getContentHandling() != null && other.getContentHandling().equals(this.getContentHandling()) == false)
return false;
if (other.getTimeoutInMillis() == null ^ this.getTimeoutInMillis() == null)
return false;
if (other.getTimeoutInMillis() != null && other.getTimeoutInMillis().equals(this.getTimeoutInMillis()) == false)
return false;
if (other.getCacheNamespace() == null ^ this.getCacheNamespace() == null)
return false;
if (other.getCacheNamespace() != null && other.getCacheNamespace().equals(this.getCacheNamespace()) == false)
return false;
if (other.getCacheKeyParameters() == null ^ this.getCacheKeyParameters() == null)
return false;
if (other.getCacheKeyParameters() != null && other.getCacheKeyParameters().equals(this.getCacheKeyParameters()) == false)
return false;
if (other.getIntegrationResponses() == null ^ this.getIntegrationResponses() == null)
return false;
if (other.getIntegrationResponses() != null && other.getIntegrationResponses().equals(this.getIntegrationResponses()) == false)
return false;
if (other.getTlsConfig() == null ^ this.getTlsConfig() == null)
return false;
if (other.getTlsConfig() != null && other.getTlsConfig().equals(this.getTlsConfig()) == false)
return false;
return true;
}
@Override
public int hashCode() {
final int prime = 31;
int hashCode = 1;
hashCode = prime * hashCode + ((getType() == null) ? 0 : getType().hashCode());
hashCode = prime * hashCode + ((getHttpMethod() == null) ? 0 : getHttpMethod().hashCode());
hashCode = prime * hashCode + ((getUri() == null) ? 0 : getUri().hashCode());
hashCode = prime * hashCode + ((getConnectionType() == null) ? 0 : getConnectionType().hashCode());
hashCode = prime * hashCode + ((getConnectionId() == null) ? 0 : getConnectionId().hashCode());
hashCode = prime * hashCode + ((getCredentials() == null) ? 0 : getCredentials().hashCode());
hashCode = prime * hashCode + ((getRequestParameters() == null) ? 0 : getRequestParameters().hashCode());
hashCode = prime * hashCode + ((getRequestTemplates() == null) ? 0 : getRequestTemplates().hashCode());
hashCode = prime * hashCode + ((getPassthroughBehavior() == null) ? 0 : getPassthroughBehavior().hashCode());
hashCode = prime * hashCode + ((getContentHandling() == null) ? 0 : getContentHandling().hashCode());
hashCode = prime * hashCode + ((getTimeoutInMillis() == null) ? 0 : getTimeoutInMillis().hashCode());
hashCode = prime * hashCode + ((getCacheNamespace() == null) ? 0 : getCacheNamespace().hashCode());
hashCode = prime * hashCode + ((getCacheKeyParameters() == null) ? 0 : getCacheKeyParameters().hashCode());
hashCode = prime * hashCode + ((getIntegrationResponses() == null) ? 0 : getIntegrationResponses().hashCode());
hashCode = prime * hashCode + ((getTlsConfig() == null) ? 0 : getTlsConfig().hashCode());
return hashCode;
}
@Override
public UpdateIntegrationResult clone() {
try {
return (UpdateIntegrationResult) super.clone();
} catch (CloneNotSupportedException e) {
throw new IllegalStateException("Got a CloneNotSupportedException from Object.clone() " + "even though we're Cloneable!", e);
}
}
}