@Generated(value="com.amazonaws:aws-java-sdk-code-generator") public class AwsApiGatewayRestApiDetails extends Object implements Serializable, Cloneable, StructuredPojo
Contains information about a REST API in version 1 of Amazon API Gateway.
Constructor and Description |
---|
AwsApiGatewayRestApiDetails() |
Modifier and Type | Method and Description |
---|---|
AwsApiGatewayRestApiDetails |
clone() |
boolean |
equals(Object obj) |
String |
getApiKeySource()
The source of the API key for metering requests according to a usage plan.
|
List<String> |
getBinaryMediaTypes()
The list of binary media types supported by the REST API.
|
String |
getCreatedDate()
Indicates when the API was created.
|
String |
getDescription()
A description of the REST API.
|
AwsApiGatewayEndpointConfiguration |
getEndpointConfiguration()
The endpoint configuration of the REST API.
|
String |
getId()
The identifier of the REST API.
|
Integer |
getMinimumCompressionSize()
The minimum size in bytes of a payload before compression is enabled.
|
String |
getName()
The name of the REST API.
|
String |
getVersion()
The version identifier for the REST API.
|
int |
hashCode() |
void |
marshall(ProtocolMarshaller protocolMarshaller)
Marshalls this structured data using the given
ProtocolMarshaller . |
void |
setApiKeySource(String apiKeySource)
The source of the API key for metering requests according to a usage plan.
|
void |
setBinaryMediaTypes(Collection<String> binaryMediaTypes)
The list of binary media types supported by the REST API.
|
void |
setCreatedDate(String createdDate)
Indicates when the API was created.
|
void |
setDescription(String description)
A description of the REST API.
|
void |
setEndpointConfiguration(AwsApiGatewayEndpointConfiguration endpointConfiguration)
The endpoint configuration of the REST API.
|
void |
setId(String id)
The identifier of the REST API.
|
void |
setMinimumCompressionSize(Integer minimumCompressionSize)
The minimum size in bytes of a payload before compression is enabled.
|
void |
setName(String name)
The name of the REST API.
|
void |
setVersion(String version)
The version identifier for the REST API.
|
String |
toString()
Returns a string representation of this object.
|
AwsApiGatewayRestApiDetails |
withApiKeySource(String apiKeySource)
The source of the API key for metering requests according to a usage plan.
|
AwsApiGatewayRestApiDetails |
withBinaryMediaTypes(Collection<String> binaryMediaTypes)
The list of binary media types supported by the REST API.
|
AwsApiGatewayRestApiDetails |
withBinaryMediaTypes(String... binaryMediaTypes)
The list of binary media types supported by the REST API.
|
AwsApiGatewayRestApiDetails |
withCreatedDate(String createdDate)
Indicates when the API was created.
|
AwsApiGatewayRestApiDetails |
withDescription(String description)
A description of the REST API.
|
AwsApiGatewayRestApiDetails |
withEndpointConfiguration(AwsApiGatewayEndpointConfiguration endpointConfiguration)
The endpoint configuration of the REST API.
|
AwsApiGatewayRestApiDetails |
withId(String id)
The identifier of the REST API.
|
AwsApiGatewayRestApiDetails |
withMinimumCompressionSize(Integer minimumCompressionSize)
The minimum size in bytes of a payload before compression is enabled.
|
AwsApiGatewayRestApiDetails |
withName(String name)
The name of the REST API.
|
AwsApiGatewayRestApiDetails |
withVersion(String version)
The version identifier for the REST API.
|
public void setId(String id)
The identifier of the REST API.
id
- The identifier of the REST API.public String getId()
The identifier of the REST API.
public AwsApiGatewayRestApiDetails withId(String id)
The identifier of the REST API.
id
- The identifier of the REST API.public void setName(String name)
The name of the REST API.
name
- The name of the REST API.public String getName()
The name of the REST API.
public AwsApiGatewayRestApiDetails withName(String name)
The name of the REST API.
name
- The name of the REST API.public void setDescription(String description)
A description of the REST API.
description
- A description of the REST API.public String getDescription()
A description of the REST API.
public AwsApiGatewayRestApiDetails withDescription(String description)
A description of the REST API.
description
- A description of the REST API.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 AwsApiGatewayRestApiDetails 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 setVersion(String version)
The version identifier for the REST API.
version
- The version identifier for the REST API.public String getVersion()
The version identifier for the REST API.
public AwsApiGatewayRestApiDetails withVersion(String version)
The version identifier for the REST API.
version
- The version identifier for the REST API.public List<String> getBinaryMediaTypes()
The list of binary media types supported by the REST API.
public void setBinaryMediaTypes(Collection<String> binaryMediaTypes)
The list of binary media types supported by the REST API.
binaryMediaTypes
- The list of binary media types supported by the REST API.public AwsApiGatewayRestApiDetails withBinaryMediaTypes(String... binaryMediaTypes)
The list of binary media types supported by the REST API.
NOTE: This method appends the values to the existing list (if any). Use
setBinaryMediaTypes(java.util.Collection)
or withBinaryMediaTypes(java.util.Collection)
if you
want to override the existing values.
binaryMediaTypes
- The list of binary media types supported by the REST API.public AwsApiGatewayRestApiDetails withBinaryMediaTypes(Collection<String> binaryMediaTypes)
The list of binary media types supported by the REST API.
binaryMediaTypes
- The list of binary media types supported by the REST API.public void setMinimumCompressionSize(Integer minimumCompressionSize)
The minimum size in bytes of a payload before compression is enabled.
If null
, then compression is disabled.
If 0, then all payloads are compressed.
minimumCompressionSize
- The minimum size in bytes of a payload before compression is enabled.
If null
, then compression is disabled.
If 0, then all payloads are compressed.
public Integer getMinimumCompressionSize()
The minimum size in bytes of a payload before compression is enabled.
If null
, then compression is disabled.
If 0, then all payloads are compressed.
If null
, then compression is disabled.
If 0, then all payloads are compressed.
public AwsApiGatewayRestApiDetails withMinimumCompressionSize(Integer minimumCompressionSize)
The minimum size in bytes of a payload before compression is enabled.
If null
, then compression is disabled.
If 0, then all payloads are compressed.
minimumCompressionSize
- The minimum size in bytes of a payload before compression is enabled.
If null
, then compression is disabled.
If 0, then all payloads are compressed.
public void setApiKeySource(String apiKeySource)
The source of the API key for metering requests according to a usage plan.
HEADER
indicates whether to read the API key from the X-API-Key header of a request.
AUTHORIZER
indicates whether to read the API key from the UsageIdentifierKey
from a
custom authorizer.
apiKeySource
- The source of the API key for metering requests according to a usage plan.
HEADER
indicates whether to read the API key from the X-API-Key header of a request.
AUTHORIZER
indicates whether to read the API key from the UsageIdentifierKey
from a custom authorizer.
public String getApiKeySource()
The source of the API key for metering requests according to a usage plan.
HEADER
indicates whether to read the API key from the X-API-Key header of a request.
AUTHORIZER
indicates whether to read the API key from the UsageIdentifierKey
from a
custom authorizer.
HEADER
indicates whether to read the API key from the X-API-Key header of a request.
AUTHORIZER
indicates whether to read the API key from the UsageIdentifierKey
from a custom authorizer.
public AwsApiGatewayRestApiDetails withApiKeySource(String apiKeySource)
The source of the API key for metering requests according to a usage plan.
HEADER
indicates whether to read the API key from the X-API-Key header of a request.
AUTHORIZER
indicates whether to read the API key from the UsageIdentifierKey
from a
custom authorizer.
apiKeySource
- The source of the API key for metering requests according to a usage plan.
HEADER
indicates whether to read the API key from the X-API-Key header of a request.
AUTHORIZER
indicates whether to read the API key from the UsageIdentifierKey
from a custom authorizer.
public void setEndpointConfiguration(AwsApiGatewayEndpointConfiguration endpointConfiguration)
The endpoint configuration of the REST API.
endpointConfiguration
- The endpoint configuration of the REST API.public AwsApiGatewayEndpointConfiguration getEndpointConfiguration()
The endpoint configuration of the REST API.
public AwsApiGatewayRestApiDetails withEndpointConfiguration(AwsApiGatewayEndpointConfiguration endpointConfiguration)
The endpoint configuration of the REST API.
endpointConfiguration
- The endpoint configuration of the REST API.public String toString()
toString
in class Object
Object.toString()
public AwsApiGatewayRestApiDetails clone()
public void marshall(ProtocolMarshaller protocolMarshaller)
StructuredPojo
ProtocolMarshaller
.marshall
in interface StructuredPojo
protocolMarshaller
- Implementation of ProtocolMarshaller
used to marshall this object's data.