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
overrideConfiguration
Methods inherited from interface software.amazon.awssdk.utils.builder.CopyableBuilder
copy
Methods inherited from interface software.amazon.awssdk.services.opsworkscm.model.OpsWorksCmRequest.Builder
build
Methods inherited from interface software.amazon.awssdk.utils.builder.SdkBuilder
applyMutation, build
Methods inherited from interface software.amazon.awssdk.core.SdkPojo
equalsBySdkFields, 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 aStartMaintenance
request and set the value totrue
to 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 aStartMaintenance
request and set the value totrue
to 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 aStartMaintenance
request and set the value totrue
to 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 aStartMaintenance
request and set the value totrue
to 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 aStartMaintenance
request and set the value totrue
to upgrade the server to Chef Automate 2. For more information, see Upgrade an AWS OpsWorks for Chef Automate Server to Chef Automate 2.
EngineAttribute.Builder
avoiding the need to create one manually viaEngineAttribute.builder()
.When the
Consumer
completes,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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in 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.Builder
Add an optional request override configuration.- Specified by:
overrideConfiguration
in interfaceAwsRequest.Builder
- Parameters:
builderConsumer
- AConsumer
to which an emptyAwsRequestOverrideConfiguration.Builder
will be given.- Returns:
- This object for method chaining.
-