/** * 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 imagebuilder { namespace Model { class PutComponentPolicyResult { public: AWS_IMAGEBUILDER_API PutComponentPolicyResult(); AWS_IMAGEBUILDER_API PutComponentPolicyResult(const Aws::AmazonWebServiceResult& result); AWS_IMAGEBUILDER_API PutComponentPolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The request ID that uniquely identifies this request.

*/ inline const Aws::String& GetRequestId() const{ return m_requestId; } /** *

The request ID that uniquely identifies this request.

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

The request ID that uniquely identifies this request.

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

The request ID that uniquely identifies this request.

*/ inline void SetRequestId(const char* value) { m_requestId.assign(value); } /** *

The request ID that uniquely identifies this request.

*/ inline PutComponentPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} /** *

The request ID that uniquely identifies this request.

*/ inline PutComponentPolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} /** *

The request ID that uniquely identifies this request.

*/ inline PutComponentPolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} /** *

The Amazon Resource Name (ARN) of the component that this policy was applied * to.

*/ inline const Aws::String& GetComponentArn() const{ return m_componentArn; } /** *

The Amazon Resource Name (ARN) of the component that this policy was applied * to.

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

The Amazon Resource Name (ARN) of the component that this policy was applied * to.

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

The Amazon Resource Name (ARN) of the component that this policy was applied * to.

*/ inline void SetComponentArn(const char* value) { m_componentArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the component that this policy was applied * to.

*/ inline PutComponentPolicyResult& WithComponentArn(const Aws::String& value) { SetComponentArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the component that this policy was applied * to.

*/ inline PutComponentPolicyResult& WithComponentArn(Aws::String&& value) { SetComponentArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the component that this policy was applied * to.

*/ inline PutComponentPolicyResult& WithComponentArn(const char* value) { SetComponentArn(value); return *this;} private: Aws::String m_requestId; Aws::String m_componentArn; }; } // namespace Model } // namespace imagebuilder } // namespace Aws