197 lines
5.3 KiB
C++
197 lines
5.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/iot/IoT_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 IoT
|
|
{
|
|
namespace Model
|
|
{
|
|
/**
|
|
* <p>The output from the CreatePolicy operation.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/iot-2015-05-28/CreatePolicyResponse">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_IOT_API CreatePolicyResult
|
|
{
|
|
public:
|
|
CreatePolicyResult();
|
|
CreatePolicyResult(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
CreatePolicyResult& operator=(const Aws::AmazonWebServiceResult<Aws::Utils::Json::JsonValue>& result);
|
|
|
|
|
|
/**
|
|
* <p>The policy name.</p>
|
|
*/
|
|
inline const Aws::String& GetPolicyName() const{ return m_policyName; }
|
|
|
|
/**
|
|
* <p>The policy name.</p>
|
|
*/
|
|
inline void SetPolicyName(const Aws::String& value) { m_policyName = value; }
|
|
|
|
/**
|
|
* <p>The policy name.</p>
|
|
*/
|
|
inline void SetPolicyName(Aws::String&& value) { m_policyName = std::move(value); }
|
|
|
|
/**
|
|
* <p>The policy name.</p>
|
|
*/
|
|
inline void SetPolicyName(const char* value) { m_policyName.assign(value); }
|
|
|
|
/**
|
|
* <p>The policy name.</p>
|
|
*/
|
|
inline CreatePolicyResult& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
|
|
|
|
/**
|
|
* <p>The policy name.</p>
|
|
*/
|
|
inline CreatePolicyResult& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The policy name.</p>
|
|
*/
|
|
inline CreatePolicyResult& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The policy ARN.</p>
|
|
*/
|
|
inline const Aws::String& GetPolicyArn() const{ return m_policyArn; }
|
|
|
|
/**
|
|
* <p>The policy ARN.</p>
|
|
*/
|
|
inline void SetPolicyArn(const Aws::String& value) { m_policyArn = value; }
|
|
|
|
/**
|
|
* <p>The policy ARN.</p>
|
|
*/
|
|
inline void SetPolicyArn(Aws::String&& value) { m_policyArn = std::move(value); }
|
|
|
|
/**
|
|
* <p>The policy ARN.</p>
|
|
*/
|
|
inline void SetPolicyArn(const char* value) { m_policyArn.assign(value); }
|
|
|
|
/**
|
|
* <p>The policy ARN.</p>
|
|
*/
|
|
inline CreatePolicyResult& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;}
|
|
|
|
/**
|
|
* <p>The policy ARN.</p>
|
|
*/
|
|
inline CreatePolicyResult& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The policy ARN.</p>
|
|
*/
|
|
inline CreatePolicyResult& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The JSON document that describes the policy.</p>
|
|
*/
|
|
inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
|
|
|
|
/**
|
|
* <p>The JSON document that describes the policy.</p>
|
|
*/
|
|
inline void SetPolicyDocument(const Aws::String& value) { m_policyDocument = value; }
|
|
|
|
/**
|
|
* <p>The JSON document that describes the policy.</p>
|
|
*/
|
|
inline void SetPolicyDocument(Aws::String&& value) { m_policyDocument = std::move(value); }
|
|
|
|
/**
|
|
* <p>The JSON document that describes the policy.</p>
|
|
*/
|
|
inline void SetPolicyDocument(const char* value) { m_policyDocument.assign(value); }
|
|
|
|
/**
|
|
* <p>The JSON document that describes the policy.</p>
|
|
*/
|
|
inline CreatePolicyResult& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
|
|
|
|
/**
|
|
* <p>The JSON document that describes the policy.</p>
|
|
*/
|
|
inline CreatePolicyResult& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The JSON document that describes the policy.</p>
|
|
*/
|
|
inline CreatePolicyResult& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The policy version ID.</p>
|
|
*/
|
|
inline const Aws::String& GetPolicyVersionId() const{ return m_policyVersionId; }
|
|
|
|
/**
|
|
* <p>The policy version ID.</p>
|
|
*/
|
|
inline void SetPolicyVersionId(const Aws::String& value) { m_policyVersionId = value; }
|
|
|
|
/**
|
|
* <p>The policy version ID.</p>
|
|
*/
|
|
inline void SetPolicyVersionId(Aws::String&& value) { m_policyVersionId = std::move(value); }
|
|
|
|
/**
|
|
* <p>The policy version ID.</p>
|
|
*/
|
|
inline void SetPolicyVersionId(const char* value) { m_policyVersionId.assign(value); }
|
|
|
|
/**
|
|
* <p>The policy version ID.</p>
|
|
*/
|
|
inline CreatePolicyResult& WithPolicyVersionId(const Aws::String& value) { SetPolicyVersionId(value); return *this;}
|
|
|
|
/**
|
|
* <p>The policy version ID.</p>
|
|
*/
|
|
inline CreatePolicyResult& WithPolicyVersionId(Aws::String&& value) { SetPolicyVersionId(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The policy version ID.</p>
|
|
*/
|
|
inline CreatePolicyResult& WithPolicyVersionId(const char* value) { SetPolicyVersionId(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_policyName;
|
|
|
|
Aws::String m_policyArn;
|
|
|
|
Aws::String m_policyDocument;
|
|
|
|
Aws::String m_policyVersionId;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace IoT
|
|
} // namespace Aws
|