@Generated(value="software.amazon.awssdk:codegen") public final class UpdateServiceInstanceRequest extends ProtonRequest implements ToCopyableBuilder<UpdateServiceInstanceRequest.Builder,UpdateServiceInstanceRequest>
| Modifier and Type | Class and Description |
|---|---|
static interface |
UpdateServiceInstanceRequest.Builder |
| Modifier and Type | Method and Description |
|---|---|
static UpdateServiceInstanceRequest.Builder |
builder() |
String |
clientToken()
The client token of the service instance to update.
|
DeploymentUpdateType |
deploymentType()
The deployment type.
|
String |
deploymentTypeAsString()
The deployment type.
|
boolean |
equals(Object obj) |
boolean |
equalsBySdkFields(Object obj) |
<T> Optional<T> |
getValueForField(String fieldName,
Class<T> clazz) |
int |
hashCode() |
String |
name()
The name of the service instance to update.
|
List<SdkField<?>> |
sdkFields() |
static Class<? extends UpdateServiceInstanceRequest.Builder> |
serializableBuilderClass() |
String |
serviceName()
The name of the service that the service instance belongs to.
|
String |
spec()
The formatted specification that defines the service instance update.
|
String |
templateMajorVersion()
The major version of the service template to update.
|
String |
templateMinorVersion()
The minor version of the service template to update.
|
UpdateServiceInstanceRequest.Builder |
toBuilder() |
String |
toString()
Returns a string representation of this object.
|
overrideConfigurationclone, finalize, getClass, notify, notifyAll, wait, wait, waitcopypublic final String clientToken()
The client token of the service instance to update.
public final DeploymentUpdateType deploymentType()
The deployment type. It defines the mode for updating a service instance, as follows:
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
CURRENT_VERSION
In this mode, the service instance is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include major or minor version parameters when you use this deployment type.
MINOR_VERSION
In this mode, the service instance is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.
MAJOR_VERSION
In this mode, the service instance is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can specify a different major version that's higher than the major version in use and a minor version.
If the service returns an enum value that is not available in the current SDK version, deploymentType
will return DeploymentUpdateType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from deploymentTypeAsString().
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
CURRENT_VERSION
In this mode, the service instance is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include major or minor version parameters when you use this deployment type.
MINOR_VERSION
In this mode, the service instance is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.
MAJOR_VERSION
In this mode, the service instance is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can specify a different major version that's higher than the major version in use and a minor version.
DeploymentUpdateTypepublic final String deploymentTypeAsString()
The deployment type. It defines the mode for updating a service instance, as follows:
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
CURRENT_VERSION
In this mode, the service instance is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include major or minor version parameters when you use this deployment type.
MINOR_VERSION
In this mode, the service instance is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.
MAJOR_VERSION
In this mode, the service instance is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can specify a different major version that's higher than the major version in use and a minor version.
If the service returns an enum value that is not available in the current SDK version, deploymentType
will return DeploymentUpdateType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is
available from deploymentTypeAsString().
NONE
In this mode, a deployment doesn't occur. Only the requested metadata parameters are updated.
CURRENT_VERSION
In this mode, the service instance is deployed and updated with the new spec that you provide. Only requested parameters are updated. Don’t include major or minor version parameters when you use this deployment type.
MINOR_VERSION
In this mode, the service instance is deployed and updated with the published, recommended (latest) minor version of the current major version in use, by default. You can also specify a different minor version of the current major version in use.
MAJOR_VERSION
In this mode, the service instance is deployed and updated with the published, recommended (latest) major and minor version of the current template, by default. You can specify a different major version that's higher than the major version in use and a minor version.
DeploymentUpdateTypepublic final String name()
The name of the service instance to update.
public final String serviceName()
The name of the service that the service instance belongs to.
public final String spec()
The formatted specification that defines the service instance update.
public final String templateMajorVersion()
The major version of the service template to update.
public final String templateMinorVersion()
The minor version of the service template to update.
public UpdateServiceInstanceRequest.Builder toBuilder()
toBuilder in interface ToCopyableBuilder<UpdateServiceInstanceRequest.Builder,UpdateServiceInstanceRequest>toBuilder in class ProtonRequestpublic static UpdateServiceInstanceRequest.Builder builder()
public static Class<? extends UpdateServiceInstanceRequest.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.