@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class Api extends Object implements Serializable, Cloneable, StructuredPojo
Represents an API.
Constructor and Description |
---|
Api() |
Modifier and Type | Method and Description |
---|---|
Api |
addTagsEntry(String key,
String value) |
Api |
clearTagsEntries()
Removes all the entries added into Tags.
|
Api |
clone() |
boolean |
equals(Object obj) |
String |
getApiEndpoint()
The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com.
|
String |
getApiId()
The API ID.
|
String |
getApiKeySelectionExpression()
An API key selection expression.
|
Date |
getCreatedDate()
The timestamp when the API was created.
|
String |
getDescription()
The description of the API.
|
Boolean |
getDisableSchemaValidation()
Avoid validating models when creating a deployment.
|
String |
getName()
The name of the API.
|
String |
getProtocolType()
The API protocol: Currently only WEBSOCKET is supported.
|
String |
getRouteSelectionExpression()
The route selection expression for the API.
|
Map<String,String> |
getTags()
The key-value map of strings.
|
String |
getVersion()
A version identifier for the API.
|
List<String> |
getWarnings()
The warning messages reported when failonwarnings is turned on during API import.
|
int |
hashCode() |
Boolean |
isDisableSchemaValidation()
Avoid validating models when creating a deployment.
|
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setApiEndpoint(String apiEndpoint)
The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com.
|
void |
setApiId(String apiId)
The API ID.
|
void |
setApiKeySelectionExpression(String apiKeySelectionExpression)
An API key selection expression.
|
void |
setCreatedDate(Date createdDate)
The timestamp when the API was created.
|
void |
setDescription(String description)
The description of the API.
|
void |
setDisableSchemaValidation(Boolean disableSchemaValidation)
Avoid validating models when creating a deployment.
|
void |
setName(String name)
The name of the API.
|
void |
setProtocolType(String protocolType)
The API protocol: Currently only WEBSOCKET is supported.
|
void |
setRouteSelectionExpression(String routeSelectionExpression)
The route selection expression for the API.
|
void |
setTags(Map<String,String> tags)
The key-value map of strings.
|
void |
setVersion(String version)
A version identifier for the API.
|
void |
setWarnings(Collection<String> warnings)
The warning messages reported when failonwarnings is turned on during API import.
|
String |
toString()
Returns a string representation of this object.
|
Api |
withApiEndpoint(String apiEndpoint)
The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com.
|
Api |
withApiId(String apiId)
The API ID.
|
Api |
withApiKeySelectionExpression(String apiKeySelectionExpression)
An API key selection expression.
|
Api |
withCreatedDate(Date createdDate)
The timestamp when the API was created.
|
Api |
withDescription(String description)
The description of the API.
|
Api |
withDisableSchemaValidation(Boolean disableSchemaValidation)
Avoid validating models when creating a deployment.
|
Api |
withName(String name)
The name of the API.
|
Api |
withProtocolType(ProtocolType protocolType)
The API protocol: Currently only WEBSOCKET is supported.
|
Api |
withProtocolType(String protocolType)
The API protocol: Currently only WEBSOCKET is supported.
|
Api |
withRouteSelectionExpression(String routeSelectionExpression)
The route selection expression for the API.
|
Api |
withTags(Map<String,String> tags)
The key-value map of strings.
|
Api |
withVersion(String version)
A version identifier for the API.
|
Api |
withWarnings(Collection<String> warnings)
The warning messages reported when failonwarnings is turned on during API import.
|
Api |
withWarnings(String... warnings)
The warning messages reported when failonwarnings is turned on during API import.
|
public void setApiEndpoint(String apiEndpoint)
The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.
apiEndpoint
- The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically
appended to this URI to form a complete path to a deployed API stage.public String getApiEndpoint()
The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.
public Api withApiEndpoint(String apiEndpoint)
The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically appended to this URI to form a complete path to a deployed API stage.
apiEndpoint
- The URI of the API, of the form {api-id}.execute-api.{region}.amazonaws.com. The stage name is typically
appended to this URI to form a complete path to a deployed API stage.public void setApiId(String apiId)
The API ID.
apiId
- The API ID.public String getApiId()
The API ID.
public Api withApiId(String apiId)
The API ID.
apiId
- The API ID.public void setApiKeySelectionExpression(String apiKeySelectionExpression)
An API key selection expression. See API Key Selection Expressions.
apiKeySelectionExpression
- An API key selection expression. See API Key Selection Expressions.public String getApiKeySelectionExpression()
An API key selection expression. See API Key Selection Expressions.
public Api withApiKeySelectionExpression(String apiKeySelectionExpression)
An API key selection expression. See API Key Selection Expressions.
apiKeySelectionExpression
- An API key selection expression. See API Key Selection Expressions.public void setCreatedDate(Date createdDate)
The timestamp when the API was created.
createdDate
- The timestamp when the API was created.public Date getCreatedDate()
The timestamp when the API was created.
public Api withCreatedDate(Date createdDate)
The timestamp when the API was created.
createdDate
- The timestamp when the API was created.public void setDescription(String description)
The description of the API.
description
- The description of the API.public String getDescription()
The description of the API.
public Api withDescription(String description)
The description of the API.
description
- The description of the API.public void setDisableSchemaValidation(Boolean disableSchemaValidation)
Avoid validating models when creating a deployment.
disableSchemaValidation
- Avoid validating models when creating a deployment.public Boolean getDisableSchemaValidation()
Avoid validating models when creating a deployment.
public Api withDisableSchemaValidation(Boolean disableSchemaValidation)
Avoid validating models when creating a deployment.
disableSchemaValidation
- Avoid validating models when creating a deployment.public Boolean isDisableSchemaValidation()
Avoid validating models when creating a deployment.
public void setName(String name)
The name of the API.
name
- The name of the API.public String getName()
The name of the API.
public Api withName(String name)
The name of the API.
name
- The name of the API.public void setProtocolType(String protocolType)
The API protocol: Currently only WEBSOCKET is supported.
protocolType
- The API protocol: Currently only WEBSOCKET is supported.ProtocolType
public String getProtocolType()
The API protocol: Currently only WEBSOCKET is supported.
ProtocolType
public Api withProtocolType(String protocolType)
The API protocol: Currently only WEBSOCKET is supported.
protocolType
- The API protocol: Currently only WEBSOCKET is supported.ProtocolType
public Api withProtocolType(ProtocolType protocolType)
The API protocol: Currently only WEBSOCKET is supported.
protocolType
- The API protocol: Currently only WEBSOCKET is supported.ProtocolType
public void setRouteSelectionExpression(String routeSelectionExpression)
The route selection expression for the API.
routeSelectionExpression
- The route selection expression for the API.public String getRouteSelectionExpression()
The route selection expression for the API.
public Api withRouteSelectionExpression(String routeSelectionExpression)
The route selection expression for the API.
routeSelectionExpression
- The route selection expression for the API.public void setVersion(String version)
A version identifier for the API.
version
- A version identifier for the API.public String getVersion()
A version identifier for the API.
public Api withVersion(String version)
A version identifier for the API.
version
- A version identifier for the API.public List<String> getWarnings()
The warning messages reported when failonwarnings is turned on during API import.
public void setWarnings(Collection<String> warnings)
The warning messages reported when failonwarnings is turned on during API import.
warnings
- The warning messages reported when failonwarnings is turned on during API import.public Api withWarnings(String... warnings)
The warning messages reported when failonwarnings is turned on during API import.
NOTE: This method appends the values to the existing list (if any). Use
setWarnings(java.util.Collection)
or withWarnings(java.util.Collection)
if you want to override
the existing values.
warnings
- The warning messages reported when failonwarnings is turned on during API import.public Api withWarnings(Collection<String> warnings)
The warning messages reported when failonwarnings is turned on during API import.
warnings
- The warning messages reported when failonwarnings is turned on during API import.public Map<String,String> getTags()
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters..
public void setTags(Map<String,String> tags)
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters..
tags
- The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128
characters and must not start with aws:. The tag value can be up to 256 characters..public Api withTags(Map<String,String> tags)
The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128 characters and must not start with aws:. The tag value can be up to 256 characters..
tags
- The key-value map of strings. The valid character set is [a-zA-Z+-=._:/]. The tag key can be up to 128
characters and must not start with aws:. The tag value can be up to 256 characters..public Api clearTagsEntries()
public String toString()
toString
in class Object
Object.toString()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.Copyright © 2013 Amazon Web Services, Inc. All Rights Reserved.