AWS SDK for C++

AWS SDK for C++ Version 1.11.747

Loading...
Searching...
No Matches
UsageCriteria.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/guardduty/GuardDuty_EXPORTS.h>
10#include <aws/guardduty/model/UsageFeature.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace GuardDuty {
22namespace Model {
23
31 public:
32 AWS_GUARDDUTY_API UsageCriteria() = default;
33 AWS_GUARDDUTY_API UsageCriteria(Aws::Utils::Json::JsonView jsonValue);
34 AWS_GUARDDUTY_API UsageCriteria& operator=(Aws::Utils::Json::JsonView jsonValue);
35 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
42 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
43 template <typename AccountIdsT = Aws::Vector<Aws::String>>
44 void SetAccountIds(AccountIdsT&& value) {
45 m_accountIdsHasBeenSet = true;
46 m_accountIds = std::forward<AccountIdsT>(value);
47 }
48 template <typename AccountIdsT = Aws::Vector<Aws::String>>
49 UsageCriteria& WithAccountIds(AccountIdsT&& value) {
50 SetAccountIds(std::forward<AccountIdsT>(value));
51 return *this;
52 }
53 template <typename AccountIdsT = Aws::String>
54 UsageCriteria& AddAccountIds(AccountIdsT&& value) {
55 m_accountIdsHasBeenSet = true;
56 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
57 return *this;
58 }
60
62
66 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
67 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
68 template <typename ResourcesT = Aws::Vector<Aws::String>>
69 void SetResources(ResourcesT&& value) {
70 m_resourcesHasBeenSet = true;
71 m_resources = std::forward<ResourcesT>(value);
72 }
73 template <typename ResourcesT = Aws::Vector<Aws::String>>
74 UsageCriteria& WithResources(ResourcesT&& value) {
75 SetResources(std::forward<ResourcesT>(value));
76 return *this;
77 }
78 template <typename ResourcesT = Aws::String>
79 UsageCriteria& AddResources(ResourcesT&& value) {
80 m_resourcesHasBeenSet = true;
81 m_resources.emplace_back(std::forward<ResourcesT>(value));
82 return *this;
83 }
85
87
90 inline const Aws::Vector<UsageFeature>& GetFeatures() const { return m_features; }
91 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
92 template <typename FeaturesT = Aws::Vector<UsageFeature>>
93 void SetFeatures(FeaturesT&& value) {
94 m_featuresHasBeenSet = true;
95 m_features = std::forward<FeaturesT>(value);
96 }
97 template <typename FeaturesT = Aws::Vector<UsageFeature>>
98 UsageCriteria& WithFeatures(FeaturesT&& value) {
99 SetFeatures(std::forward<FeaturesT>(value));
100 return *this;
101 }
103 m_featuresHasBeenSet = true;
104 m_features.push_back(value);
105 return *this;
106 }
108 private:
109 Aws::Vector<Aws::String> m_accountIds;
110
111 Aws::Vector<Aws::String> m_resources;
112
113 Aws::Vector<UsageFeature> m_features;
114 bool m_accountIdsHasBeenSet = false;
115 bool m_resourcesHasBeenSet = false;
116 bool m_featuresHasBeenSet = false;
117};
118
119} // namespace Model
120} // namespace GuardDuty
121} // namespace Aws
const Aws::Vector< Aws::String > & GetAccountIds() const
UsageCriteria & AddResources(ResourcesT &&value)
UsageCriteria & AddAccountIds(AccountIdsT &&value)
AWS_GUARDDUTY_API UsageCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< UsageFeature > & GetFeatures() const
UsageCriteria & WithResources(ResourcesT &&value)
UsageCriteria & WithAccountIds(AccountIdsT &&value)
UsageCriteria & AddFeatures(UsageFeature value)
const Aws::Vector< Aws::String > & GetResources() const
void SetFeatures(FeaturesT &&value)
void SetResources(ResourcesT &&value)
AWS_GUARDDUTY_API UsageCriteria(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API UsageCriteria()=default
void SetAccountIds(AccountIdsT &&value)
UsageCriteria & WithFeatures(FeaturesT &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue