/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A resource policy grants one or more Amazon Web Services services and
* accounts permissions to access X-Ray. Each resource policy is associated with a
* specific Amazon Web Services account.See Also:
AWS
* API Reference
The name of the resource policy. Must be unique within a specific Amazon Web * Services account.
*/ inline const Aws::String& GetPolicyName() const{ return m_policyName; } /** *The name of the resource policy. Must be unique within a specific Amazon Web * Services account.
*/ inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; } /** *The name of the resource policy. Must be unique within a specific Amazon Web * Services account.
*/ inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; } /** *The name of the resource policy. Must be unique within a specific Amazon Web * Services account.
*/ inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); } /** *The name of the resource policy. Must be unique within a specific Amazon Web * Services account.
*/ inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); } /** *The name of the resource policy. Must be unique within a specific Amazon Web * Services account.
*/ inline ResourcePolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;} /** *The name of the resource policy. Must be unique within a specific Amazon Web * Services account.
*/ inline ResourcePolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;} /** *The name of the resource policy. Must be unique within a specific Amazon Web * Services account.
*/ inline ResourcePolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;} /** *The resource policy document, which can be up to 5kb in size.
*/ inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; } /** *The resource policy document, which can be up to 5kb in size.
*/ inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; } /** *The resource policy document, which can be up to 5kb in size.
*/ inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; } /** *The resource policy document, which can be up to 5kb in size.
*/ inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); } /** *The resource policy document, which can be up to 5kb in size.
*/ inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); } /** *The resource policy document, which can be up to 5kb in size.
*/ inline ResourcePolicy& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;} /** *The resource policy document, which can be up to 5kb in size.
*/ inline ResourcePolicy& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;} /** *The resource policy document, which can be up to 5kb in size.
*/ inline ResourcePolicy& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;} /** *Returns the current policy revision id for this policy name.
*/ inline const Aws::String& GetPolicyRevisionId() const{ return m_policyRevisionId; } /** *Returns the current policy revision id for this policy name.
*/ inline bool PolicyRevisionIdHasBeenSet() const { return m_policyRevisionIdHasBeenSet; } /** *Returns the current policy revision id for this policy name.
*/ inline void SetPolicyRevisionId(const Aws::String& value) { m_policyRevisionIdHasBeenSet = true; m_policyRevisionId = value; } /** *Returns the current policy revision id for this policy name.
*/ inline void SetPolicyRevisionId(Aws::String&& value) { m_policyRevisionIdHasBeenSet = true; m_policyRevisionId = std::move(value); } /** *Returns the current policy revision id for this policy name.
*/ inline void SetPolicyRevisionId(const char* value) { m_policyRevisionIdHasBeenSet = true; m_policyRevisionId.assign(value); } /** *Returns the current policy revision id for this policy name.
*/ inline ResourcePolicy& WithPolicyRevisionId(const Aws::String& value) { SetPolicyRevisionId(value); return *this;} /** *Returns the current policy revision id for this policy name.
*/ inline ResourcePolicy& WithPolicyRevisionId(Aws::String&& value) { SetPolicyRevisionId(std::move(value)); return *this;} /** *Returns the current policy revision id for this policy name.
*/ inline ResourcePolicy& WithPolicyRevisionId(const char* value) { SetPolicyRevisionId(value); return *this;} /** *When the policy was last updated, in Unix time seconds.
*/ inline const Aws::Utils::DateTime& GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *When the policy was last updated, in Unix time seconds.
*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *When the policy was last updated, in Unix time seconds.
*/ inline void SetLastUpdatedTime(const Aws::Utils::DateTime& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *When the policy was last updated, in Unix time seconds.
*/ inline void SetLastUpdatedTime(Aws::Utils::DateTime&& value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = std::move(value); } /** *When the policy was last updated, in Unix time seconds.
*/ inline ResourcePolicy& WithLastUpdatedTime(const Aws::Utils::DateTime& value) { SetLastUpdatedTime(value); return *this;} /** *When the policy was last updated, in Unix time seconds.
*/ inline ResourcePolicy& WithLastUpdatedTime(Aws::Utils::DateTime&& value) { SetLastUpdatedTime(std::move(value)); return *this;} private: Aws::String m_policyName; bool m_policyNameHasBeenSet = false; Aws::String m_policyDocument; bool m_policyDocumentHasBeenSet = false; Aws::String m_policyRevisionId; bool m_policyRevisionIdHasBeenSet = false; Aws::Utils::DateTime m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet = false; }; } // namespace Model } // namespace XRay } // namespace Aws