@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsApiGatewayV2ApiDetails extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a version 2 API in Amazon API Gateway.
Constructor and Description |
---|
AwsApiGatewayV2ApiDetails() |
Modifier and Type | Method and Description |
---|---|
AwsApiGatewayV2ApiDetails |
clone() |
boolean |
equals(Object obj) |
String |
getApiEndpoint()
The URI of the API.
|
String |
getApiId()
The identifier of the API.
|
String |
getApiKeySelectionExpression()
An API key selection expression.
|
AwsCorsConfiguration |
getCorsConfiguration()
A cross-origin resource sharing (CORS) configuration.
|
String |
getCreatedDate()
Indicates when the API was created.
|
String |
getDescription()
A description of the API.
|
String |
getName()
The name of the API.
|
String |
getProtocolType()
The API protocol for the API.
|
String |
getRouteSelectionExpression()
The route selection expression for the API.
|
String |
getVersion()
The version identifier for the API.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setApiEndpoint(String apiEndpoint)
The URI of the API.
|
void |
setApiId(String apiId)
The identifier of the API.
|
void |
setApiKeySelectionExpression(String apiKeySelectionExpression)
An API key selection expression.
|
void |
setCorsConfiguration(AwsCorsConfiguration corsConfiguration)
A cross-origin resource sharing (CORS) configuration.
|
void |
setCreatedDate(String createdDate)
Indicates when the API was created.
|
void |
setDescription(String description)
A description of the API.
|
void |
setName(String name)
The name of the API.
|
void |
setProtocolType(String protocolType)
The API protocol for the API.
|
void |
setRouteSelectionExpression(String routeSelectionExpression)
The route selection expression for the API.
|
void |
setVersion(String version)
The version identifier for the API.
|
String |
toString()
Returns a string representation of this object.
|
AwsApiGatewayV2ApiDetails |
withApiEndpoint(String apiEndpoint)
The URI of the API.
|
AwsApiGatewayV2ApiDetails |
withApiId(String apiId)
The identifier of the API.
|
AwsApiGatewayV2ApiDetails |
withApiKeySelectionExpression(String apiKeySelectionExpression)
An API key selection expression.
|
AwsApiGatewayV2ApiDetails |
withCorsConfiguration(AwsCorsConfiguration corsConfiguration)
A cross-origin resource sharing (CORS) configuration.
|
AwsApiGatewayV2ApiDetails |
withCreatedDate(String createdDate)
Indicates when the API was created.
|
AwsApiGatewayV2ApiDetails |
withDescription(String description)
A description of the API.
|
AwsApiGatewayV2ApiDetails |
withName(String name)
The name of the API.
|
AwsApiGatewayV2ApiDetails |
withProtocolType(String protocolType)
The API protocol for the API.
|
AwsApiGatewayV2ApiDetails |
withRouteSelectionExpression(String routeSelectionExpression)
The route selection expression for the API.
|
AwsApiGatewayV2ApiDetails |
withVersion(String version)
The version identifier for the API.
|
public void setApiEndpoint(String apiEndpoint)
The URI of the API.
Uses the format <api-id>.execute-api.<region>.amazonaws.com
The stage name is typically appended to the URI to form a complete path to a deployed API stage.
apiEndpoint
- The URI of the API.
Uses the format <api-id>.execute-api.<region>.amazonaws.com
The stage name is typically appended to the URI to form a complete path to a deployed API stage.
public String getApiEndpoint()
The URI of the API.
Uses the format <api-id>.execute-api.<region>.amazonaws.com
The stage name is typically appended to the URI to form a complete path to a deployed API stage.
Uses the format <api-id>.execute-api.<region>.amazonaws.com
The stage name is typically appended to the URI to form a complete path to a deployed API stage.
public AwsApiGatewayV2ApiDetails withApiEndpoint(String apiEndpoint)
The URI of the API.
Uses the format <api-id>.execute-api.<region>.amazonaws.com
The stage name is typically appended to the URI to form a complete path to a deployed API stage.
apiEndpoint
- The URI of the API.
Uses the format <api-id>.execute-api.<region>.amazonaws.com
The stage name is typically appended to the URI to form a complete path to a deployed API stage.
public void setApiId(String apiId)
The identifier of the API.
apiId
- The identifier of the API.public String getApiId()
The identifier of the API.
public AwsApiGatewayV2ApiDetails withApiId(String apiId)
The identifier of the API.
apiId
- The identifier of the API.public void setApiKeySelectionExpression(String apiKeySelectionExpression)
An API key selection expression. Supported only for WebSocket APIs.
apiKeySelectionExpression
- An API key selection expression. Supported only for WebSocket APIs.public String getApiKeySelectionExpression()
An API key selection expression. Supported only for WebSocket APIs.
public AwsApiGatewayV2ApiDetails withApiKeySelectionExpression(String apiKeySelectionExpression)
An API key selection expression. Supported only for WebSocket APIs.
apiKeySelectionExpression
- An API key selection expression. Supported only for WebSocket APIs.public void setCreatedDate(String createdDate)
Indicates when the API was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
createdDate
- Indicates when the API was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public String getCreatedDate()
Indicates when the API was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public AwsApiGatewayV2ApiDetails withCreatedDate(String createdDate)
Indicates when the API was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a maximum of 9
digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example, 2024-01-04T15:25:10.123456789+17:59
)
createdDate
- Indicates when the API was created.
This field accepts only the specified formats. Timestamps can end with Z
or
("+" / "-") time-hour [":" time-minute]
. The time-secfrac after seconds is limited to a
maximum of 9 digits. The offset is bounded by +/-18:00. Here are valid timestamp formats with examples:
YYYY-MM-DDTHH:MM:SSZ
(for example, 2019-01-31T23:00:00Z
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmmZ
(for example, 2019-01-31T23:00:00.123456789Z
)
YYYY-MM-DDTHH:MM:SS+HH:MM
(for example, 2024-01-04T15:25:10+17:59
)
YYYY-MM-DDTHH:MM:SS-HHMM
(for example, 2024-01-04T15:25:10-1759
)
YYYY-MM-DDTHH:MM:SS.mmmmmmmmm+HH:MM
(for example,
2024-01-04T15:25:10.123456789+17:59
)
public void setDescription(String description)
A description of the API.
description
- A description of the API.public String getDescription()
A description of the API.
public AwsApiGatewayV2ApiDetails withDescription(String description)
A description of the API.
description
- A description of the API.public void setVersion(String version)
The version identifier for the API.
version
- The version identifier for the API.public String getVersion()
The version identifier for the API.
public AwsApiGatewayV2ApiDetails withVersion(String version)
The version identifier for the API.
version
- The version identifier for the API.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 AwsApiGatewayV2ApiDetails withName(String name)
The name of the API.
name
- The name of the API.public void setProtocolType(String protocolType)
The API protocol for the API.
Valid values: WEBSOCKET
| HTTP
protocolType
- The API protocol for the API.
Valid values: WEBSOCKET
| HTTP
public String getProtocolType()
The API protocol for the API.
Valid values: WEBSOCKET
| HTTP
Valid values: WEBSOCKET
| HTTP
public AwsApiGatewayV2ApiDetails withProtocolType(String protocolType)
The API protocol for the API.
Valid values: WEBSOCKET
| HTTP
protocolType
- The API protocol for the API.
Valid values: WEBSOCKET
| HTTP
public void setRouteSelectionExpression(String routeSelectionExpression)
The route selection expression for the API.
For HTTP APIs, must be ${request.method} ${request.path}
. This is the default value for HTTP APIs.
For WebSocket APIs, there is no default value.
routeSelectionExpression
- The route selection expression for the API.
For HTTP APIs, must be ${request.method} ${request.path}
. This is the default value for HTTP
APIs.
For WebSocket APIs, there is no default value.
public String getRouteSelectionExpression()
The route selection expression for the API.
For HTTP APIs, must be ${request.method} ${request.path}
. This is the default value for HTTP APIs.
For WebSocket APIs, there is no default value.
For HTTP APIs, must be ${request.method} ${request.path}
. This is the default value for HTTP
APIs.
For WebSocket APIs, there is no default value.
public AwsApiGatewayV2ApiDetails withRouteSelectionExpression(String routeSelectionExpression)
The route selection expression for the API.
For HTTP APIs, must be ${request.method} ${request.path}
. This is the default value for HTTP APIs.
For WebSocket APIs, there is no default value.
routeSelectionExpression
- The route selection expression for the API.
For HTTP APIs, must be ${request.method} ${request.path}
. This is the default value for HTTP
APIs.
For WebSocket APIs, there is no default value.
public void setCorsConfiguration(AwsCorsConfiguration corsConfiguration)
A cross-origin resource sharing (CORS) configuration. Supported only for HTTP APIs.
corsConfiguration
- A cross-origin resource sharing (CORS) configuration. Supported only for HTTP APIs.public AwsCorsConfiguration getCorsConfiguration()
A cross-origin resource sharing (CORS) configuration. Supported only for HTTP APIs.
public AwsApiGatewayV2ApiDetails withCorsConfiguration(AwsCorsConfiguration corsConfiguration)
A cross-origin resource sharing (CORS) configuration. Supported only for HTTP APIs.
corsConfiguration
- A cross-origin resource sharing (CORS) configuration. Supported only for HTTP APIs.public String toString()
toString
in class Object
Object.toString()
public AwsApiGatewayV2ApiDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.