/** * 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 of the CreatePolicyVersion operation.

See Also:

* AWS * API Reference

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

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 CreatePolicyVersionResult& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;} /** *

The policy ARN.

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

The policy ARN.

*/ inline CreatePolicyVersionResult& 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 CreatePolicyVersionResult& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;} /** *

The JSON document that describes the policy.

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

The JSON document that describes the policy.

*/ inline CreatePolicyVersionResult& 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 CreatePolicyVersionResult& WithPolicyVersionId(const Aws::String& value) { SetPolicyVersionId(value); return *this;} /** *

The policy version ID.

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

The policy version ID.

*/ inline CreatePolicyVersionResult& WithPolicyVersionId(const char* value) { SetPolicyVersionId(value); return *this;} /** *

Specifies whether the policy version is the default.

*/ inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; } /** *

Specifies whether the policy version is the default.

*/ inline void SetIsDefaultVersion(bool value) { m_isDefaultVersion = value; } /** *

Specifies whether the policy version is the default.

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