Class UpdateComponentRequest
- java.lang.Object
-
- software.amazon.awssdk.core.SdkRequest
-
- software.amazon.awssdk.awscore.AwsRequest
-
- software.amazon.awssdk.services.proton.model.ProtonRequest
-
- software.amazon.awssdk.services.proton.model.UpdateComponentRequest
-
- All Implemented Interfaces:
SdkPojo,ToCopyableBuilder<UpdateComponentRequest.Builder,UpdateComponentRequest>
@Generated("software.amazon.awssdk:codegen") public final class UpdateComponentRequest extends ProtonRequest implements ToCopyableBuilder<UpdateComponentRequest.Builder,UpdateComponentRequest>
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static interfaceUpdateComponentRequest.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UpdateComponentRequest.Builderbuilder()StringclientToken()The client token for the updated component.ComponentDeploymentUpdateTypedeploymentType()The deployment type.StringdeploymentTypeAsString()The deployment type.Stringdescription()An optional customer-provided description of the component.booleanequals(Object obj)booleanequalsBySdkFields(Object obj)<T> Optional<T>getValueForField(String fieldName, Class<T> clazz)inthashCode()Stringname()The name of the component to update.List<SdkField<?>>sdkFields()static Class<? extends UpdateComponentRequest.Builder>serializableBuilderClass()StringserviceInstanceName()The name of the service instance that you want to attach this component to.StringserviceName()The name of the service thatserviceInstanceNameis associated with.StringserviceSpec()The service spec that you want the component to use to access service inputs.StringtemplateFile()A path to the Infrastructure as Code (IaC) file describing infrastructure that a custom component provisions.UpdateComponentRequest.BuildertoBuilder()StringtoString()Returns a string representation of this object.-
Methods inherited from class software.amazon.awssdk.awscore.AwsRequest
overrideConfiguration
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface software.amazon.awssdk.utils.builder.ToCopyableBuilder
copy
-
-
-
-
Method Detail
-
clientToken
public final String clientToken()
The client token for the updated component.
- Returns:
- The client token for the updated component.
-
deploymentType
public final ComponentDeploymentUpdateType deploymentType()
The deployment type. It defines the mode for updating a component, as follows:
-
NONEIn this mode, a deployment doesn't occur. Only the requested metadata parameters are updated. You can only specify
descriptionin this mode. -
CURRENT_VERSIONIn this mode, the component is deployed and updated with the new
serviceSpec,templateSource, and/ortypethat you provide. Only requested parameters are updated.
If the service returns an enum value that is not available in the current SDK version,
deploymentTypewill returnComponentDeploymentUpdateType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdeploymentTypeAsString().- Returns:
- The deployment type. It defines the mode for updating a component, as follows:
-
NONEIn this mode, a deployment doesn't occur. Only the requested metadata parameters are updated. You can only specify
descriptionin this mode. -
CURRENT_VERSIONIn this mode, the component is deployed and updated with the new
serviceSpec,templateSource, and/ortypethat you provide. Only requested parameters are updated.
-
- See Also:
ComponentDeploymentUpdateType
-
-
deploymentTypeAsString
public final String deploymentTypeAsString()
The deployment type. It defines the mode for updating a component, as follows:
-
NONEIn this mode, a deployment doesn't occur. Only the requested metadata parameters are updated. You can only specify
descriptionin this mode. -
CURRENT_VERSIONIn this mode, the component is deployed and updated with the new
serviceSpec,templateSource, and/ortypethat you provide. Only requested parameters are updated.
If the service returns an enum value that is not available in the current SDK version,
deploymentTypewill returnComponentDeploymentUpdateType.UNKNOWN_TO_SDK_VERSION. The raw value returned by the service is available fromdeploymentTypeAsString().- Returns:
- The deployment type. It defines the mode for updating a component, as follows:
-
NONEIn this mode, a deployment doesn't occur. Only the requested metadata parameters are updated. You can only specify
descriptionin this mode. -
CURRENT_VERSIONIn this mode, the component is deployed and updated with the new
serviceSpec,templateSource, and/ortypethat you provide. Only requested parameters are updated.
-
- See Also:
ComponentDeploymentUpdateType
-
-
description
public final String description()
An optional customer-provided description of the component.
- Returns:
- An optional customer-provided description of the component.
-
name
public final String name()
The name of the component to update.
- Returns:
- The name of the component to update.
-
serviceInstanceName
public final String serviceInstanceName()
The name of the service instance that you want to attach this component to. Don't specify to keep the component's current service instance attachment. Specify an empty string to detach the component from the service instance it's attached to. Specify non-empty values for both
serviceInstanceNameandserviceNameor for neither of them.- Returns:
- The name of the service instance that you want to attach this component to. Don't specify to keep the
component's current service instance attachment. Specify an empty string to detach the component from the
service instance it's attached to. Specify non-empty values for both
serviceInstanceNameandserviceNameor for neither of them.
-
serviceName
public final String serviceName()
The name of the service that
serviceInstanceNameis associated with. Don't specify to keep the component's current service instance attachment. Specify an empty string to detach the component from the service instance it's attached to. Specify non-empty values for bothserviceInstanceNameandserviceNameor for neither of them.- Returns:
- The name of the service that
serviceInstanceNameis associated with. Don't specify to keep the component's current service instance attachment. Specify an empty string to detach the component from the service instance it's attached to. Specify non-empty values for bothserviceInstanceNameandserviceNameor for neither of them.
-
serviceSpec
public final String serviceSpec()
The service spec that you want the component to use to access service inputs. Set this only when the component is attached to a service instance.
- Returns:
- The service spec that you want the component to use to access service inputs. Set this only when the component is attached to a service instance.
-
templateFile
public final String templateFile()
A path to the Infrastructure as Code (IaC) file describing infrastructure that a custom component provisions.
Components support a single IaC file, even if you use Terraform as your template language.
- Returns:
- A path to the Infrastructure as Code (IaC) file describing infrastructure that a custom component
provisions.
Components support a single IaC file, even if you use Terraform as your template language.
-
toBuilder
public UpdateComponentRequest.Builder toBuilder()
- Specified by:
toBuilderin interfaceToCopyableBuilder<UpdateComponentRequest.Builder,UpdateComponentRequest>- Specified by:
toBuilderin classProtonRequest
-
builder
public static UpdateComponentRequest.Builder builder()
-
serializableBuilderClass
public static Class<? extends UpdateComponentRequest.Builder> serializableBuilderClass()
-
hashCode
public final int hashCode()
- Overrides:
hashCodein classAwsRequest
-
equals
public final boolean equals(Object obj)
- Overrides:
equalsin classAwsRequest
-
equalsBySdkFields
public final boolean equalsBySdkFields(Object obj)
- Specified by:
equalsBySdkFieldsin interfaceSdkPojo
-
toString
public final String toString()
Returns a string representation of this object. This is useful for testing and debugging. Sensitive data will be redacted from this string using a placeholder value.
-
getValueForField
public final <T> Optional<T> getValueForField(String fieldName, Class<T> clazz)
- Overrides:
getValueForFieldin classSdkRequest
-
-