public class GetExportRequest extends AmazonWebServiceRequest implements java.io.Serializable, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
accepts
The content-type of the export, for example 'application/json'.
|
private java.lang.String |
exportType
The type of export.
|
private java.util.Map<java.lang.String,java.lang.String> |
parameters
A key-value map of query string parameters that specify properties of the
export, depending on the requested exportType.
|
private java.lang.String |
restApiId
The identifier of the RestApi to be exported.
|
private java.lang.String |
stageName
The name of the Stage that will be exported.
|
NOOP
Constructor and Description |
---|
GetExportRequest() |
Modifier and Type | Method and Description |
---|---|
GetExportRequest |
addParametersEntry(java.lang.String key,
java.lang.String value) |
GetExportRequest |
clearParametersEntries()
Removes all the entries added into Parameters.
|
GetExportRequest |
clone()
Creates a shallow clone of this request.
|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAccepts()
The content-type of the export, for example 'application/json'.
|
java.lang.String |
getExportType()
The type of export.
|
java.util.Map<java.lang.String,java.lang.String> |
getParameters()
A key-value map of query string parameters that specify properties of the
export, depending on the requested exportType.
|
java.lang.String |
getRestApiId()
The identifier of the RestApi to be exported.
|
java.lang.String |
getStageName()
The name of the Stage that will be exported.
|
int |
hashCode() |
void |
setAccepts(java.lang.String accepts)
The content-type of the export, for example 'application/json'.
|
void |
setExportType(java.lang.String exportType)
The type of export.
|
void |
setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
A key-value map of query string parameters that specify properties of the
export, depending on the requested exportType.
|
void |
setRestApiId(java.lang.String restApiId)
The identifier of the RestApi to be exported.
|
void |
setStageName(java.lang.String stageName)
The name of the Stage that will be exported.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
GetExportRequest |
withAccepts(java.lang.String accepts)
The content-type of the export, for example 'application/json'.
|
GetExportRequest |
withExportType(java.lang.String exportType)
The type of export.
|
GetExportRequest |
withParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
A key-value map of query string parameters that specify properties of the
export, depending on the requested exportType.
|
GetExportRequest |
withRestApiId(java.lang.String restApiId)
The identifier of the RestApi to be exported.
|
GetExportRequest |
withStageName(java.lang.String stageName)
The name of the Stage that will be exported.
|
copyBaseTo, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
private java.lang.String restApiId
The identifier of the RestApi to be exported.
private java.lang.String stageName
The name of the Stage that will be exported.
private java.lang.String exportType
The type of export. Currently only 'swagger' is supported.
private java.util.Map<java.lang.String,java.lang.String> parameters
A key-value map of query string parameters that specify properties of the export, depending on the requested exportType. For exportType 'swagger', any combination of the following parameters are supported: 'integrations' will export x-amazon-apigateway-integration extensions 'authorizers' will export x-amazon-apigateway-authorizer extensions 'postman' will export with Postman extensions, allowing for import to the Postman tool
private java.lang.String accepts
The content-type of the export, for example 'application/json'. Currently 'application/json' and 'application/yaml' are supported for exportType 'swagger'. Should be specifed in the 'Accept' header for direct API requests.
public void setRestApiId(java.lang.String restApiId)
The identifier of the RestApi to be exported.
restApiId
- The identifier of the RestApi to be exported.public java.lang.String getRestApiId()
The identifier of the RestApi to be exported.
public GetExportRequest withRestApiId(java.lang.String restApiId)
The identifier of the RestApi to be exported.
restApiId
- The identifier of the RestApi to be exported.public void setStageName(java.lang.String stageName)
The name of the Stage that will be exported.
stageName
- The name of the Stage that will be exported.public java.lang.String getStageName()
The name of the Stage that will be exported.
public GetExportRequest withStageName(java.lang.String stageName)
The name of the Stage that will be exported.
stageName
- The name of the Stage that will be exported.public void setExportType(java.lang.String exportType)
The type of export. Currently only 'swagger' is supported.
exportType
- The type of export. Currently only 'swagger' is supported.public java.lang.String getExportType()
The type of export. Currently only 'swagger' is supported.
public GetExportRequest withExportType(java.lang.String exportType)
The type of export. Currently only 'swagger' is supported.
exportType
- The type of export. Currently only 'swagger' is supported.public java.util.Map<java.lang.String,java.lang.String> getParameters()
A key-value map of query string parameters that specify properties of the export, depending on the requested exportType. For exportType 'swagger', any combination of the following parameters are supported: 'integrations' will export x-amazon-apigateway-integration extensions 'authorizers' will export x-amazon-apigateway-authorizer extensions 'postman' will export with Postman extensions, allowing for import to the Postman tool
public void setParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
A key-value map of query string parameters that specify properties of the export, depending on the requested exportType. For exportType 'swagger', any combination of the following parameters are supported: 'integrations' will export x-amazon-apigateway-integration extensions 'authorizers' will export x-amazon-apigateway-authorizer extensions 'postman' will export with Postman extensions, allowing for import to the Postman tool
parameters
- A key-value map of query string parameters that specify properties
of the export, depending on the requested exportType. For
exportType 'swagger', any combination of the following parameters
are supported: 'integrations' will export
x-amazon-apigateway-integration extensions 'authorizers' will
export x-amazon-apigateway-authorizer extensions 'postman' will
export with Postman extensions, allowing for import to the Postman
toolpublic GetExportRequest withParameters(java.util.Map<java.lang.String,java.lang.String> parameters)
A key-value map of query string parameters that specify properties of the export, depending on the requested exportType. For exportType 'swagger', any combination of the following parameters are supported: 'integrations' will export x-amazon-apigateway-integration extensions 'authorizers' will export x-amazon-apigateway-authorizer extensions 'postman' will export with Postman extensions, allowing for import to the Postman tool
parameters
- A key-value map of query string parameters that specify properties
of the export, depending on the requested exportType. For
exportType 'swagger', any combination of the following parameters
are supported: 'integrations' will export
x-amazon-apigateway-integration extensions 'authorizers' will
export x-amazon-apigateway-authorizer extensions 'postman' will
export with Postman extensions, allowing for import to the Postman
toolpublic GetExportRequest addParametersEntry(java.lang.String key, java.lang.String value)
public GetExportRequest clearParametersEntries()
public void setAccepts(java.lang.String accepts)
The content-type of the export, for example 'application/json'. Currently 'application/json' and 'application/yaml' are supported for exportType 'swagger'. Should be specifed in the 'Accept' header for direct API requests.
accepts
- The content-type of the export, for example 'application/json'.
Currently 'application/json' and 'application/yaml' are supported
for exportType 'swagger'. Should be specifed in the 'Accept'
header for direct API requests.public java.lang.String getAccepts()
The content-type of the export, for example 'application/json'. Currently 'application/json' and 'application/yaml' are supported for exportType 'swagger'. Should be specifed in the 'Accept' header for direct API requests.
public GetExportRequest withAccepts(java.lang.String accepts)
The content-type of the export, for example 'application/json'. Currently 'application/json' and 'application/yaml' are supported for exportType 'swagger'. Should be specifed in the 'Accept' header for direct API requests.
accepts
- The content-type of the export, for example 'application/json'.
Currently 'application/json' and 'application/yaml' are supported
for exportType 'swagger'. Should be specifed in the 'Accept'
header for direct API requests.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public GetExportRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()