/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #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 GetPolicyVersion operation.

See Also:

AWS * API Reference

*/ class GetPolicyVersionResult { public: AWS_IOT_API GetPolicyVersionResult(); AWS_IOT_API GetPolicyVersionResult(const Aws::AmazonWebServiceResult& result); AWS_IOT_API GetPolicyVersionResult& 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 GetPolicyVersionResult& WithPolicyArn(const Aws::String& value) { SetPolicyArn(value); return *this;} /** *

The policy ARN.

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

The policy ARN.

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

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 GetPolicyVersionResult& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;} /** *

The policy name.

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

The policy name.

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

The JSON document that describes the policy.

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

The JSON document that describes the policy.

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

The policy version ID.

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

The policy version ID.

*/ inline GetPolicyVersionResult& 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 GetPolicyVersionResult& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;} /** *

The date the policy was created.

*/ inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; } /** *

The date the policy was created.

*/ inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDate = value; } /** *

The date the policy was created.

*/ inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDate = std::move(value); } /** *

The date the policy was created.

*/ inline GetPolicyVersionResult& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;} /** *

The date the policy was created.

*/ inline GetPolicyVersionResult& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;} /** *

The date the policy was last modified.

*/ inline const Aws::Utils::DateTime& GetLastModifiedDate() const{ return m_lastModifiedDate; } /** *

The date the policy was last modified.

*/ inline void SetLastModifiedDate(const Aws::Utils::DateTime& value) { m_lastModifiedDate = value; } /** *

The date the policy was last modified.

*/ inline void SetLastModifiedDate(Aws::Utils::DateTime&& value) { m_lastModifiedDate = std::move(value); } /** *

The date the policy was last modified.

*/ inline GetPolicyVersionResult& WithLastModifiedDate(const Aws::Utils::DateTime& value) { SetLastModifiedDate(value); return *this;} /** *

The date the policy was last modified.

*/ inline GetPolicyVersionResult& WithLastModifiedDate(Aws::Utils::DateTime&& value) { SetLastModifiedDate(std::move(value)); return *this;} /** *

The generation ID of the policy version.

*/ inline const Aws::String& GetGenerationId() const{ return m_generationId; } /** *

The generation ID of the policy version.

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

The generation ID of the policy version.

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

The generation ID of the policy version.

*/ inline void SetGenerationId(const char* value) { m_generationId.assign(value); } /** *

The generation ID of the policy version.

*/ inline GetPolicyVersionResult& WithGenerationId(const Aws::String& value) { SetGenerationId(value); return *this;} /** *

The generation ID of the policy version.

*/ inline GetPolicyVersionResult& WithGenerationId(Aws::String&& value) { SetGenerationId(std::move(value)); return *this;} /** *

The generation ID of the policy version.

*/ inline GetPolicyVersionResult& WithGenerationId(const char* value) { SetGenerationId(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 GetPolicyVersionResult& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} inline GetPolicyVersionResult& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} inline GetPolicyVersionResult& WithRequestId(const char* value) { SetRequestId(value); return *this;} private: Aws::String m_policyArn; Aws::String m_policyName; Aws::String m_policyDocument; Aws::String m_policyVersionId; bool m_isDefaultVersion; Aws::Utils::DateTime m_creationDate; Aws::Utils::DateTime m_lastModifiedDate; Aws::String m_generationId; Aws::String m_requestId; }; } // namespace Model } // namespace IoT } // namespace Aws