/** * 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 CloudHSM { namespace Model { /** */ class ModifyHapgRequest : public CloudHSMRequest { public: AWS_CLOUDHSM_API ModifyHapgRequest(); // 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 "ModifyHapg"; } AWS_CLOUDHSM_API Aws::String SerializePayload() const override; AWS_CLOUDHSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ARN of the high-availability partition group to modify.

*/ inline const Aws::String& GetHapgArn() const{ return m_hapgArn; } /** *

The ARN of the high-availability partition group to modify.

*/ inline bool HapgArnHasBeenSet() const { return m_hapgArnHasBeenSet; } /** *

The ARN of the high-availability partition group to modify.

*/ inline void SetHapgArn(const Aws::String& value) { m_hapgArnHasBeenSet = true; m_hapgArn = value; } /** *

The ARN of the high-availability partition group to modify.

*/ inline void SetHapgArn(Aws::String&& value) { m_hapgArnHasBeenSet = true; m_hapgArn = std::move(value); } /** *

The ARN of the high-availability partition group to modify.

*/ inline void SetHapgArn(const char* value) { m_hapgArnHasBeenSet = true; m_hapgArn.assign(value); } /** *

The ARN of the high-availability partition group to modify.

*/ inline ModifyHapgRequest& WithHapgArn(const Aws::String& value) { SetHapgArn(value); return *this;} /** *

The ARN of the high-availability partition group to modify.

*/ inline ModifyHapgRequest& WithHapgArn(Aws::String&& value) { SetHapgArn(std::move(value)); return *this;} /** *

The ARN of the high-availability partition group to modify.

*/ inline ModifyHapgRequest& WithHapgArn(const char* value) { SetHapgArn(value); return *this;} /** *

The new label for the high-availability partition group.

*/ inline const Aws::String& GetLabel() const{ return m_label; } /** *

The new label for the high-availability partition group.

*/ inline bool LabelHasBeenSet() const { return m_labelHasBeenSet; } /** *

The new label for the high-availability partition group.

*/ inline void SetLabel(const Aws::String& value) { m_labelHasBeenSet = true; m_label = value; } /** *

The new label for the high-availability partition group.

*/ inline void SetLabel(Aws::String&& value) { m_labelHasBeenSet = true; m_label = std::move(value); } /** *

The new label for the high-availability partition group.

*/ inline void SetLabel(const char* value) { m_labelHasBeenSet = true; m_label.assign(value); } /** *

The new label for the high-availability partition group.

*/ inline ModifyHapgRequest& WithLabel(const Aws::String& value) { SetLabel(value); return *this;} /** *

The new label for the high-availability partition group.

*/ inline ModifyHapgRequest& WithLabel(Aws::String&& value) { SetLabel(std::move(value)); return *this;} /** *

The new label for the high-availability partition group.

*/ inline ModifyHapgRequest& WithLabel(const char* value) { SetLabel(value); return *this;} /** *

The list of partition serial numbers to make members of the high-availability * partition group.

*/ inline const Aws::Vector& GetPartitionSerialList() const{ return m_partitionSerialList; } /** *

The list of partition serial numbers to make members of the high-availability * partition group.

*/ inline bool PartitionSerialListHasBeenSet() const { return m_partitionSerialListHasBeenSet; } /** *

The list of partition serial numbers to make members of the high-availability * partition group.

*/ inline void SetPartitionSerialList(const Aws::Vector& value) { m_partitionSerialListHasBeenSet = true; m_partitionSerialList = value; } /** *

The list of partition serial numbers to make members of the high-availability * partition group.

*/ inline void SetPartitionSerialList(Aws::Vector&& value) { m_partitionSerialListHasBeenSet = true; m_partitionSerialList = std::move(value); } /** *

The list of partition serial numbers to make members of the high-availability * partition group.

*/ inline ModifyHapgRequest& WithPartitionSerialList(const Aws::Vector& value) { SetPartitionSerialList(value); return *this;} /** *

The list of partition serial numbers to make members of the high-availability * partition group.

*/ inline ModifyHapgRequest& WithPartitionSerialList(Aws::Vector&& value) { SetPartitionSerialList(std::move(value)); return *this;} /** *

The list of partition serial numbers to make members of the high-availability * partition group.

*/ inline ModifyHapgRequest& AddPartitionSerialList(const Aws::String& value) { m_partitionSerialListHasBeenSet = true; m_partitionSerialList.push_back(value); return *this; } /** *

The list of partition serial numbers to make members of the high-availability * partition group.

*/ inline ModifyHapgRequest& AddPartitionSerialList(Aws::String&& value) { m_partitionSerialListHasBeenSet = true; m_partitionSerialList.push_back(std::move(value)); return *this; } /** *

The list of partition serial numbers to make members of the high-availability * partition group.

*/ inline ModifyHapgRequest& AddPartitionSerialList(const char* value) { m_partitionSerialListHasBeenSet = true; m_partitionSerialList.push_back(value); return *this; } private: Aws::String m_hapgArn; bool m_hapgArnHasBeenSet = false; Aws::String m_label; bool m_labelHasBeenSet = false; Aws::Vector m_partitionSerialList; bool m_partitionSerialListHasBeenSet = false; }; } // namespace Model } // namespace CloudHSM } // namespace Aws