AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetAccountIds(const Aws::Vector<Aws::String>& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; }
50 inline void SetAccountIds(Aws::Vector<Aws::String>&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); }
51 inline UsageCriteria& WithAccountIds(const Aws::Vector<Aws::String>& value) { SetAccountIds(value); return *this;}
52 inline UsageCriteria& WithAccountIds(Aws::Vector<Aws::String>&& value) { SetAccountIds(std::move(value)); return *this;}
53 inline UsageCriteria& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
54 inline UsageCriteria& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; }
55 inline UsageCriteria& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
57
59
63 inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
64 inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
65 inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
66 inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
67 inline UsageCriteria& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
68 inline UsageCriteria& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
69 inline UsageCriteria& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
70 inline UsageCriteria& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
71 inline UsageCriteria& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
73
75
78 inline const Aws::Vector<UsageFeature>& GetFeatures() const{ return m_features; }
79 inline bool FeaturesHasBeenSet() const { return m_featuresHasBeenSet; }
80 inline void SetFeatures(const Aws::Vector<UsageFeature>& value) { m_featuresHasBeenSet = true; m_features = value; }
81 inline void SetFeatures(Aws::Vector<UsageFeature>&& value) { m_featuresHasBeenSet = true; m_features = std::move(value); }
82 inline UsageCriteria& WithFeatures(const Aws::Vector<UsageFeature>& value) { SetFeatures(value); return *this;}
83 inline UsageCriteria& WithFeatures(Aws::Vector<UsageFeature>&& value) { SetFeatures(std::move(value)); return *this;}
84 inline UsageCriteria& AddFeatures(const UsageFeature& value) { m_featuresHasBeenSet = true; m_features.push_back(value); return *this; }
85 inline UsageCriteria& AddFeatures(UsageFeature&& value) { m_featuresHasBeenSet = true; m_features.push_back(std::move(value)); return *this; }
87 private:
88
89 Aws::Vector<Aws::String> m_accountIds;
90 bool m_accountIdsHasBeenSet = false;
91
92 Aws::Vector<Aws::String> m_resources;
93 bool m_resourcesHasBeenSet = false;
94
96 bool m_featuresHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace GuardDuty
101} // namespace Aws
UsageCriteria & AddAccountIds(Aws::String &&value)
UsageCriteria & AddAccountIds(const Aws::String &value)
UsageCriteria & AddResources(const Aws::String &value)
void SetFeatures(Aws::Vector< UsageFeature > &&value)
const Aws::Vector< Aws::String > & GetAccountIds() const
UsageCriteria & WithAccountIds(const Aws::Vector< Aws::String > &value)
UsageCriteria & AddAccountIds(const char *value)
UsageCriteria & AddFeatures(const UsageFeature &value)
void SetResources(Aws::Vector< Aws::String > &&value)
AWS_GUARDDUTY_API UsageCriteria & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< UsageFeature > & GetFeatures() const
UsageCriteria & WithResources(const Aws::Vector< Aws::String > &value)
UsageCriteria & AddResources(const char *value)
void SetAccountIds(const Aws::Vector< Aws::String > &value)
UsageCriteria & WithAccountIds(Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetResources() const
UsageCriteria & AddResources(Aws::String &&value)
void SetResources(const Aws::Vector< Aws::String > &value)
UsageCriteria & AddFeatures(UsageFeature &&value)
void SetFeatures(const Aws::Vector< UsageFeature > &value)
AWS_GUARDDUTY_API UsageCriteria(Aws::Utils::Json::JsonView jsonValue)
UsageCriteria & WithFeatures(const Aws::Vector< UsageFeature > &value)
void SetAccountIds(Aws::Vector< Aws::String > &&value)
UsageCriteria & WithResources(Aws::Vector< Aws::String > &&value)
AWS_GUARDDUTY_API Aws::Utils::Json::JsonValue Jsonize() const
UsageCriteria & WithFeatures(Aws::Vector< UsageFeature > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue