AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename PolicyNameT = Aws::String>
50 void SetPolicyName(PolicyNameT&& value) { m_policyNameHasBeenSet = true; m_policyName = std::forward<PolicyNameT>(value); }
51 template<typename PolicyNameT = Aws::String>
52 AccountPolicy& WithPolicyName(PolicyNameT&& value) { SetPolicyName(std::forward<PolicyNameT>(value)); return *this;}
54
56
60 inline const Aws::String& GetPolicyDocument() const { return m_policyDocument; }
61 inline bool PolicyDocumentHasBeenSet() const { return m_policyDocumentHasBeenSet; }
62 template<typename PolicyDocumentT = Aws::String>
63 void SetPolicyDocument(PolicyDocumentT&& value) { m_policyDocumentHasBeenSet = true; m_policyDocument = std::forward<PolicyDocumentT>(value); }
64 template<typename PolicyDocumentT = Aws::String>
65 AccountPolicy& WithPolicyDocument(PolicyDocumentT&& value) { SetPolicyDocument(std::forward<PolicyDocumentT>(value)); return *this;}
67
69
72 inline long long GetLastUpdatedTime() const { return m_lastUpdatedTime; }
73 inline bool LastUpdatedTimeHasBeenSet() const { return m_lastUpdatedTimeHasBeenSet; }
74 inline void SetLastUpdatedTime(long long value) { m_lastUpdatedTimeHasBeenSet = true; m_lastUpdatedTime = value; }
75 inline AccountPolicy& WithLastUpdatedTime(long long value) { SetLastUpdatedTime(value); return *this;}
77
79
82 inline PolicyType GetPolicyType() const { return m_policyType; }
83 inline bool PolicyTypeHasBeenSet() const { return m_policyTypeHasBeenSet; }
84 inline void SetPolicyType(PolicyType value) { m_policyTypeHasBeenSet = true; m_policyType = value; }
85 inline AccountPolicy& WithPolicyType(PolicyType value) { SetPolicyType(value); return *this;}
87
89
92 inline Scope GetScope() const { return m_scope; }
93 inline bool ScopeHasBeenSet() const { return m_scopeHasBeenSet; }
94 inline void SetScope(Scope value) { m_scopeHasBeenSet = true; m_scope = value; }
95 inline AccountPolicy& WithScope(Scope value) { SetScope(value); return *this;}
97
99
102 inline const Aws::String& GetSelectionCriteria() const { return m_selectionCriteria; }
103 inline bool SelectionCriteriaHasBeenSet() const { return m_selectionCriteriaHasBeenSet; }
104 template<typename SelectionCriteriaT = Aws::String>
105 void SetSelectionCriteria(SelectionCriteriaT&& value) { m_selectionCriteriaHasBeenSet = true; m_selectionCriteria = std::forward<SelectionCriteriaT>(value); }
106 template<typename SelectionCriteriaT = Aws::String>
107 AccountPolicy& WithSelectionCriteria(SelectionCriteriaT&& value) { SetSelectionCriteria(std::forward<SelectionCriteriaT>(value)); return *this;}
109
111
114 inline const Aws::String& GetAccountId() const { return m_accountId; }
115 inline bool AccountIdHasBeenSet() const { return m_accountIdHasBeenSet; }
116 template<typename AccountIdT = Aws::String>
117 void SetAccountId(AccountIdT&& value) { m_accountIdHasBeenSet = true; m_accountId = std::forward<AccountIdT>(value); }
118 template<typename AccountIdT = Aws::String>
119 AccountPolicy& WithAccountId(AccountIdT&& value) { SetAccountId(std::forward<AccountIdT>(value)); return *this;}
121 private:
122
123 Aws::String m_policyName;
124 bool m_policyNameHasBeenSet = false;
125
126 Aws::String m_policyDocument;
127 bool m_policyDocumentHasBeenSet = false;
128
129 long long m_lastUpdatedTime{0};
130 bool m_lastUpdatedTimeHasBeenSet = false;
131
132 PolicyType m_policyType{PolicyType::NOT_SET};
133 bool m_policyTypeHasBeenSet = false;
134
135 Scope m_scope{Scope::NOT_SET};
136 bool m_scopeHasBeenSet = false;
137
138 Aws::String m_selectionCriteria;
139 bool m_selectionCriteriaHasBeenSet = false;
140
141 Aws::String m_accountId;
142 bool m_accountIdHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace CloudWatchLogs
147} // namespace Aws
AccountPolicy & WithSelectionCriteria(SelectionCriteriaT &&value)
AccountPolicy & WithPolicyType(PolicyType value)
AWS_CLOUDWATCHLOGS_API AccountPolicy(Aws::Utils::Json::JsonView jsonValue)
AccountPolicy & WithPolicyDocument(PolicyDocumentT &&value)
const Aws::String & GetPolicyDocument() const
AccountPolicy & WithLastUpdatedTime(long long value)
const Aws::String & GetPolicyName() const
AWS_CLOUDWATCHLOGS_API AccountPolicy & operator=(Aws::Utils::Json::JsonView jsonValue)
AccountPolicy & WithPolicyName(PolicyNameT &&value)
const Aws::String & GetAccountId() const
AccountPolicy & WithAccountId(AccountIdT &&value)
void SetSelectionCriteria(SelectionCriteriaT &&value)
void SetPolicyDocument(PolicyDocumentT &&value)
AWS_CLOUDWATCHLOGS_API Aws::Utils::Json::JsonValue Jsonize() const
AccountPolicy & WithScope(Scope value)
void SetPolicyName(PolicyNameT &&value)
AWS_CLOUDWATCHLOGS_API AccountPolicy()=default
const Aws::String & GetSelectionCriteria() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue