/** * 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 GetComponentPolicyResult { public: AWS_IMAGEBUILDER_API GetComponentPolicyResult(); AWS_IMAGEBUILDER_API GetComponentPolicyResult(const Aws::AmazonWebServiceResult& result); AWS_IMAGEBUILDER_API GetComponentPolicyResult& 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 GetComponentPolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} /** *

The request ID that uniquely identifies this request.

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

The request ID that uniquely identifies this request.

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

The component policy.

*/ inline const Aws::String& GetPolicy() const{ return m_policy; } /** *

The component policy.

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

The component policy.

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

The component policy.

*/ inline void SetPolicy(const char* value) { m_policy.assign(value); } /** *

The component policy.

*/ inline GetComponentPolicyResult& WithPolicy(const Aws::String& value) { SetPolicy(value); return *this;} /** *

The component policy.

*/ inline GetComponentPolicyResult& WithPolicy(Aws::String&& value) { SetPolicy(std::move(value)); return *this;} /** *

The component policy.

*/ inline GetComponentPolicyResult& WithPolicy(const char* value) { SetPolicy(value); return *this;} private: Aws::String m_requestId; Aws::String m_policy; }; } // namespace Model } // namespace imagebuilder } // namespace Aws