/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace CloudHSMV2 { namespace Model { /** */ class ModifyClusterRequest : public CloudHSMV2Request { public: AWS_CLOUDHSMV2_API ModifyClusterRequest(); // 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 "ModifyCluster"; } AWS_CLOUDHSMV2_API Aws::String SerializePayload() const override; AWS_CLOUDHSMV2_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

A policy that defines how the service retains backups.

*/ inline const BackupRetentionPolicy& GetBackupRetentionPolicy() const{ return m_backupRetentionPolicy; } /** *

A policy that defines how the service retains backups.

*/ inline bool BackupRetentionPolicyHasBeenSet() const { return m_backupRetentionPolicyHasBeenSet; } /** *

A policy that defines how the service retains backups.

*/ inline void SetBackupRetentionPolicy(const BackupRetentionPolicy& value) { m_backupRetentionPolicyHasBeenSet = true; m_backupRetentionPolicy = value; } /** *

A policy that defines how the service retains backups.

*/ inline void SetBackupRetentionPolicy(BackupRetentionPolicy&& value) { m_backupRetentionPolicyHasBeenSet = true; m_backupRetentionPolicy = std::move(value); } /** *

A policy that defines how the service retains backups.

*/ inline ModifyClusterRequest& WithBackupRetentionPolicy(const BackupRetentionPolicy& value) { SetBackupRetentionPolicy(value); return *this;} /** *

A policy that defines how the service retains backups.

*/ inline ModifyClusterRequest& WithBackupRetentionPolicy(BackupRetentionPolicy&& value) { SetBackupRetentionPolicy(std::move(value)); return *this;} /** *

The identifier (ID) of the cluster that you want to modify. To find the * cluster ID, use DescribeClusters.

*/ inline const Aws::String& GetClusterId() const{ return m_clusterId; } /** *

The identifier (ID) of the cluster that you want to modify. To find the * cluster ID, use DescribeClusters.

*/ inline bool ClusterIdHasBeenSet() const { return m_clusterIdHasBeenSet; } /** *

The identifier (ID) of the cluster that you want to modify. To find the * cluster ID, use DescribeClusters.

*/ inline void SetClusterId(const Aws::String& value) { m_clusterIdHasBeenSet = true; m_clusterId = value; } /** *

The identifier (ID) of the cluster that you want to modify. To find the * cluster ID, use DescribeClusters.

*/ inline void SetClusterId(Aws::String&& value) { m_clusterIdHasBeenSet = true; m_clusterId = std::move(value); } /** *

The identifier (ID) of the cluster that you want to modify. To find the * cluster ID, use DescribeClusters.

*/ inline void SetClusterId(const char* value) { m_clusterIdHasBeenSet = true; m_clusterId.assign(value); } /** *

The identifier (ID) of the cluster that you want to modify. To find the * cluster ID, use DescribeClusters.

*/ inline ModifyClusterRequest& WithClusterId(const Aws::String& value) { SetClusterId(value); return *this;} /** *

The identifier (ID) of the cluster that you want to modify. To find the * cluster ID, use DescribeClusters.

*/ inline ModifyClusterRequest& WithClusterId(Aws::String&& value) { SetClusterId(std::move(value)); return *this;} /** *

The identifier (ID) of the cluster that you want to modify. To find the * cluster ID, use DescribeClusters.

*/ inline ModifyClusterRequest& WithClusterId(const char* value) { SetClusterId(value); return *this;} private: BackupRetentionPolicy m_backupRetentionPolicy; bool m_backupRetentionPolicyHasBeenSet = false; Aws::String m_clusterId; bool m_clusterIdHasBeenSet = false; }; } // namespace Model } // namespace CloudHSMV2 } // namespace Aws