/** * 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 { template class AmazonWebServiceResult; namespace Utils { namespace Json { class JsonValue; } // namespace Json } // namespace Utils namespace CloudHSM { namespace Model { /** *

Contains the output of the DescribeHapg action.

See * Also:

AWS * API Reference

*/ class AWS_CLOUDHSM_API DescribeHapgResult { public: DescribeHapgResult(); DescribeHapgResult(const Aws::AmazonWebServiceResult& result); DescribeHapgResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The ARN of the high-availability partition group.

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

The ARN of the high-availability partition group.

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

The ARN of the high-availability partition group.

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

The ARN of the high-availability partition group.

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

The ARN of the high-availability partition group.

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

The ARN of the high-availability partition group.

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

The ARN of the high-availability partition group.

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

The serial number of the high-availability partition group.

*/ inline const Aws::String& GetHapgSerial() const{ return m_hapgSerial; } /** *

The serial number of the high-availability partition group.

*/ inline void SetHapgSerial(const Aws::String& value) { m_hapgSerial = value; } /** *

The serial number of the high-availability partition group.

*/ inline void SetHapgSerial(Aws::String&& value) { m_hapgSerial = std::move(value); } /** *

The serial number of the high-availability partition group.

*/ inline void SetHapgSerial(const char* value) { m_hapgSerial.assign(value); } /** *

The serial number of the high-availability partition group.

*/ inline DescribeHapgResult& WithHapgSerial(const Aws::String& value) { SetHapgSerial(value); return *this;} /** *

The serial number of the high-availability partition group.

*/ inline DescribeHapgResult& WithHapgSerial(Aws::String&& value) { SetHapgSerial(std::move(value)); return *this;} /** *

The serial number of the high-availability partition group.

*/ inline DescribeHapgResult& WithHapgSerial(const char* value) { SetHapgSerial(value); return *this;} /** *

*/ inline const Aws::Vector& GetHsmsLastActionFailed() const{ return m_hsmsLastActionFailed; } /** *

*/ inline void SetHsmsLastActionFailed(const Aws::Vector& value) { m_hsmsLastActionFailed = value; } /** *

*/ inline void SetHsmsLastActionFailed(Aws::Vector&& value) { m_hsmsLastActionFailed = std::move(value); } /** *

*/ inline DescribeHapgResult& WithHsmsLastActionFailed(const Aws::Vector& value) { SetHsmsLastActionFailed(value); return *this;} /** *

*/ inline DescribeHapgResult& WithHsmsLastActionFailed(Aws::Vector&& value) { SetHsmsLastActionFailed(std::move(value)); return *this;} /** *

*/ inline DescribeHapgResult& AddHsmsLastActionFailed(const Aws::String& value) { m_hsmsLastActionFailed.push_back(value); return *this; } /** *

*/ inline DescribeHapgResult& AddHsmsLastActionFailed(Aws::String&& value) { m_hsmsLastActionFailed.push_back(std::move(value)); return *this; } /** *

*/ inline DescribeHapgResult& AddHsmsLastActionFailed(const char* value) { m_hsmsLastActionFailed.push_back(value); return *this; } /** *

*/ inline const Aws::Vector& GetHsmsPendingDeletion() const{ return m_hsmsPendingDeletion; } /** *

*/ inline void SetHsmsPendingDeletion(const Aws::Vector& value) { m_hsmsPendingDeletion = value; } /** *

*/ inline void SetHsmsPendingDeletion(Aws::Vector&& value) { m_hsmsPendingDeletion = std::move(value); } /** *

*/ inline DescribeHapgResult& WithHsmsPendingDeletion(const Aws::Vector& value) { SetHsmsPendingDeletion(value); return *this;} /** *

*/ inline DescribeHapgResult& WithHsmsPendingDeletion(Aws::Vector&& value) { SetHsmsPendingDeletion(std::move(value)); return *this;} /** *

*/ inline DescribeHapgResult& AddHsmsPendingDeletion(const Aws::String& value) { m_hsmsPendingDeletion.push_back(value); return *this; } /** *

*/ inline DescribeHapgResult& AddHsmsPendingDeletion(Aws::String&& value) { m_hsmsPendingDeletion.push_back(std::move(value)); return *this; } /** *

*/ inline DescribeHapgResult& AddHsmsPendingDeletion(const char* value) { m_hsmsPendingDeletion.push_back(value); return *this; } /** *

*/ inline const Aws::Vector& GetHsmsPendingRegistration() const{ return m_hsmsPendingRegistration; } /** *

*/ inline void SetHsmsPendingRegistration(const Aws::Vector& value) { m_hsmsPendingRegistration = value; } /** *

*/ inline void SetHsmsPendingRegistration(Aws::Vector&& value) { m_hsmsPendingRegistration = std::move(value); } /** *

*/ inline DescribeHapgResult& WithHsmsPendingRegistration(const Aws::Vector& value) { SetHsmsPendingRegistration(value); return *this;} /** *

*/ inline DescribeHapgResult& WithHsmsPendingRegistration(Aws::Vector&& value) { SetHsmsPendingRegistration(std::move(value)); return *this;} /** *

*/ inline DescribeHapgResult& AddHsmsPendingRegistration(const Aws::String& value) { m_hsmsPendingRegistration.push_back(value); return *this; } /** *

*/ inline DescribeHapgResult& AddHsmsPendingRegistration(Aws::String&& value) { m_hsmsPendingRegistration.push_back(std::move(value)); return *this; } /** *

*/ inline DescribeHapgResult& AddHsmsPendingRegistration(const char* value) { m_hsmsPendingRegistration.push_back(value); return *this; } /** *

The label for the high-availability partition group.

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

The label for the high-availability partition group.

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

The label for the high-availability partition group.

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

The label for the high-availability partition group.

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

The label for the high-availability partition group.

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

The label for the high-availability partition group.

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

The label for the high-availability partition group.

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

The date and time the high-availability partition group was last * modified.

*/ inline const Aws::String& GetLastModifiedTimestamp() const{ return m_lastModifiedTimestamp; } /** *

The date and time the high-availability partition group was last * modified.

*/ inline void SetLastModifiedTimestamp(const Aws::String& value) { m_lastModifiedTimestamp = value; } /** *

The date and time the high-availability partition group was last * modified.

*/ inline void SetLastModifiedTimestamp(Aws::String&& value) { m_lastModifiedTimestamp = std::move(value); } /** *

The date and time the high-availability partition group was last * modified.

*/ inline void SetLastModifiedTimestamp(const char* value) { m_lastModifiedTimestamp.assign(value); } /** *

The date and time the high-availability partition group was last * modified.

*/ inline DescribeHapgResult& WithLastModifiedTimestamp(const Aws::String& value) { SetLastModifiedTimestamp(value); return *this;} /** *

The date and time the high-availability partition group was last * modified.

*/ inline DescribeHapgResult& WithLastModifiedTimestamp(Aws::String&& value) { SetLastModifiedTimestamp(std::move(value)); return *this;} /** *

The date and time the high-availability partition group was last * modified.

*/ inline DescribeHapgResult& WithLastModifiedTimestamp(const char* value) { SetLastModifiedTimestamp(value); return *this;} /** *

The list of partition serial numbers that belong to the high-availability * partition group.

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

The list of partition serial numbers that belong to the high-availability * partition group.

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

The list of partition serial numbers that belong to the high-availability * partition group.

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

The list of partition serial numbers that belong to the high-availability * partition group.

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

The list of partition serial numbers that belong to the high-availability * partition group.

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

The list of partition serial numbers that belong to the high-availability * partition group.

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

The list of partition serial numbers that belong to the high-availability * partition group.

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

The list of partition serial numbers that belong to the high-availability * partition group.

*/ inline DescribeHapgResult& AddPartitionSerialList(const char* value) { m_partitionSerialList.push_back(value); return *this; } /** *

The state of the high-availability partition group.

*/ inline const CloudHsmObjectState& GetState() const{ return m_state; } /** *

The state of the high-availability partition group.

*/ inline void SetState(const CloudHsmObjectState& value) { m_state = value; } /** *

The state of the high-availability partition group.

*/ inline void SetState(CloudHsmObjectState&& value) { m_state = std::move(value); } /** *

The state of the high-availability partition group.

*/ inline DescribeHapgResult& WithState(const CloudHsmObjectState& value) { SetState(value); return *this;} /** *

The state of the high-availability partition group.

*/ inline DescribeHapgResult& WithState(CloudHsmObjectState&& value) { SetState(std::move(value)); return *this;} private: Aws::String m_hapgArn; Aws::String m_hapgSerial; Aws::Vector m_hsmsLastActionFailed; Aws::Vector m_hsmsPendingDeletion; Aws::Vector m_hsmsPendingRegistration; Aws::String m_label; Aws::String m_lastModifiedTimestamp; Aws::Vector m_partitionSerialList; CloudHsmObjectState m_state; }; } // namespace Model } // namespace CloudHSM } // namespace Aws