AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
CreateCisTargets.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSMap.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/inspector2/Inspector2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector2 {
22namespace Model {
23
30 public:
31 AWS_INSPECTOR2_API CreateCisTargets() = default;
32 AWS_INSPECTOR2_API CreateCisTargets(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::Vector<Aws::String>& GetAccountIds() const { return m_accountIds; }
41 inline bool AccountIdsHasBeenSet() const { return m_accountIdsHasBeenSet; }
42 template <typename AccountIdsT = Aws::Vector<Aws::String>>
43 void SetAccountIds(AccountIdsT&& value) {
44 m_accountIdsHasBeenSet = true;
45 m_accountIds = std::forward<AccountIdsT>(value);
46 }
47 template <typename AccountIdsT = Aws::Vector<Aws::String>>
48 CreateCisTargets& WithAccountIds(AccountIdsT&& value) {
49 SetAccountIds(std::forward<AccountIdsT>(value));
50 return *this;
51 }
52 template <typename AccountIdsT = Aws::String>
53 CreateCisTargets& AddAccountIds(AccountIdsT&& value) {
54 m_accountIdsHasBeenSet = true;
55 m_accountIds.emplace_back(std::forward<AccountIdsT>(value));
56 return *this;
57 }
59
61
64 inline const Aws::Map<Aws::String, Aws::Vector<Aws::String>>& GetTargetResourceTags() const { return m_targetResourceTags; }
65 inline bool TargetResourceTagsHasBeenSet() const { return m_targetResourceTagsHasBeenSet; }
66 template <typename TargetResourceTagsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
67 void SetTargetResourceTags(TargetResourceTagsT&& value) {
68 m_targetResourceTagsHasBeenSet = true;
69 m_targetResourceTags = std::forward<TargetResourceTagsT>(value);
70 }
71 template <typename TargetResourceTagsT = Aws::Map<Aws::String, Aws::Vector<Aws::String>>>
72 CreateCisTargets& WithTargetResourceTags(TargetResourceTagsT&& value) {
73 SetTargetResourceTags(std::forward<TargetResourceTagsT>(value));
74 return *this;
75 }
76 template <typename TargetResourceTagsKeyT = Aws::String, typename TargetResourceTagsValueT = Aws::Vector<Aws::String>>
77 CreateCisTargets& AddTargetResourceTags(TargetResourceTagsKeyT&& key, TargetResourceTagsValueT&& value) {
78 m_targetResourceTagsHasBeenSet = true;
79 m_targetResourceTags.emplace(std::forward<TargetResourceTagsKeyT>(key), std::forward<TargetResourceTagsValueT>(value));
80 return *this;
81 }
83 private:
84 Aws::Vector<Aws::String> m_accountIds;
85
87 bool m_accountIdsHasBeenSet = false;
88 bool m_targetResourceTagsHasBeenSet = false;
89};
90
91} // namespace Model
92} // namespace Inspector2
93} // namespace Aws
CreateCisTargets & WithAccountIds(AccountIdsT &&value)
AWS_INSPECTOR2_API CreateCisTargets()=default
CreateCisTargets & WithTargetResourceTags(TargetResourceTagsT &&value)
const Aws::Map< Aws::String, Aws::Vector< Aws::String > > & GetTargetResourceTags() const
AWS_INSPECTOR2_API Aws::Utils::Json::JsonValue Jsonize() const
CreateCisTargets & AddTargetResourceTags(TargetResourceTagsKeyT &&key, TargetResourceTagsValueT &&value)
AWS_INSPECTOR2_API CreateCisTargets(Aws::Utils::Json::JsonView jsonValue)
void SetTargetResourceTags(TargetResourceTagsT &&value)
AWS_INSPECTOR2_API CreateCisTargets & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< Aws::String > & GetAccountIds() const
CreateCisTargets & AddAccountIds(AccountIdsT &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue