/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace MainframeModernization { namespace Model { /** */ class UpdateEnvironmentRequest : public MainframeModernizationRequest { public: AWS_MAINFRAMEMODERNIZATION_API UpdateEnvironmentRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateEnvironment"; } AWS_MAINFRAMEMODERNIZATION_API Aws::String SerializePayload() const override; /** *

Indicates whether to update the runtime environment during the maintenance * window. The default is false. Currently, Amazon Web Services Mainframe * Modernization accepts the engineVersion parameter only if * applyDuringMaintenanceWindow is true. If any parameter other than * engineVersion is provided in UpdateEnvironmentRequest, * it will fail if applyDuringMaintenanceWindow is set to true.

*/ inline bool GetApplyDuringMaintenanceWindow() const{ return m_applyDuringMaintenanceWindow; } /** *

Indicates whether to update the runtime environment during the maintenance * window. The default is false. Currently, Amazon Web Services Mainframe * Modernization accepts the engineVersion parameter only if * applyDuringMaintenanceWindow is true. If any parameter other than * engineVersion is provided in UpdateEnvironmentRequest, * it will fail if applyDuringMaintenanceWindow is set to true.

*/ inline bool ApplyDuringMaintenanceWindowHasBeenSet() const { return m_applyDuringMaintenanceWindowHasBeenSet; } /** *

Indicates whether to update the runtime environment during the maintenance * window. The default is false. Currently, Amazon Web Services Mainframe * Modernization accepts the engineVersion parameter only if * applyDuringMaintenanceWindow is true. If any parameter other than * engineVersion is provided in UpdateEnvironmentRequest, * it will fail if applyDuringMaintenanceWindow is set to true.

*/ inline void SetApplyDuringMaintenanceWindow(bool value) { m_applyDuringMaintenanceWindowHasBeenSet = true; m_applyDuringMaintenanceWindow = value; } /** *

Indicates whether to update the runtime environment during the maintenance * window. The default is false. Currently, Amazon Web Services Mainframe * Modernization accepts the engineVersion parameter only if * applyDuringMaintenanceWindow is true. If any parameter other than * engineVersion is provided in UpdateEnvironmentRequest, * it will fail if applyDuringMaintenanceWindow is set to true.

*/ inline UpdateEnvironmentRequest& WithApplyDuringMaintenanceWindow(bool value) { SetApplyDuringMaintenanceWindow(value); return *this;} /** *

The desired capacity for the runtime environment to update. The minimum * possible value is 0 and the maximum is 100.

*/ inline int GetDesiredCapacity() const{ return m_desiredCapacity; } /** *

The desired capacity for the runtime environment to update. The minimum * possible value is 0 and the maximum is 100.

*/ inline bool DesiredCapacityHasBeenSet() const { return m_desiredCapacityHasBeenSet; } /** *

The desired capacity for the runtime environment to update. The minimum * possible value is 0 and the maximum is 100.

*/ inline void SetDesiredCapacity(int value) { m_desiredCapacityHasBeenSet = true; m_desiredCapacity = value; } /** *

The desired capacity for the runtime environment to update. The minimum * possible value is 0 and the maximum is 100.

*/ inline UpdateEnvironmentRequest& WithDesiredCapacity(int value) { SetDesiredCapacity(value); return *this;} /** *

The version of the runtime engine for the runtime environment.

*/ inline const Aws::String& GetEngineVersion() const{ return m_engineVersion; } /** *

The version of the runtime engine for the runtime environment.

*/ inline bool EngineVersionHasBeenSet() const { return m_engineVersionHasBeenSet; } /** *

The version of the runtime engine for the runtime environment.

*/ inline void SetEngineVersion(const Aws::String& value) { m_engineVersionHasBeenSet = true; m_engineVersion = value; } /** *

The version of the runtime engine for the runtime environment.

*/ inline void SetEngineVersion(Aws::String&& value) { m_engineVersionHasBeenSet = true; m_engineVersion = std::move(value); } /** *

The version of the runtime engine for the runtime environment.

*/ inline void SetEngineVersion(const char* value) { m_engineVersionHasBeenSet = true; m_engineVersion.assign(value); } /** *

The version of the runtime engine for the runtime environment.

*/ inline UpdateEnvironmentRequest& WithEngineVersion(const Aws::String& value) { SetEngineVersion(value); return *this;} /** *

The version of the runtime engine for the runtime environment.

*/ inline UpdateEnvironmentRequest& WithEngineVersion(Aws::String&& value) { SetEngineVersion(std::move(value)); return *this;} /** *

The version of the runtime engine for the runtime environment.

*/ inline UpdateEnvironmentRequest& WithEngineVersion(const char* value) { SetEngineVersion(value); return *this;} /** *

The unique identifier of the runtime environment that you want to update.

*/ inline const Aws::String& GetEnvironmentId() const{ return m_environmentId; } /** *

The unique identifier of the runtime environment that you want to update.

*/ inline bool EnvironmentIdHasBeenSet() const { return m_environmentIdHasBeenSet; } /** *

The unique identifier of the runtime environment that you want to update.

*/ inline void SetEnvironmentId(const Aws::String& value) { m_environmentIdHasBeenSet = true; m_environmentId = value; } /** *

The unique identifier of the runtime environment that you want to update.

*/ inline void SetEnvironmentId(Aws::String&& value) { m_environmentIdHasBeenSet = true; m_environmentId = std::move(value); } /** *

The unique identifier of the runtime environment that you want to update.

*/ inline void SetEnvironmentId(const char* value) { m_environmentIdHasBeenSet = true; m_environmentId.assign(value); } /** *

The unique identifier of the runtime environment that you want to update.

*/ inline UpdateEnvironmentRequest& WithEnvironmentId(const Aws::String& value) { SetEnvironmentId(value); return *this;} /** *

The unique identifier of the runtime environment that you want to update.

*/ inline UpdateEnvironmentRequest& WithEnvironmentId(Aws::String&& value) { SetEnvironmentId(std::move(value)); return *this;} /** *

The unique identifier of the runtime environment that you want to update.

*/ inline UpdateEnvironmentRequest& WithEnvironmentId(const char* value) { SetEnvironmentId(value); return *this;} /** *

The instance type for the runtime environment to update.

*/ inline const Aws::String& GetInstanceType() const{ return m_instanceType; } /** *

The instance type for the runtime environment to update.

*/ inline bool InstanceTypeHasBeenSet() const { return m_instanceTypeHasBeenSet; } /** *

The instance type for the runtime environment to update.

*/ inline void SetInstanceType(const Aws::String& value) { m_instanceTypeHasBeenSet = true; m_instanceType = value; } /** *

The instance type for the runtime environment to update.

*/ inline void SetInstanceType(Aws::String&& value) { m_instanceTypeHasBeenSet = true; m_instanceType = std::move(value); } /** *

The instance type for the runtime environment to update.

*/ inline void SetInstanceType(const char* value) { m_instanceTypeHasBeenSet = true; m_instanceType.assign(value); } /** *

The instance type for the runtime environment to update.

*/ inline UpdateEnvironmentRequest& WithInstanceType(const Aws::String& value) { SetInstanceType(value); return *this;} /** *

The instance type for the runtime environment to update.

*/ inline UpdateEnvironmentRequest& WithInstanceType(Aws::String&& value) { SetInstanceType(std::move(value)); return *this;} /** *

The instance type for the runtime environment to update.

*/ inline UpdateEnvironmentRequest& WithInstanceType(const char* value) { SetInstanceType(value); return *this;} /** *

Configures the maintenance window you want for the runtime environment. If * you do not provide a value, a random system-generated value will be * assigned.

*/ inline const Aws::String& GetPreferredMaintenanceWindow() const{ return m_preferredMaintenanceWindow; } /** *

Configures the maintenance window you want for the runtime environment. If * you do not provide a value, a random system-generated value will be * assigned.

*/ inline bool PreferredMaintenanceWindowHasBeenSet() const { return m_preferredMaintenanceWindowHasBeenSet; } /** *

Configures the maintenance window you want for the runtime environment. If * you do not provide a value, a random system-generated value will be * assigned.

*/ inline void SetPreferredMaintenanceWindow(const Aws::String& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = value; } /** *

Configures the maintenance window you want for the runtime environment. If * you do not provide a value, a random system-generated value will be * assigned.

*/ inline void SetPreferredMaintenanceWindow(Aws::String&& value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow = std::move(value); } /** *

Configures the maintenance window you want for the runtime environment. If * you do not provide a value, a random system-generated value will be * assigned.

*/ inline void SetPreferredMaintenanceWindow(const char* value) { m_preferredMaintenanceWindowHasBeenSet = true; m_preferredMaintenanceWindow.assign(value); } /** *

Configures the maintenance window you want for the runtime environment. If * you do not provide a value, a random system-generated value will be * assigned.

*/ inline UpdateEnvironmentRequest& WithPreferredMaintenanceWindow(const Aws::String& value) { SetPreferredMaintenanceWindow(value); return *this;} /** *

Configures the maintenance window you want for the runtime environment. If * you do not provide a value, a random system-generated value will be * assigned.

*/ inline UpdateEnvironmentRequest& WithPreferredMaintenanceWindow(Aws::String&& value) { SetPreferredMaintenanceWindow(std::move(value)); return *this;} /** *

Configures the maintenance window you want for the runtime environment. If * you do not provide a value, a random system-generated value will be * assigned.

*/ inline UpdateEnvironmentRequest& WithPreferredMaintenanceWindow(const char* value) { SetPreferredMaintenanceWindow(value); return *this;} private: bool m_applyDuringMaintenanceWindow; bool m_applyDuringMaintenanceWindowHasBeenSet = false; int m_desiredCapacity; bool m_desiredCapacityHasBeenSet = false; Aws::String m_engineVersion; bool m_engineVersionHasBeenSet = false; Aws::String m_environmentId; bool m_environmentIdHasBeenSet = false; Aws::String m_instanceType; bool m_instanceTypeHasBeenSet = false; Aws::String m_preferredMaintenanceWindow; bool m_preferredMaintenanceWindowHasBeenSet = false; }; } // namespace Model } // namespace MainframeModernization } // namespace Aws