AWS SDK for C++  1.9.21
AWS SDK for C++
UsageCriteria.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Json
18 {
19  class JsonValue;
20  class JsonView;
21 } // namespace Json
22 } // namespace Utils
23 namespace GuardDuty
24 {
25 namespace Model
26 {
27 
35  {
36  public:
41 
42 
46  inline const Aws::Vector<Aws::String>& GetAccountIds() const{ return m_accountIds; }
47 
51  inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
52 
56  inline void SetAccountIds(const Aws::Vector<Aws::String>& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; }
57 
61  inline void SetAccountIds(Aws::Vector<Aws::String>&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); }
62 
66  inline UsageCriteria& WithAccountIds(const Aws::Vector<Aws::String>& value) { SetAccountIds(value); return *this;}
67 
71  inline UsageCriteria& WithAccountIds(Aws::Vector<Aws::String>&& value) { SetAccountIds(std::move(value)); return *this;}
72 
76  inline UsageCriteria& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
77 
81  inline UsageCriteria& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; }
82 
86  inline UsageCriteria& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
87 
88 
92  inline const Aws::Vector<DataSource>& GetDataSources() const{ return m_dataSources; }
93 
97  inline bool DataSourcesHasBeenSet() const { return m_dataSourcesHasBeenSet; }
98 
102  inline void SetDataSources(const Aws::Vector<DataSource>& value) { m_dataSourcesHasBeenSet = true; m_dataSources = value; }
103 
107  inline void SetDataSources(Aws::Vector<DataSource>&& value) { m_dataSourcesHasBeenSet = true; m_dataSources = std::move(value); }
108 
112  inline UsageCriteria& WithDataSources(const Aws::Vector<DataSource>& value) { SetDataSources(value); return *this;}
113 
117  inline UsageCriteria& WithDataSources(Aws::Vector<DataSource>&& value) { SetDataSources(std::move(value)); return *this;}
118 
122  inline UsageCriteria& AddDataSources(const DataSource& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(value); return *this; }
123 
127  inline UsageCriteria& AddDataSources(DataSource&& value) { m_dataSourcesHasBeenSet = true; m_dataSources.push_back(std::move(value)); return *this; }
128 
129 
134  inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
135 
140  inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
141 
146  inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
147 
152  inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
153 
158  inline UsageCriteria& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
159 
164  inline UsageCriteria& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
165 
170  inline UsageCriteria& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
171 
176  inline UsageCriteria& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
177 
182  inline UsageCriteria& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
183 
184  private:
185 
186  Aws::Vector<Aws::String> m_accountIds;
187  bool m_accountIdsHasBeenSet;
188 
189  Aws::Vector<DataSource> m_dataSources;
190  bool m_dataSourcesHasBeenSet;
191 
192  Aws::Vector<Aws::String> m_resources;
193  bool m_resourcesHasBeenSet;
194  };
195 
196 } // namespace Model
197 } // namespace GuardDuty
198 } // namespace Aws
DataSource.h
Aws::GuardDuty::Model::UsageCriteria::AddAccountIds
UsageCriteria & AddAccountIds(const Aws::String &value)
Definition: UsageCriteria.h:76
Aws::GuardDuty::Model::UsageCriteria
Definition: UsageCriteria.h:35
Aws::GuardDuty::Model::UsageCriteria::AddDataSources
UsageCriteria & AddDataSources(DataSource &&value)
Definition: UsageCriteria.h:127
Aws::GuardDuty::Model::UsageCriteria::WithDataSources
UsageCriteria & WithDataSources(const Aws::Vector< DataSource > &value)
Definition: UsageCriteria.h:112
Aws::GuardDuty::Model::UsageCriteria::SetResources
void SetResources(const Aws::Vector< Aws::String > &value)
Definition: UsageCriteria.h:146
Aws::GuardDuty::Model::UsageCriteria::ResourcesHasBeenSet
bool ResourcesHasBeenSet() const
Definition: UsageCriteria.h:140
Aws::GuardDuty::Model::UsageCriteria::SetAccountIds
void SetAccountIds(Aws::Vector< Aws::String > &&value)
Definition: UsageCriteria.h:61
Aws::GuardDuty::Model::UsageCriteria::WithResources
UsageCriteria & WithResources(const Aws::Vector< Aws::String > &value)
Definition: UsageCriteria.h:158
Aws::GuardDuty::Model::UsageCriteria::AddResources
UsageCriteria & AddResources(const Aws::String &value)
Definition: UsageCriteria.h:170
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::GuardDuty::Model::UsageCriteria::SetResources
void SetResources(Aws::Vector< Aws::String > &&value)
Definition: UsageCriteria.h:152
AWSVector.h
Aws::GuardDuty::Model::UsageCriteria::AddAccountIds
UsageCriteria & AddAccountIds(const char *value)
Definition: UsageCriteria.h:86
Aws::GuardDuty::Model::UsageCriteria::SetAccountIds
void SetAccountIds(const Aws::Vector< Aws::String > &value)
Definition: UsageCriteria.h:56
Aws::GuardDuty::Model::UsageCriteria::GetResources
const Aws::Vector< Aws::String > & GetResources() const
Definition: UsageCriteria.h:134
Aws::GuardDuty::Model::UsageCriteria::UsageCriteria
UsageCriteria()
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::UsageCriteria::WithAccountIds
UsageCriteria & WithAccountIds(const Aws::Vector< Aws::String > &value)
Definition: UsageCriteria.h:66
Aws::GuardDuty::Model::UsageCriteria::operator=
UsageCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::GuardDuty::Model::UsageCriteria::GetAccountIds
const Aws::Vector< Aws::String > & GetAccountIds() const
Definition: UsageCriteria.h:46
Aws::GuardDuty::Model::UsageCriteria::UsageCriteria
UsageCriteria(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::UsageCriteria::AddDataSources
UsageCriteria & AddDataSources(const DataSource &value)
Definition: UsageCriteria.h:122
Aws::GuardDuty::Model::UsageCriteria::DataSourcesHasBeenSet
bool DataSourcesHasBeenSet() const
Definition: UsageCriteria.h:97
Aws::GuardDuty::Model::UsageCriteria::AddResources
UsageCriteria & AddResources(Aws::String &&value)
Definition: UsageCriteria.h:176
Aws::GuardDuty::Model::UsageCriteria::AccountIdsHasBeenSet
bool AccountIdsHasBeenSet() const
Definition: UsageCriteria.h:51
Aws::GuardDuty::Model::UsageCriteria::AddResources
UsageCriteria & AddResources(const char *value)
Definition: UsageCriteria.h:182
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::GuardDuty::Model::UsageCriteria::GetDataSources
const Aws::Vector< DataSource > & GetDataSources() const
Definition: UsageCriteria.h:92
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::UsageCriteria::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::UsageCriteria::WithDataSources
UsageCriteria & WithDataSources(Aws::Vector< DataSource > &&value)
Definition: UsageCriteria.h:117
Aws::GuardDuty::Model::UsageCriteria::AddAccountIds
UsageCriteria & AddAccountIds(Aws::String &&value)
Definition: UsageCriteria.h:81
Aws::GuardDuty::Model::UsageCriteria::SetDataSources
void SetDataSources(Aws::Vector< DataSource > &&value)
Definition: UsageCriteria.h:107
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::UsageCriteria::WithAccountIds
UsageCriteria & WithAccountIds(Aws::Vector< Aws::String > &&value)
Definition: UsageCriteria.h:71
Aws::GuardDuty::Model::UsageCriteria::SetDataSources
void SetDataSources(const Aws::Vector< DataSource > &value)
Definition: UsageCriteria.h:102
Aws::GuardDuty::Model::UsageCriteria::WithResources
UsageCriteria & WithResources(Aws::Vector< Aws::String > &&value)
Definition: UsageCriteria.h:164
Aws::GuardDuty::Model::DataSource
DataSource
Definition: DataSource.h:17