@Generated(value="software.amazon.awssdk:codegen") public final class CreateStageRequest extends ApiGatewayRequest implements ToCopyableBuilder<CreateStageRequest.Builder,CreateStageRequest>
Requests API Gateway to create a Stage resource.
| Modifier and Type | Class and Description |
|---|---|
static interface |
CreateStageRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static CreateStageRequest.Builder |
builder() |
Boolean |
cacheClusterEnabled()
Whether cache clustering is enabled for the stage.
|
String |
cacheClusterSize()
The stage's cache capacity in GB.
|
CanarySettings |
canarySettings()
The canary deployment settings of this stage.
|
String |
deploymentId()
The identifier of the Deployment resource for the Stage resource.
|
String |
description()
The description of the Stage resource.
|
String |
documentationVersion()
The version of the associated API documentation.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
boolean |
hasTags()
For responses, this returns true if the service returned a value for the Tags property.
|
boolean |
hasVariables()
For responses, this returns true if the service returned a value for the Variables property.
|
String |
restApiId()
The string identifier of the associated RestApi.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends CreateStageRequest.Builder> |
serializableBuilderClass() |
String |
stageName()
The name for the Stage resource.
|
Map<String,String> |
tags()
The key-value map of strings.
|
CreateStageRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
Boolean |
tracingEnabled()
Specifies whether active tracing with X-ray is enabled for the Stage.
|
Map<String,String> |
variables()
A map that defines the stage variables for the new Stage resource.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String restApiId()
The string identifier of the associated RestApi.
public final String stageName()
The name for the Stage resource. Stage names can only contain alphanumeric characters, hyphens, and underscores. Maximum length is 128 characters.
public final String deploymentId()
The identifier of the Deployment resource for the Stage resource.
public final String description()
The description of the Stage resource.
public final Boolean cacheClusterEnabled()
Whether cache clustering is enabled for the stage.
public final String cacheClusterSize()
The stage's cache capacity in GB. For more information about choosing a cache size, see Enabling API caching to enhance responsiveness.
public final boolean hasVariables()
isEmpty() method on the property). This is
useful because the SDK will never return a null collection or map, but you may need to differentiate between the
service returning nothing (or null) and the service returning an empty collection or map. For requests, this
returns true if a value for the property was specified in the request builder, and false if a value was not
specified.public final Map<String,String> variables()
A map that defines the stage variables for the new Stage resource. Variable names can have alphanumeric and
underscore characters, and the values must match [A-Za-z0-9-._~:/?#&=,]+.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasVariables() method.
[A-Za-z0-9-._~:/?#&=,]+.public final String documentationVersion()
The version of the associated API documentation.
public final CanarySettings canarySettings()
The canary deployment settings of this stage.
public final Boolean tracingEnabled()
Specifies whether active tracing with X-ray is enabled for the Stage.
public final boolean hasTags()
isEmpty() method on the property). This is useful
because the SDK will never return a null collection or map, but you may need to differentiate between the service
returning nothing (or null) and the service returning an empty collection or map. For requests, this returns true
if a value for the property was specified in the request builder, and false if a value was not specified.public final 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.
Attempts to modify the collection returned by this method will result in an UnsupportedOperationException.
This method will never return null. If you would like to know whether the service returned this field (so that
you can differentiate between null and empty), you can use the hasTags() method.
aws:. The tag value can be up to 256 characters.public CreateStageRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<CreateStageRequest.Builder,CreateStageRequest>toBuilder in class ApiGatewayRequestpublic static CreateStageRequest.Builder builder()
public static Class<? extends CreateStageRequest.Builder> serializableBuilderClass()
public final int hashCode()
hashCode in class AwsRequestpublic final boolean equals(Object obj)
equals in class AwsRequestpublic final boolean equalsBySdkFields(Object obj)
equalsBySdkFields in interface SdkPojopublic final String toString()
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
getValueForField in class SdkRequestCopyright © 2023. All rights reserved.