public class AbstractAmazonApiGateway extends Object implements AmazonApiGateway
AmazonApiGateway
. Convenient method forms
pass through to the corresponding overload that takes a request object, which
throws an UnsupportedOperationException
.Modifier | Constructor and Description |
---|---|
protected |
AbstractAmazonApiGateway() |
public void setEndpoint(String endpoint)
AmazonApiGateway
Callers can pass in just the endpoint (ex:
"apigateway.us-east-1.amazonaws.com") or a full URL, including the
protocol (ex: "https://apigateway.us-east-1.amazonaws.com"). If the
protocol is not specified here, the default protocol from this client's
ClientConfiguration
will be used, which by default is HTTPS.
For more information on using AWS regions with the AWS SDK for Java, and a complete list of all available endpoints for all AWS services, see: http://developer.amazonwebservices.com/connect/entry.jspa?externalID= 3912
This method is not threadsafe. An endpoint should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
setEndpoint
in interface AmazonApiGateway
endpoint
- The endpoint (ex: "apigateway.us-east-1.amazonaws.com") or a full
URL, including the protocol (ex:
"https://apigateway.us-east-1.amazonaws.com") of the region
specific AWS endpoint this client will communicate with.public void setRegion(Region region)
AmazonApiGateway
AmazonApiGateway.setEndpoint(String)
, sets the
regional endpoint for this client's service calls. Callers can use this
method to control which AWS region they want to work with.
By default, all service endpoints in all regions use the https protocol.
To use http instead, specify it in the ClientConfiguration
supplied at construction.
This method is not threadsafe. A region should be configured when the client is created and before any service requests are made. Changing it afterwards creates inevitable race conditions for any service requests in transit or retrying.
setRegion
in interface AmazonApiGateway
region
- The region this client will communicate with. See
Region.getRegion(com.amazonaws.regions.Regions)
for
accessing a given region. Must not be null and must be a region
where the service is available.Region.getRegion(com.amazonaws.regions.Regions)
,
Region.createClient(Class,
com.amazonaws.auth.AWSCredentialsProvider, ClientConfiguration)
,
Region.isServiceSupported(String)
public CreateApiKeyResult createApiKey(CreateApiKeyRequest request)
createApiKey
in interface AmazonApiGateway
public CreateBasePathMappingResult createBasePathMapping(CreateBasePathMappingRequest request)
AmazonApiGateway
Creates a new BasePathMapping resource.
createBasePathMapping
in interface AmazonApiGateway
request
- Requests Amazon API Gateway to create a new BasePathMapping
resource.public CreateDeploymentResult createDeployment(CreateDeploymentRequest request)
AmazonApiGateway
Creates a Deployment resource, which makes a specified RestApi callable over the internet.
createDeployment
in interface AmazonApiGateway
request
- Requests Amazon API Gateway to create a Deployment
resource.public CreateDomainNameResult createDomainName(CreateDomainNameRequest request)
AmazonApiGateway
Creates a new domain name.
createDomainName
in interface AmazonApiGateway
request
- A request to create a new domain name.public CreateModelResult createModel(CreateModelRequest request)
AmazonApiGateway
createModel
in interface AmazonApiGateway
request
- Request to add a new Model to an existing RestApi
resource.public CreateResourceResult createResource(CreateResourceRequest request)
AmazonApiGateway
Creates a Resource resource.
createResource
in interface AmazonApiGateway
request
- Requests Amazon API Gateway to create a Resource resource.public CreateRestApiResult createRestApi(CreateRestApiRequest request)
AmazonApiGateway
Creates a new RestApi resource.
createRestApi
in interface AmazonApiGateway
request
- Request to add a new RestApi resource to your collection.public CreateStageResult createStage(CreateStageRequest request)
AmazonApiGateway
Creates a Stage resource.
createStage
in interface AmazonApiGateway
request
- Requests Amazon API Gateway to create a Stage resource.public void deleteApiKey(DeleteApiKeyRequest request)
AmazonApiGateway
Deletes the ApiKey resource.
deleteApiKey
in interface AmazonApiGateway
request
- A request to delete the ApiKey resource.public void deleteBasePathMapping(DeleteBasePathMappingRequest request)
AmazonApiGateway
Deletes the BasePathMapping resource.
deleteBasePathMapping
in interface AmazonApiGateway
request
- A request to delete the BasePathMapping resource.public void deleteClientCertificate(DeleteClientCertificateRequest request)
deleteClientCertificate
in interface AmazonApiGateway
public void deleteDeployment(DeleteDeploymentRequest request)
AmazonApiGateway
Deletes a Deployment resource. Deleting a deployment will only succeed if there are no Stage resources associated with it.
deleteDeployment
in interface AmazonApiGateway
request
- Requests Amazon API Gateway to delete a Deployment
resource.public void deleteDomainName(DeleteDomainNameRequest request)
AmazonApiGateway
Deletes the DomainName resource.
deleteDomainName
in interface AmazonApiGateway
request
- A request to delete the DomainName resource.public void deleteIntegration(DeleteIntegrationRequest request)
AmazonApiGateway
Represents a delete integration.
deleteIntegration
in interface AmazonApiGateway
request
- Represents a delete integration request.public void deleteIntegrationResponse(DeleteIntegrationResponseRequest request)
AmazonApiGateway
Represents a delete integration response.
deleteIntegrationResponse
in interface AmazonApiGateway
request
- Represents a delete integration response request.public void deleteMethod(DeleteMethodRequest request)
AmazonApiGateway
Deletes an existing Method resource.
deleteMethod
in interface AmazonApiGateway
request
- Request to delete an existing Method resource.public void deleteMethodResponse(DeleteMethodResponseRequest request)
AmazonApiGateway
Deletes an existing MethodResponse resource.
deleteMethodResponse
in interface AmazonApiGateway
request
- A request to delete an existing MethodResponse resource.public void deleteModel(DeleteModelRequest request)
AmazonApiGateway
Deletes a model.
deleteModel
in interface AmazonApiGateway
request
- Request to delete an existing model in an existing RestApi
resource.public void deleteResource(DeleteResourceRequest request)
AmazonApiGateway
Deletes a Resource resource.
deleteResource
in interface AmazonApiGateway
request
- Request to delete a Resource.public void deleteRestApi(DeleteRestApiRequest request)
AmazonApiGateway
Deletes the specified API.
deleteRestApi
in interface AmazonApiGateway
request
- Request to delete the specified API from your collection.public void deleteStage(DeleteStageRequest request)
AmazonApiGateway
Deletes a Stage resource.
deleteStage
in interface AmazonApiGateway
request
- Requests Amazon API Gateway to delete a Stage resource.public void flushStageCache(FlushStageCacheRequest request)
AmazonApiGateway
Flushes a stage's cache.
flushStageCache
in interface AmazonApiGateway
request
- Requests Amazon API Gateway to flush a stage's cache.public GenerateClientCertificateResult generateClientCertificate(GenerateClientCertificateRequest request)
generateClientCertificate
in interface AmazonApiGateway
public GetAccountResult getAccount(GetAccountRequest request)
AmazonApiGateway
Gets information about the current Account resource.
getAccount
in interface AmazonApiGateway
request
- Requests Amazon API Gateway to get information about the current
Account resource.public GetApiKeyResult getApiKey(GetApiKeyRequest request)
AmazonApiGateway
Gets information about the current ApiKey resource.
getApiKey
in interface AmazonApiGateway
request
- A request to get information about the current ApiKey
resource.public GetApiKeysResult getApiKeys(GetApiKeysRequest request)
AmazonApiGateway
Gets information about the current ApiKeys resource.
getApiKeys
in interface AmazonApiGateway
request
- A request to get information about the current ApiKeys
resource.public GetBasePathMappingResult getBasePathMapping(GetBasePathMappingRequest request)
AmazonApiGateway
Describe a BasePathMapping resource.
getBasePathMapping
in interface AmazonApiGateway
request
- Request to describe a BasePathMapping resource.public GetBasePathMappingsResult getBasePathMappings(GetBasePathMappingsRequest request)
AmazonApiGateway
Represents a collection of BasePathMapping resources.
getBasePathMappings
in interface AmazonApiGateway
request
- A request to get information about a collection of
BasePathMapping resources.public GetClientCertificateResult getClientCertificate(GetClientCertificateRequest request)
getClientCertificate
in interface AmazonApiGateway
public GetClientCertificatesResult getClientCertificates(GetClientCertificatesRequest request)
getClientCertificates
in interface AmazonApiGateway
public GetDeploymentResult getDeployment(GetDeploymentRequest request)
AmazonApiGateway
Gets information about a Deployment resource.
getDeployment
in interface AmazonApiGateway
request
- Requests Amazon API Gateway to get information about a
Deployment resource.public GetDeploymentsResult getDeployments(GetDeploymentsRequest request)
AmazonApiGateway
Gets information about a Deployments collection.
getDeployments
in interface AmazonApiGateway
request
- Requests Amazon API Gateway to get information about a
Deployments collection.public GetDomainNameResult getDomainName(GetDomainNameRequest request)
AmazonApiGateway
Represents a domain name that is contained in a simpler, more intuitive URL that can be called.
getDomainName
in interface AmazonApiGateway
request
- Request to get the name of a DomainName resource.public GetDomainNamesResult getDomainNames(GetDomainNamesRequest request)
AmazonApiGateway
Represents a collection of DomainName resources.
getDomainNames
in interface AmazonApiGateway
request
- Request to describe a collection of DomainName resources.public GetIntegrationResult getIntegration(GetIntegrationRequest request)
AmazonApiGateway
Represents a get integration.
getIntegration
in interface AmazonApiGateway
request
- Represents a get integration request.public GetIntegrationResponseResult getIntegrationResponse(GetIntegrationResponseRequest request)
AmazonApiGateway
Represents a get integration response.
getIntegrationResponse
in interface AmazonApiGateway
request
- Represents a get integration response request.public GetMethodResult getMethod(GetMethodRequest request)
AmazonApiGateway
Describe an existing Method resource.
getMethod
in interface AmazonApiGateway
request
- Request to describe an existing Method resource.public GetMethodResponseResult getMethodResponse(GetMethodResponseRequest request)
AmazonApiGateway
Describes a MethodResponse resource.
getMethodResponse
in interface AmazonApiGateway
request
- Request to describe a MethodResponse resource.public GetModelResult getModel(GetModelRequest request)
AmazonApiGateway
Describes an existing model defined for a RestApi resource.
getModel
in interface AmazonApiGateway
request
- Request to list information about a model in an existing
RestApi resource.public GetModelTemplateResult getModelTemplate(GetModelTemplateRequest request)
AmazonApiGateway
Generates a sample mapping template that can be used to transform a payload into the structure of a model.
getModelTemplate
in interface AmazonApiGateway
request
- Request to generate a sample mapping template used to transform
the payload.public GetModelsResult getModels(GetModelsRequest request)
AmazonApiGateway
getModels
in interface AmazonApiGateway
request
- Request to list existing Models defined for a
RestApi resource.public GetResourceResult getResource(GetResourceRequest request)
AmazonApiGateway
Lists information about a resource.
getResource
in interface AmazonApiGateway
request
- Request to list information about a resource.public GetResourcesResult getResources(GetResourcesRequest request)
AmazonApiGateway
Lists information about a collection of Resource resources.
getResources
in interface AmazonApiGateway
request
- Request to list information about a collection of resources.public GetRestApiResult getRestApi(GetRestApiRequest request)
AmazonApiGateway
Lists the RestApi resource in the collection.
getRestApi
in interface AmazonApiGateway
request
- Request to list an existing RestApi defined for your
collection.public GetRestApisResult getRestApis(GetRestApisRequest request)
AmazonApiGateway
Lists the RestApis resources for your collection.
getRestApis
in interface AmazonApiGateway
request
- Request to list existing RestApis defined for your
collection.public GetSdkResult getSdk(GetSdkRequest request)
getSdk
in interface AmazonApiGateway
public GetStageResult getStage(GetStageRequest request)
AmazonApiGateway
Gets information about a Stage resource.
getStage
in interface AmazonApiGateway
request
- Requests Amazon API Gateway to get information about a
Stage resource.public GetStagesResult getStages(GetStagesRequest request)
AmazonApiGateway
Gets information about one or more Stage resources.
getStages
in interface AmazonApiGateway
request
- Requests Amazon API Gateway to get information about one or more
Stage resources.public PutIntegrationResult putIntegration(PutIntegrationRequest request)
AmazonApiGateway
Represents a put integration.
putIntegration
in interface AmazonApiGateway
request
- Represents a put integration request.public PutIntegrationResponseResult putIntegrationResponse(PutIntegrationResponseRequest request)
AmazonApiGateway
Represents a put integration.
putIntegrationResponse
in interface AmazonApiGateway
request
- Represents a put integration response request.public PutMethodResult putMethod(PutMethodRequest request)
AmazonApiGateway
Add a method to an existing Resource resource.
putMethod
in interface AmazonApiGateway
request
- Request to add a method to an existing Resource resource.public PutMethodResponseResult putMethodResponse(PutMethodResponseRequest request)
AmazonApiGateway
Adds a MethodResponse to an existing Method resource.
putMethodResponse
in interface AmazonApiGateway
request
- Request to add a MethodResponse to an existing
Method resource.public TestInvokeMethodResult testInvokeMethod(TestInvokeMethodRequest request)
testInvokeMethod
in interface AmazonApiGateway
public UpdateAccountResult updateAccount(UpdateAccountRequest request)
AmazonApiGateway
Changes information about the current Account resource.
updateAccount
in interface AmazonApiGateway
request
- Requests Amazon API Gateway to change information about the
current Account resource.public UpdateApiKeyResult updateApiKey(UpdateApiKeyRequest request)
AmazonApiGateway
Changes information about an ApiKey resource.
updateApiKey
in interface AmazonApiGateway
request
- A request to change information about an ApiKey resource.public UpdateBasePathMappingResult updateBasePathMapping(UpdateBasePathMappingRequest request)
AmazonApiGateway
Changes information about the BasePathMapping resource.
updateBasePathMapping
in interface AmazonApiGateway
request
- A request to change information about the BasePathMapping
resource.public UpdateClientCertificateResult updateClientCertificate(UpdateClientCertificateRequest request)
updateClientCertificate
in interface AmazonApiGateway
public UpdateDeploymentResult updateDeployment(UpdateDeploymentRequest request)
AmazonApiGateway
Changes information about a Deployment resource.
updateDeployment
in interface AmazonApiGateway
request
- Requests Amazon API Gateway to change information about a
Deployment resource.public UpdateDomainNameResult updateDomainName(UpdateDomainNameRequest request)
AmazonApiGateway
Changes information about the DomainName resource.
updateDomainName
in interface AmazonApiGateway
request
- A request to change information about the DomainName
resource.public UpdateIntegrationResult updateIntegration(UpdateIntegrationRequest request)
AmazonApiGateway
Represents an update integration.
updateIntegration
in interface AmazonApiGateway
request
- Represents an update integration request.public UpdateIntegrationResponseResult updateIntegrationResponse(UpdateIntegrationResponseRequest request)
AmazonApiGateway
Represents an update integration response.
updateIntegrationResponse
in interface AmazonApiGateway
request
- Represents an update integration response request.public UpdateMethodResult updateMethod(UpdateMethodRequest request)
AmazonApiGateway
Updates an existing Method resource.
updateMethod
in interface AmazonApiGateway
request
- Request to update an existing Method resource.public UpdateMethodResponseResult updateMethodResponse(UpdateMethodResponseRequest request)
AmazonApiGateway
Updates an existing MethodResponse resource.
updateMethodResponse
in interface AmazonApiGateway
request
- A request to update an existing MethodResponse resource.public UpdateModelResult updateModel(UpdateModelRequest request)
AmazonApiGateway
Changes information about a model.
updateModel
in interface AmazonApiGateway
request
- Request to update an existing model in an existing RestApi
resource.public UpdateResourceResult updateResource(UpdateResourceRequest request)
AmazonApiGateway
Changes information about a Resource resource.
updateResource
in interface AmazonApiGateway
request
- Request to change information about a Resource resource.public UpdateRestApiResult updateRestApi(UpdateRestApiRequest request)
AmazonApiGateway
Changes information about the specified API.
updateRestApi
in interface AmazonApiGateway
request
- Request to update an existing RestApi resource in your
collection.public UpdateStageResult updateStage(UpdateStageRequest request)
AmazonApiGateway
Changes information about a Stage resource.
updateStage
in interface AmazonApiGateway
request
- Requests Amazon API Gateway to change information about a
Stage resource.public void shutdown()
AmazonApiGateway
shutdown
in interface AmazonApiGateway
public ResponseMetadata getCachedResponseMetadata(AmazonWebServiceRequest request)
AmazonApiGateway
Response metadata is only cached for a limited period of time, so if you need to access this extra diagnostic information for an executed request, you should use this method to retrieve it as soon as possible after executing a request.
getCachedResponseMetadata
in interface AmazonApiGateway
request
- The originally executed request.Copyright © 2015. All rights reserved.