/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #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 CreateHsm operation.

See * Also:

AWS * API Reference

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

The ARN of the HSM.

*/ inline const Aws::String& GetHsmArn() const{ return m_hsmArn; } /** *

The ARN of the HSM.

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

The ARN of the HSM.

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

The ARN of the HSM.

*/ inline void SetHsmArn(const char* value) { m_hsmArn.assign(value); } /** *

The ARN of the HSM.

*/ inline CreateHsmResult& WithHsmArn(const Aws::String& value) { SetHsmArn(value); return *this;} /** *

The ARN of the HSM.

*/ inline CreateHsmResult& WithHsmArn(Aws::String&& value) { SetHsmArn(std::move(value)); return *this;} /** *

The ARN of the HSM.

*/ inline CreateHsmResult& WithHsmArn(const char* value) { SetHsmArn(value); return *this;} inline const Aws::String& GetRequestId() const{ return m_requestId; } inline void SetRequestId(const Aws::String& value) { m_requestId = value; } inline void SetRequestId(Aws::String&& value) { m_requestId = std::move(value); } inline void SetRequestId(const char* value) { m_requestId.assign(value); } inline CreateHsmResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreateHsmResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreateHsmResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_hsmArn; Aws::String m_requestId; }; } // namespace Model } // namespace CloudHSM } // namespace Aws