Interface StartMaintenanceRequest.Builder
- All Superinterfaces:
AwsRequest.Builder,Buildable,CopyableBuilder<StartMaintenanceRequest.Builder,,StartMaintenanceRequest> OpsWorksCmRequest.Builder,SdkBuilder<StartMaintenanceRequest.Builder,,StartMaintenanceRequest> SdkPojo,SdkRequest.Builder
- Enclosing class:
StartMaintenanceRequest
-
Method Summary
Modifier and TypeMethodDescriptionengineAttributes(Collection<EngineAttribute> engineAttributes) Engine attributes that are specific to the server on which you want to run maintenance.engineAttributes(Consumer<EngineAttribute.Builder>... engineAttributes) Engine attributes that are specific to the server on which you want to run maintenance.engineAttributes(EngineAttribute... engineAttributes) Engine attributes that are specific to the server on which you want to run maintenance.overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Add an optional request override configuration.overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Add an optional request override configuration.serverName(String serverName) The name of the server on which to run maintenance.Methods inherited from interface software.amazon.awssdk.awscore.AwsRequest.Builder
overrideConfigurationMethods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copyMethods inherited from interface software.amazon.awssdk.services.opsworkscm.model.OpsWorksCmRequest.Builder
buildMethods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, buildMethods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, sdkFieldNameToField, sdkFields
-
Method Details
-
serverName
The name of the server on which to run maintenance.
- Parameters:
serverName- The name of the server on which to run maintenance.- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
engineAttributes
Engine attributes that are specific to the server on which you want to run maintenance.
Attributes accepted in a StartMaintenance request for Chef
-
CHEF_MAJOR_UPGRADE: If a Chef Automate server is eligible for upgrade to Chef Automate 2, add this engine attribute to aStartMaintenancerequest and set the value totrueto upgrade the server to Chef Automate 2. For more information, see Upgrade an AWS OpsWorks for Chef Automate Server to Chef Automate 2.
- Parameters:
engineAttributes- Engine attributes that are specific to the server on which you want to run maintenance.Attributes accepted in a StartMaintenance request for Chef
-
CHEF_MAJOR_UPGRADE: If a Chef Automate server is eligible for upgrade to Chef Automate 2, add this engine attribute to aStartMaintenancerequest and set the value totrueto upgrade the server to Chef Automate 2. For more information, see Upgrade an AWS OpsWorks for Chef Automate Server to Chef Automate 2.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
engineAttributes
Engine attributes that are specific to the server on which you want to run maintenance.
Attributes accepted in a StartMaintenance request for Chef
-
CHEF_MAJOR_UPGRADE: If a Chef Automate server is eligible for upgrade to Chef Automate 2, add this engine attribute to aStartMaintenancerequest and set the value totrueto upgrade the server to Chef Automate 2. For more information, see Upgrade an AWS OpsWorks for Chef Automate Server to Chef Automate 2.
- Parameters:
engineAttributes- Engine attributes that are specific to the server on which you want to run maintenance.Attributes accepted in a StartMaintenance request for Chef
-
CHEF_MAJOR_UPGRADE: If a Chef Automate server is eligible for upgrade to Chef Automate 2, add this engine attribute to aStartMaintenancerequest and set the value totrueto upgrade the server to Chef Automate 2. For more information, see Upgrade an AWS OpsWorks for Chef Automate Server to Chef Automate 2.
-
- Returns:
- Returns a reference to this object so that method calls can be chained together.
-
-
engineAttributes
StartMaintenanceRequest.Builder engineAttributes(Consumer<EngineAttribute.Builder>... engineAttributes) Engine attributes that are specific to the server on which you want to run maintenance.
Attributes accepted in a StartMaintenance request for Chef
-
CHEF_MAJOR_UPGRADE: If a Chef Automate server is eligible for upgrade to Chef Automate 2, add this engine attribute to aStartMaintenancerequest and set the value totrueto upgrade the server to Chef Automate 2. For more information, see Upgrade an AWS OpsWorks for Chef Automate Server to Chef Automate 2.
EngineAttribute.Builderavoiding the need to create one manually viaEngineAttribute.builder().When the
Consumercompletes,SdkBuilder.build()is called immediately and its result is passed toengineAttributes(List<EngineAttribute>).- Parameters:
engineAttributes- a consumer that will call methods onEngineAttribute.Builder- Returns:
- Returns a reference to this object so that method calls can be chained together.
- See Also:
-
-
overrideConfiguration
StartMaintenanceRequest.Builder overrideConfiguration(AwsRequestOverrideConfiguration overrideConfiguration) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
overrideConfiguration- The override configuration.- Returns:
- This object for method chaining.
-
overrideConfiguration
StartMaintenanceRequest.Builder overrideConfiguration(Consumer<AwsRequestOverrideConfiguration.Builder> builderConsumer) Description copied from interface:AwsRequest.BuilderAdd an optional request override configuration.- Specified by:
overrideConfigurationin interfaceAwsRequest.Builder- Parameters:
builderConsumer- AConsumerto which an emptyAwsRequestOverrideConfiguration.Builderwill be given.- Returns:
- This object for method chaining.
-