AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AccountPolicy.h
1
6#pragma once
7#include <aws/logs/CloudWatchLogs_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/logs/model/PolicyType.h>
10#include <aws/logs/model/Scope.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace CloudWatchLogs
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_CLOUDWATCHLOGS_API AccountPolicy();
38 AWS_CLOUDWATCHLOGS_API AccountPolicy(Aws::Utils::Json::JsonView jsonValue);
39 AWS_CLOUDWATCHLOGS_API AccountPolicy& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetPolicyName() const{ return m_policyName; }
48 inline bool PolicyNameHasBeenSet() const { return m_policyNameHasBeenSet; }
49 inline void SetPolicyName(const Aws::String& value) { m_policyNameHasBeenSet = true; m_policyName = value; }
50 inline void SetPolicyName(Aws::String&& value) { m_policyNameHasBeenSet = true; m_policyName = std::move(value); }
51 inline void SetPolicyName(const char* value) { m_policyNameHasBeenSet = true; m_policyName.assign(value); }
52 inline AccountPolicy& WithPolicyName(const Aws::String& value) { SetPolicyName(value); return *this;}
53 inline AccountPolicy& WithPolicyName(Aws::String&& value) { SetPolicyName(std::move(value)); return *this;}
54 inline AccountPolicy& WithPolicyName(const char* value) { SetPolicyName(value); return *this;}
56
58
62 inline const Aws::String& GetPolicyDocument() const{ return m_policyDocument; }
63 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
64 inline void SetPolicyDocument(const Aws::String& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = value; }
65 inline void SetPolicyDocument(Aws::String&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::move(value); }
66 inline void SetPolicyDocument(const char* value) { m_policyDocumentHasBeenSet = true; m_policyDocument.assign(value); }
67 inline AccountPolicy& WithPolicyDocument(const Aws::String& value) { SetPolicyDocument(value); return *this;}
68 inline AccountPolicy& WithPolicyDocument(Aws::String&& value) { SetPolicyDocument(std::move(value)); return *this;}
69 inline AccountPolicy& WithPolicyDocument(const char* value) { SetPolicyDocument(value); return *this;}
71
73
76 inline long long GetLastUpdatedTime() const{ return m_lastUpdatedTime; }
77 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
78 inline void SetLastUpdatedTime(long long value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
79 inline AccountPolicy& WithLastUpdatedTime(long long value) { SetLastUpdatedTime(value); return *this;}
81
83
86 inline const PolicyType& GetPolicyType() const{ return m_policyType; }
87 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
88 inline void SetPolicyType(const PolicyType& value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
89 inline void SetPolicyType(PolicyType&& value) { m_policyTypeHasBeenSet = true; m_policyType = std::move(value); }
90 inline AccountPolicy& WithPolicyType(const PolicyType& value) { SetPolicyType(value); return *this;}
91 inline AccountPolicy& WithPolicyType(PolicyType&& value) { SetPolicyType(std::move(value)); return *this;}
93
95
98 inline const Scope& GetScope() const{ return m_scope; }
99 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
100 inline void SetScope(const Scope& value) { m_scopeHasBeenSet = true; m_scope = value; }
101 inline void SetScope(Scope&& value) { m_scopeHasBeenSet = true; m_scope = std::move(value); }
102 inline AccountPolicy& WithScope(const Scope& value) { SetScope(value); return *this;}
103 inline AccountPolicy& WithScope(Scope&& value) { SetScope(std::move(value)); return *this;}
105
107
110 inline const Aws::String& GetSelectionCriteria() const{ return m_selectionCriteria; }
111 inline bool SelectionCriteriaHasBeenSet() const { return m_selectionCriteriaHasBeenSet; }
112 inline void SetSelectionCriteria(const Aws::String& value) { m_selectionCriteriaHasBeenSet = true; m_selectionCriteria = value; }
113 inline void SetSelectionCriteria(Aws::String&& value) { m_selectionCriteriaHasBeenSet = true; m_selectionCriteria = std::move(value); }
114 inline void SetSelectionCriteria(const char* value) { m_selectionCriteriaHasBeenSet = true; m_selectionCriteria.assign(value); }
115 inline AccountPolicy& WithSelectionCriteria(const Aws::String& value) { SetSelectionCriteria(value); return *this;}
116 inline AccountPolicy& WithSelectionCriteria(Aws::String&& value) { SetSelectionCriteria(std::move(value)); return *this;}
117 inline AccountPolicy& WithSelectionCriteria(const char* value) { SetSelectionCriteria(value); return *this;}
119
121
124 inline const Aws::String& GetAccountId() const{ return m_accountId; }
125 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
126 inline void SetAccountId(const Aws::String& value) { m_accountIdHasBeenSet = true; m_accountId = value; }
127 inline void SetAccountId(Aws::String&& value) { m_accountIdHasBeenSet = true; m_accountId = std::move(value); }
128 inline void SetAccountId(const char* value) { m_accountIdHasBeenSet = true; m_accountId.assign(value); }
129 inline AccountPolicy& WithAccountId(const Aws::String& value) { SetAccountId(value); return *this;}
130 inline AccountPolicy& WithAccountId(Aws::String&& value) { SetAccountId(std::move(value)); return *this;}
131 inline AccountPolicy& WithAccountId(const char* value) { SetAccountId(value); return *this;}
133 private:
134
135 Aws::String m_policyName;
136 bool m_policyNameHasBeenSet = false;
137
138 Aws::String m_policyDocument;
139 bool m_policyDocumentHasBeenSet = false;
140
141 long long m_lastUpdatedTime;
142 bool m_lastUpdatedTimeHasBeenSet = false;
143
144 PolicyType m_policyType;
145 bool m_policyTypeHasBeenSet = false;
146
147 Scope m_scope;
148 bool m_scopeHasBeenSet = false;
149
150 Aws::String m_selectionCriteria;
151 bool m_selectionCriteriaHasBeenSet = false;
152
153 Aws::String m_accountId;
154 bool m_accountIdHasBeenSet = false;
155 };
156
157} // namespace Model
158} // namespace CloudWatchLogs
159} // namespace Aws
AccountPolicy & WithScope(Scope &&value)
AWS_CLOUDWATCHLOGS_API AccountPolicy(Aws::Utils::Json::JsonView jsonValue)
AccountPolicy & WithAccountId(Aws::String &&value)
void SetSelectionCriteria(Aws::String &&value)
const Aws::String & GetPolicyDocument() const
void SetPolicyDocument(const char *value)
AccountPolicy & WithPolicyDocument(Aws::String &&value)
AccountPolicy & WithLastUpdatedTime(long long value)
AccountPolicy & WithSelectionCriteria(Aws::String &&value)
AccountPolicy & WithPolicyType(const PolicyType &value)
void SetPolicyName(const Aws::String &value)
void SetPolicyName(Aws::String &&value)
AccountPolicy & WithPolicyName(Aws::String &&value)
AWS_CLOUDWATCHLOGS_API AccountPolicy()
AccountPolicy & WithPolicyDocument(const Aws::String &value)
const Aws::String & GetPolicyName() const
AWS_CLOUDWATCHLOGS_API AccountPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountPolicy & WithPolicyType(PolicyType &&value)
AccountPolicy & WithPolicyDocument(const char *value)
void SetSelectionCriteria(const char *value)
void SetPolicyDocument(Aws::String &&value)
const PolicyType & GetPolicyType() const
const Aws::String & GetAccountId() const
void SetPolicyType(const PolicyType &value)
void SetSelectionCriteria(const Aws::String &value)
AccountPolicy & WithPolicyName(const Aws::String &value)
AccountPolicy & WithAccountId(const Aws::String &value)
void SetAccountId(const Aws::String &value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AccountPolicy & WithScope(const Scope &value)
void SetPolicyDocument(const Aws::String &value)
AccountPolicy & WithSelectionCriteria(const Aws::String &value)
AccountPolicy & WithAccountId(const char *value)
AccountPolicy & WithSelectionCriteria(const char *value)
const Aws::String & GetSelectionCriteria() const
AccountPolicy & WithPolicyName(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue