/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A policy enabling one or more entities to put logs to a log group in this
* account.See Also:
AWS
* API Reference
The name of the resource policy.
*/ inline const Aws::String& GetPolicyName() const{ return m_policyName; } /** *The name of the resource policy.
*/ inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; } /** *The name of the resource policy.
*/ inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; } /** *The name of the resource policy.
*/ inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); } /** *The name of the resource policy.
*/ inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); } /** *The name of the resource policy.
*/ inline ResourcePolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;} /** *The name of the resource policy.
*/ inline ResourcePolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;} /** *The name of the resource policy.
*/ inline ResourcePolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;} /** *The details of the policy.
*/ inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; } /** *The details of the policy.
*/ inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; } /** *The details of the policy.
*/ inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; } /** *The details of the policy.
*/ inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); } /** *The details of the policy.
*/ inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); } /** *The details of the policy.
*/ inline ResourcePolicy& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;} /** *The details of the policy.
*/ inline ResourcePolicy& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;} /** *The details of the policy.
*/ inline ResourcePolicy& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;} /** *Timestamp showing when this policy was last updated, expressed as the number * of milliseconds after Jan 1, 1970 00:00:00 UTC.
*/ inline long long GetLastUpdatedTime() const{ return m_lastUpdatedTime; } /** *Timestamp showing when this policy was last updated, expressed as the number * of milliseconds after Jan 1, 1970 00:00:00 UTC.
*/ inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; } /** *Timestamp showing when this policy was last updated, expressed as the number * of milliseconds after Jan 1, 1970 00:00:00 UTC.
*/ inline void SetLastUpdatedTime(long long value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; } /** *Timestamp showing when this policy was last updated, expressed as the number * of milliseconds after Jan 1, 1970 00:00:00 UTC.
*/ inline ResourcePolicy& WithLastUpdatedTime(long long value) { SetLastUpdatedTime(value); return *this;} private: Aws::String m_policyName; bool m_policyNameHasBeenSet; Aws::String m_policyDocument; bool m_policyDocumentHasBeenSet; long long m_lastUpdatedTime; bool m_lastUpdatedTimeHasBeenSet; }; } // namespace Model } // namespace CloudWatchLogs } // namespace Aws