AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
UsageCriteria.h
1
6#pragma once
7#include <aws/guardduty/GuardDuty_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/guardduty/model/UsageFeature.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 GuardDuty
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_GUARDDUTY_API UsageCriteria() = default;
38 AWS_GUARDDUTY_API UsageCriteria(Aws::Utils::Json::JsonView jsonValue);
39 AWS_GUARDDUTY_API UsageCriteria& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
48 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
49 template<typename AccountIdsT = Aws::Vector<Aws::String>>
50 void SetAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::forward<AccountIdsT>(value); }
51 template<typename AccountIdsT = Aws::Vector<Aws::String>>
52 UsageCriteria& WithAccountIds(AccountIdsT&& value) { SetAccountIds(std::forward<AccountIdsT>(value)); return *this;}
53 template<typename AccountIdsT = Aws::String>
54 UsageCriteria& AddAccountIds(AccountIdsT&& value) { m_accountIdsHasBeenSet = true; m_accountIds.emplace_back(std::forward<AccountIdsT>(value)); return *this; }
56
58
62 inline const Aws::Vector<Aws::String>& GetResources() const { return m_resources; }
63 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
64 template<typename ResourcesT = Aws::Vector<Aws::String>>
65 void SetResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources = std::forward<ResourcesT>(value); }
66 template<typename ResourcesT = Aws::Vector<Aws::String>>
67 UsageCriteria& WithResources(ResourcesT&& value) { SetResources(std::forward<ResourcesT>(value)); return *this;}
68 template<typename ResourcesT = Aws::String>
69 UsageCriteria& AddResources(ResourcesT&& value) { m_resourcesHasBeenSet = true; m_resources.emplace_back(std::forward<ResourcesT>(value)); return *this; }
71
73
76 inline const Aws::Vector<UsageFeature>& GetFeatures() const { return m_features; }
77 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
78 template<typename FeaturesT = Aws::Vector<UsageFeature>>
79 void SetFeatures(FeaturesT&& value) { m_featuresHasBeenSet = true; m_features = std::forward<FeaturesT>(value); }
80 template<typename FeaturesT = Aws::Vector<UsageFeature>>
81 UsageCriteria& WithFeatures(FeaturesT&& value) { SetFeatures(std::forward<FeaturesT>(value)); return *this;}
82 inline UsageCriteria& AddFeatures(UsageFeature value) { m_featuresHasBeenSet = true; m_features.push_back(value); return *this; }
84 private:
85
86 Aws::Vector<Aws::String> m_accountIds;
87 bool m_accountIdsHasBeenSet = false;
88
89 Aws::Vector<Aws::String> m_resources;
90 bool m_resourcesHasBeenSet = false;
91
93 bool m_featuresHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace GuardDuty
98} // 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