84 lines
3.1 KiB
C
84 lines
3.1 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/ssm/SSM_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|||
|
|
#include <utility>
|
|||
|
|
|
|||
|
|
namespace Aws
|
|||
|
|
{
|
|||
|
|
template<typename RESULT_TYPE>
|
|||
|
|
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<Aws::Utils::Json::JsonValue>& result);
|
|||
|
|
AWS_SSM_API PutResourcePolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|||
|
|
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>The policy ID. To update a policy, you must specify <code>PolicyId</code> and
|
|||
|
|
* <code>PolicyHash</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetPolicyId() const{ return m_policyId; }
|
|||
|
|
inline void SetPolicyId(const Aws::String& value) { m_policyId = value; }
|
|||
|
|
inline void SetPolicyId(Aws::String&& value) { m_policyId = std::move(value); }
|
|||
|
|
inline void SetPolicyId(const char* value) { m_policyId.assign(value); }
|
|||
|
|
inline PutResourcePolicyResult& WithPolicyId(const Aws::String& value) { SetPolicyId(value); return *this;}
|
|||
|
|
inline PutResourcePolicyResult& WithPolicyId(Aws::String&& value) { SetPolicyId(std::move(value)); return *this;}
|
|||
|
|
inline PutResourcePolicyResult& WithPolicyId(const char* value) { SetPolicyId(value); return *this;}
|
|||
|
|
///@}
|
|||
|
|
|
|||
|
|
///@{
|
|||
|
|
/**
|
|||
|
|
* <p>ID of the current policy version.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetPolicyHash() const{ return m_policyHash; }
|
|||
|
|
inline void SetPolicyHash(const Aws::String& value) { m_policyHash = value; }
|
|||
|
|
inline void SetPolicyHash(Aws::String&& value) { m_policyHash = std::move(value); }
|
|||
|
|
inline void SetPolicyHash(const char* value) { m_policyHash.assign(value); }
|
|||
|
|
inline PutResourcePolicyResult& WithPolicyHash(const Aws::String& value) { SetPolicyHash(value); return *this;}
|
|||
|
|
inline PutResourcePolicyResult& WithPolicyHash(Aws::String&& value) { SetPolicyHash(std::move(value)); return *this;}
|
|||
|
|
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
|