/** * 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 IoT { namespace Model { /** *

The output from the CreatePolicy operation.

See Also:

AWS * API Reference

*/ class CreatePolicyResult { public: AWS_IOT_API CreatePolicyResult(); AWS_IOT_API CreatePolicyResult(const Aws::AmazonWebServiceResult& result); AWS_IOT_API CreatePolicyResult& operator=(const Aws::AmazonWebServiceResult& result); /** *

The policy name.

*/ inline const Aws::String& GetPolicyName() const{ return m_policyName; } /** *

The policy name.

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

The policy name.

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

The policy name.

*/ inline void SetPolicyName(const char* value) { m_policyName.assign(value); } /** *

The policy name.

*/ inline CreatePolicyResult& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;} /** *

The policy name.

*/ inline CreatePolicyResult& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;} /** *

The policy name.

*/ inline CreatePolicyResult& WithPolicyName(const char* value) { SetPolicyName(value); return *this;} /** *

The policy ARN.

*/ inline const Aws::String& GetPolicyArn() const{ return m_policyArn; } /** *

The policy ARN.

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

The policy ARN.

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

The policy ARN.

*/ inline void SetPolicyArn(const char* value) { m_policyArn.assign(value); } /** *

The policy ARN.

*/ inline CreatePolicyResult& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;} /** *

The policy ARN.

*/ inline CreatePolicyResult& WithPolicyArn(Aws::String&& value) { SetPolicyArn(std::move(value)); return *this;} /** *

The policy ARN.

*/ inline CreatePolicyResult& WithPolicyArn(const char* value) { SetPolicyArn(value); return *this;} /** *

The JSON document that describes the policy.

*/ inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; } /** *

The JSON document that describes the policy.

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

The JSON document that describes the policy.

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

The JSON document that describes the policy.

*/ inline void SetPolicyDocument(const char* value) { m_policyDocument.assign(value); } /** *

The JSON document that describes the policy.

*/ inline CreatePolicyResult& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;} /** *

The JSON document that describes the policy.

*/ inline CreatePolicyResult& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;} /** *

The JSON document that describes the policy.

*/ inline CreatePolicyResult& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;} /** *

The policy version ID.

*/ inline const Aws::String& GetPolicyVersionId() const{ return m_policyVersionId; } /** *

The policy version ID.

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

The policy version ID.

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

The policy version ID.

*/ inline void SetPolicyVersionId(const char* value) { m_policyVersionId.assign(value); } /** *

The policy version ID.

*/ inline CreatePolicyResult& WithPolicyVersionId(const Aws::String& value) { SetPolicyVersionId(value); return *this;} /** *

The policy version ID.

*/ inline CreatePolicyResult& WithPolicyVersionId(Aws::String&& value) { SetPolicyVersionId(std::move(value)); return *this;} /** *

The policy version ID.

*/ inline CreatePolicyResult& WithPolicyVersionId(const char* value) { SetPolicyVersionId(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 CreatePolicyResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline CreatePolicyResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline CreatePolicyResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_policyName; Aws::String m_policyArn; Aws::String m_policyDocument; Aws::String m_policyVersionId; Aws::String m_requestId; }; } // namespace Model } // namespace IoT } // namespace Aws