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

The policy ID. To update a policy, you must specify PolicyId and * PolicyHash.

*/ inline const Aws::String& GetPolicyId() const{ return m_policyId; } /** *

The policy ID. To update a policy, you must specify PolicyId and * PolicyHash.

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

The policy ID. To update a policy, you must specify PolicyId and * PolicyHash.

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

The policy ID. To update a policy, you must specify PolicyId and * PolicyHash.

*/ inline void SetPolicyId(const char* value) { m_policyId.assign(value); } /** *

The policy ID. To update a policy, you must specify PolicyId and * PolicyHash.

*/ inline PutResourcePolicyResult& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;} /** *

The policy ID. To update a policy, you must specify PolicyId and * PolicyHash.

*/ inline PutResourcePolicyResult& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;} /** *

The policy ID. To update a policy, you must specify PolicyId and * PolicyHash.

*/ inline PutResourcePolicyResult& WithPolicyId(const char* value) { SetPolicyId(value); return *this;} /** *

ID of the current policy version.

*/ inline const Aws::String& GetPolicyHash() const{ return m_policyHash; } /** *

ID of the current policy version.

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

ID of the current policy version.

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

ID of the current policy version.

*/ inline void SetPolicyHash(const char* value) { m_policyHash.assign(value); } /** *

ID of the current policy version.

*/ inline PutResourcePolicyResult& WithPolicyHash(const Aws::String& value) { SetPolicyHash(value); return *this;} /** *

ID of the current policy version.

*/ inline PutResourcePolicyResult& WithPolicyHash(Aws::String&& value) { SetPolicyHash(std::move(value)); return *this;} /** *

ID of the current policy version.

*/ inline PutResourcePolicyResult& WithPolicyHash(const char* value) { SetPolicyHash(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 PutResourcePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline PutResourcePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline PutResourcePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_policyId; Aws::String m_policyHash; Aws::String m_requestId; }; } // namespace Model } // namespace SSM } // namespace Aws