AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CisTargets.h
1
6#pragma once
7#include <aws/inspector2/Inspector2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/core/utils/memory/stl/AWSString.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 Inspector2
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_INSPECTOR2_API CisTargets();
37 AWS_INSPECTOR2_API CisTargets(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR2_API CisTargets& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::Vector<Aws::String>& GetAccountIds() const{ return m_accountIds; }
47 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
48 inline void SetAccountIds(const Aws::Vector<Aws::String>& value) { m_accountIdsHasBeenSet = true; m_accountIds = value; }
49 inline void SetAccountIds(Aws::Vector<Aws::String>&& value) { m_accountIdsHasBeenSet = true; m_accountIds = std::move(value); }
50 inline CisTargets& WithAccountIds(const Aws::Vector<Aws::String>& value) { SetAccountIds(value); return *this;}
51 inline CisTargets& WithAccountIds(Aws::Vector<Aws::String>&& value) { SetAccountIds(std::move(value)); return *this;}
52 inline CisTargets& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
53 inline CisTargets& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; }
54 inline CisTargets& AddAccountIds(const char* value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
56
58
61 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetTargetResourceTags() const{ return m_targetResourceTags; }
62 inline bool TargetResourceTagsHasBeenSet() const { return m_targetResourceTagsHasBeenSet; }
63 inline void SetTargetResourceTags(const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags = value; }
64 inline void SetTargetResourceTags(Aws::Map<Aws::String, Aws::Vector<Aws::String>>&& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags = std::move(value); }
67 inline CisTargets& AddTargetResourceTags(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags.emplace(key, value); return *this; }
68 inline CisTargets& AddTargetResourceTags(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags.emplace(std::move(key), value); return *this; }
69 inline CisTargets& AddTargetResourceTags(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags.emplace(key, std::move(value)); return *this; }
70 inline CisTargets& AddTargetResourceTags(Aws::String&& key, Aws::Vector<Aws::String>&& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags.emplace(std::move(key), std::move(value)); return *this; }
71 inline CisTargets& AddTargetResourceTags(const char* key, Aws::Vector<Aws::String>&& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags.emplace(key, std::move(value)); return *this; }
72 inline CisTargets& AddTargetResourceTags(const char* key, const Aws::Vector<Aws::String>& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags.emplace(key, value); return *this; }
74 private:
75
76 Aws::Vector<Aws::String> m_accountIds;
77 bool m_accountIdsHasBeenSet = false;
78
80 bool m_targetResourceTagsHasBeenSet = false;
81 };
82
83} // namespace Model
84} // namespace Inspector2
85} // namespace Aws
CisTargets & WithAccountIds(Aws::Vector< Aws::String > &&value)
Definition CisTargets.h:51
CisTargets & WithTargetResourceTags(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
Definition CisTargets.h:66
CisTargets & AddTargetResourceTags(const Aws::String &key, const Aws::Vector< Aws::String > &value)
Definition CisTargets.h:67
AWS_INSPECTOR2_API CisTargets()
CisTargets & WithAccountIds(const Aws::Vector< Aws::String > &value)
Definition CisTargets.h:50
void SetTargetResourceTags(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
Definition CisTargets.h:63
void SetTargetResourceTags(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
Definition CisTargets.h:64
void SetAccountIds(Aws::Vector< Aws::String > &&value)
Definition CisTargets.h:49
AWS_INSPECTOR2_API CisTargets & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAccountIds() const
Definition CisTargets.h:46
CisTargets & AddAccountIds(Aws::String &&value)
Definition CisTargets.h:53
CisTargets & AddTargetResourceTags(Aws::String &&key, Aws::Vector< Aws::String > &&value)
Definition CisTargets.h:70
CisTargets & AddTargetResourceTags(Aws::String &&key, const Aws::Vector< Aws::String > &value)
Definition CisTargets.h:68
CisTargets & AddAccountIds(const char *value)
Definition CisTargets.h:54
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
CisTargets & AddTargetResourceTags(const Aws::String &key, Aws::Vector< Aws::String > &&value)
Definition CisTargets.h:69
void SetAccountIds(const Aws::Vector< Aws::String > &value)
Definition CisTargets.h:48
CisTargets & AddTargetResourceTags(const char *key, const Aws::Vector< Aws::String > &value)
Definition CisTargets.h:72
CisTargets & WithTargetResourceTags(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
Definition CisTargets.h:65
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetTargetResourceTags() const
Definition CisTargets.h:61
CisTargets & AddTargetResourceTags(const char *key, Aws::Vector< Aws::String > &&value)
Definition CisTargets.h:71
CisTargets & AddAccountIds(const Aws::String &value)
Definition CisTargets.h:52
AWS_INSPECTOR2_API CisTargets(Aws::Utils::Json::JsonView jsonValue)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue