AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateCisTargets.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 UpdateCisTargets();
37 AWS_INSPECTOR2_API UpdateCisTargets(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 UpdateCisTargets& WithAccountIds(const Aws::Vector<Aws::String>& value) { SetAccountIds(value); return *this;}
51 inline UpdateCisTargets& WithAccountIds(Aws::Vector<Aws::String>&& value) { SetAccountIds(std::move(value)); return *this;}
52 inline UpdateCisTargets& AddAccountIds(const Aws::String& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(value); return *this; }
53 inline UpdateCisTargets& AddAccountIds(Aws::String&& value) { m_accountIdsHasBeenSet = true; m_accountIds.push_back(std::move(value)); return *this; }
54 inline UpdateCisTargets& 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 UpdateCisTargets& AddTargetResourceTags(const Aws::String& key, const Aws::Vector<Aws::String>& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags.emplace(key, value); return *this; }
68 inline UpdateCisTargets& AddTargetResourceTags(Aws::String&& key, const Aws::Vector<Aws::String>& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags.emplace(std::move(key), value); return *this; }
69 inline UpdateCisTargets& AddTargetResourceTags(const Aws::String& key, Aws::Vector<Aws::String>&& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags.emplace(key, std::move(value)); return *this; }
70 inline UpdateCisTargets& 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 UpdateCisTargets& AddTargetResourceTags(const char* key, Aws::Vector<Aws::String>&& value) { m_targetResourceTagsHasBeenSet = true; m_targetResourceTags.emplace(key, std::move(value)); return *this; }
72 inline UpdateCisTargets& 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
UpdateCisTargets & AddTargetResourceTags(const char *key, const Aws::Vector< Aws::String > &value)
UpdateCisTargets & AddTargetResourceTags(Aws::String &&key, Aws::Vector< Aws::String > &&value)
UpdateCisTargets & AddAccountIds(const char *value)
void SetAccountIds(Aws::Vector< Aws::String > &&value)
UpdateCisTargets & AddTargetResourceTags(Aws::String &&key, const Aws::Vector< Aws::String > &value)
UpdateCisTargets & WithAccountIds(const Aws::Vector< Aws::String > &value)
UpdateCisTargets & AddAccountIds(const Aws::String &value)
AWS_INSPECTOR2_API UpdateCisTargets & operator=(Aws::Utils::Json::JsonView jsonValue)
UpdateCisTargets & WithAccountIds(Aws::Vector< Aws::String > &&value)
UpdateCisTargets & WithTargetResourceTags(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
UpdateCisTargets & AddTargetResourceTags(const Aws::String &key, const Aws::Vector< Aws::String > &value)
void SetAccountIds(const Aws::Vector< Aws::String > &value)
void SetTargetResourceTags(const Aws::Map< Aws::String, Aws::Vector< Aws::String > > &value)
AWS_INSPECTOR2_API UpdateCisTargets(Aws::Utils::Json::JsonView jsonValue)
UpdateCisTargets & AddTargetResourceTags(const Aws::String &key, Aws::Vector< Aws::String > &&value)
const Aws::Vector< Aws::String > & GetAccountIds() const
UpdateCisTargets & AddTargetResourceTags(const char *key, Aws::Vector< Aws::String > &&value)
UpdateCisTargets & AddAccountIds(Aws::String &&value)
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetTargetResourceTags() const
void SetTargetResourceTags(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
UpdateCisTargets & WithTargetResourceTags(Aws::Map< Aws::String, Aws::Vector< Aws::String > > &&value)
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