@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class CreateRouteRequest extends AmazonWebServiceRequest implements Serializable, Cloneable
Creates a new Route resource to represent a route.
NOOP
Constructor and Description |
---|
CreateRouteRequest() |
Modifier and Type | Method and Description |
---|---|
CreateRouteRequest |
addRequestModelsEntry(String key,
String value)
Add a single RequestModels entry
|
CreateRouteRequest |
addRequestParametersEntry(String key,
ParameterConstraints value)
Add a single RequestParameters entry
|
CreateRouteRequest |
clearRequestModelsEntries()
Removes all the entries added into RequestModels.
|
CreateRouteRequest |
clearRequestParametersEntries()
Removes all the entries added into RequestParameters.
|
CreateRouteRequest |
clone()
Creates a shallow clone of this object for all fields except the handler context.
|
boolean |
equals(Object obj) |
String |
getApiId()
The API identifier.
|
Boolean |
getApiKeyRequired()
Specifies whether an API key is required for the route.
|
List<String> |
getAuthorizationScopes()
The authorization scopes supported by this route.
|
String |
getAuthorizationType()
The authorization type for the route.
|
String |
getAuthorizerId()
The identifier of the Authorizer resource to be associated with this route.
|
String |
getModelSelectionExpression()
The model selection expression for the route.
|
String |
getOperationName()
The operation name for the route.
|
Map<String,String> |
getRequestModels()
The request models for the route.
|
Map<String,ParameterConstraints> |
getRequestParameters()
The request parameters for the route.
|
String |
getRouteKey()
The route key for the route.
|
String |
getRouteResponseSelectionExpression()
The route response selection expression for the route.
|
String |
getTarget()
The target for the route.
|
int |
hashCode() |
Boolean |
isApiKeyRequired()
Specifies whether an API key is required for the route.
|
void |
setApiId(String apiId)
The API identifier.
|
void |
setApiKeyRequired(Boolean apiKeyRequired)
Specifies whether an API key is required for the route.
|
void |
setAuthorizationScopes(Collection<String> authorizationScopes)
The authorization scopes supported by this route.
|
void |
setAuthorizationType(String authorizationType)
The authorization type for the route.
|
void |
setAuthorizerId(String authorizerId)
The identifier of the Authorizer resource to be associated with this route.
|
void |
setModelSelectionExpression(String modelSelectionExpression)
The model selection expression for the route.
|
void |
setOperationName(String operationName)
The operation name for the route.
|
void |
setRequestModels(Map<String,String> requestModels)
The request models for the route.
|
void |
setRequestParameters(Map<String,ParameterConstraints> requestParameters)
The request parameters for the route.
|
void |
setRouteKey(String routeKey)
The route key for the route.
|
void |
setRouteResponseSelectionExpression(String routeResponseSelectionExpression)
The route response selection expression for the route.
|
void |
setTarget(String target)
The target for the route.
|
String |
toString()
Returns a string representation of this object.
|
CreateRouteRequest |
withApiId(String apiId)
The API identifier.
|
CreateRouteRequest |
withApiKeyRequired(Boolean apiKeyRequired)
Specifies whether an API key is required for the route.
|
CreateRouteRequest |
withAuthorizationScopes(Collection<String> authorizationScopes)
The authorization scopes supported by this route.
|
CreateRouteRequest |
withAuthorizationScopes(String... authorizationScopes)
The authorization scopes supported by this route.
|
CreateRouteRequest |
withAuthorizationType(AuthorizationType authorizationType)
The authorization type for the route.
|
CreateRouteRequest |
withAuthorizationType(String authorizationType)
The authorization type for the route.
|
CreateRouteRequest |
withAuthorizerId(String authorizerId)
The identifier of the Authorizer resource to be associated with this route.
|
CreateRouteRequest |
withModelSelectionExpression(String modelSelectionExpression)
The model selection expression for the route.
|
CreateRouteRequest |
withOperationName(String operationName)
The operation name for the route.
|
CreateRouteRequest |
withRequestModels(Map<String,String> requestModels)
The request models for the route.
|
CreateRouteRequest |
withRequestParameters(Map<String,ParameterConstraints> requestParameters)
The request parameters for the route.
|
CreateRouteRequest |
withRouteKey(String routeKey)
The route key for the route.
|
CreateRouteRequest |
withRouteResponseSelectionExpression(String routeResponseSelectionExpression)
The route response selection expression for the route.
|
CreateRouteRequest |
withTarget(String target)
The target for the route.
|
addHandlerContext, getCloneRoot, getCloneSource, getCustomQueryParameters, getCustomRequestHeaders, getGeneralProgressListener, getHandlerContext, getReadLimit, getRequestClientOptions, getRequestCredentials, getRequestCredentialsProvider, getRequestMetricCollector, getSdkClientExecutionTimeout, getSdkRequestTimeout, putCustomQueryParameter, putCustomRequestHeader, setGeneralProgressListener, setRequestCredentials, setRequestCredentialsProvider, setRequestMetricCollector, setSdkClientExecutionTimeout, setSdkRequestTimeout, withGeneralProgressListener, withRequestCredentialsProvider, withRequestMetricCollector, withSdkClientExecutionTimeout, withSdkRequestTimeout
public void setApiId(String apiId)
The API identifier.
apiId
- The API identifier.public String getApiId()
The API identifier.
public CreateRouteRequest withApiId(String apiId)
The API identifier.
apiId
- The API identifier.public void setApiKeyRequired(Boolean apiKeyRequired)
Specifies whether an API key is required for the route. Supported only for WebSocket APIs.
apiKeyRequired
- Specifies whether an API key is required for the route. Supported only for WebSocket APIs.public Boolean getApiKeyRequired()
Specifies whether an API key is required for the route. Supported only for WebSocket APIs.
public CreateRouteRequest withApiKeyRequired(Boolean apiKeyRequired)
Specifies whether an API key is required for the route. Supported only for WebSocket APIs.
apiKeyRequired
- Specifies whether an API key is required for the route. Supported only for WebSocket APIs.public Boolean isApiKeyRequired()
Specifies whether an API key is required for the route. Supported only for WebSocket APIs.
public List<String> getAuthorizationScopes()
The authorization scopes supported by this route.
public void setAuthorizationScopes(Collection<String> authorizationScopes)
The authorization scopes supported by this route.
authorizationScopes
- The authorization scopes supported by this route.public CreateRouteRequest withAuthorizationScopes(String... authorizationScopes)
The authorization scopes supported by this route.
NOTE: This method appends the values to the existing list (if any). Use
setAuthorizationScopes(java.util.Collection)
or withAuthorizationScopes(java.util.Collection)
if you want to override the existing values.
authorizationScopes
- The authorization scopes supported by this route.public CreateRouteRequest withAuthorizationScopes(Collection<String> authorizationScopes)
The authorization scopes supported by this route.
authorizationScopes
- The authorization scopes supported by this route.public void setAuthorizationType(String authorizationType)
The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.
authorizationType
- The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM
for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are
NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for
using a Lambda authorizer.AuthorizationType
public String getAuthorizationType()
The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.
AuthorizationType
public CreateRouteRequest withAuthorizationType(String authorizationType)
The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.
authorizationType
- The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM
for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are
NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for
using a Lambda authorizer.AuthorizationType
public CreateRouteRequest withAuthorizationType(AuthorizationType authorizationType)
The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer.
authorizationType
- The authorization type for the route. For WebSocket APIs, valid values are NONE for open access, AWS_IAM
for using AWS IAM permissions, and CUSTOM for using a Lambda authorizer For HTTP APIs, valid values are
NONE for open access, JWT for using JSON Web Tokens, AWS_IAM for using AWS IAM permissions, and CUSTOM for
using a Lambda authorizer.AuthorizationType
public void setAuthorizerId(String authorizerId)
The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.
authorizerId
- The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is
generated by API Gateway when you created the authorizer.public String getAuthorizerId()
The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.
public CreateRouteRequest withAuthorizerId(String authorizerId)
The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is generated by API Gateway when you created the authorizer.
authorizerId
- The identifier of the Authorizer resource to be associated with this route. The authorizer identifier is
generated by API Gateway when you created the authorizer.public void setModelSelectionExpression(String modelSelectionExpression)
The model selection expression for the route. Supported only for WebSocket APIs.
modelSelectionExpression
- The model selection expression for the route. Supported only for WebSocket APIs.public String getModelSelectionExpression()
The model selection expression for the route. Supported only for WebSocket APIs.
public CreateRouteRequest withModelSelectionExpression(String modelSelectionExpression)
The model selection expression for the route. Supported only for WebSocket APIs.
modelSelectionExpression
- The model selection expression for the route. Supported only for WebSocket APIs.public void setOperationName(String operationName)
The operation name for the route.
operationName
- The operation name for the route.public String getOperationName()
The operation name for the route.
public CreateRouteRequest withOperationName(String operationName)
The operation name for the route.
operationName
- The operation name for the route.public Map<String,String> getRequestModels()
The request models for the route. Supported only for WebSocket APIs.
public void setRequestModels(Map<String,String> requestModels)
The request models for the route. Supported only for WebSocket APIs.
requestModels
- The request models for the route. Supported only for WebSocket APIs.public CreateRouteRequest withRequestModels(Map<String,String> requestModels)
The request models for the route. Supported only for WebSocket APIs.
requestModels
- The request models for the route. Supported only for WebSocket APIs.public CreateRouteRequest addRequestModelsEntry(String key, String value)
public CreateRouteRequest clearRequestModelsEntries()
public Map<String,ParameterConstraints> getRequestParameters()
The request parameters for the route. Supported only for WebSocket APIs.
public void setRequestParameters(Map<String,ParameterConstraints> requestParameters)
The request parameters for the route. Supported only for WebSocket APIs.
requestParameters
- The request parameters for the route. Supported only for WebSocket APIs.public CreateRouteRequest withRequestParameters(Map<String,ParameterConstraints> requestParameters)
The request parameters for the route. Supported only for WebSocket APIs.
requestParameters
- The request parameters for the route. Supported only for WebSocket APIs.public CreateRouteRequest addRequestParametersEntry(String key, ParameterConstraints value)
public CreateRouteRequest clearRequestParametersEntries()
public void setRouteKey(String routeKey)
The route key for the route.
routeKey
- The route key for the route.public String getRouteKey()
The route key for the route.
public CreateRouteRequest withRouteKey(String routeKey)
The route key for the route.
routeKey
- The route key for the route.public void setRouteResponseSelectionExpression(String routeResponseSelectionExpression)
The route response selection expression for the route. Supported only for WebSocket APIs.
routeResponseSelectionExpression
- The route response selection expression for the route. Supported only for WebSocket APIs.public String getRouteResponseSelectionExpression()
The route response selection expression for the route. Supported only for WebSocket APIs.
public CreateRouteRequest withRouteResponseSelectionExpression(String routeResponseSelectionExpression)
The route response selection expression for the route. Supported only for WebSocket APIs.
routeResponseSelectionExpression
- The route response selection expression for the route. Supported only for WebSocket APIs.public void setTarget(String target)
The target for the route.
target
- The target for the route.public String getTarget()
The target for the route.
public CreateRouteRequest withTarget(String target)
The target for the route.
target
- The target for the route.public String toString()
toString
in class Object
Object.toString()
public CreateRouteRequest clone()
AmazonWebServiceRequest
clone
in class AmazonWebServiceRequest
Object.clone()