AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExperimentTarget.h
1
6#pragma once
7#include <aws/fis/FIS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <aws/fis/model/ExperimentTargetFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace FIS
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_FIS_API ExperimentTarget();
41
42
44
47 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
48 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
49 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
50 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
51 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
52 inline ExperimentTarget& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
53 inline ExperimentTarget& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
54 inline ExperimentTarget& WithResourceType(const char* value) { SetResourceType(value); return *this;}
56
58
61 inline const Aws::Vector<Aws::String>& GetResourceArns() const{ return m_resourceArns; }
62 inline bool ResourceArnsHasBeenSet() const { return m_resourceArnsHasBeenSet; }
63 inline void SetResourceArns(const Aws::Vector<Aws::String>& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = value; }
64 inline void SetResourceArns(Aws::Vector<Aws::String>&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns = std::move(value); }
65 inline ExperimentTarget& WithResourceArns(const Aws::Vector<Aws::String>& value) { SetResourceArns(value); return *this;}
66 inline ExperimentTarget& WithResourceArns(Aws::Vector<Aws::String>&& value) { SetResourceArns(std::move(value)); return *this;}
67 inline ExperimentTarget& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
68 inline ExperimentTarget& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
69 inline ExperimentTarget& AddResourceArns(const char* value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
71
73
76 inline const Aws::Map<Aws::String, Aws::String>& GetResourceTags() const{ return m_resourceTags; }
77 inline bool ResourceTagsHasBeenSet() const { return m_resourceTagsHasBeenSet; }
78 inline void SetResourceTags(const Aws::Map<Aws::String, Aws::String>& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = value; }
79 inline void SetResourceTags(Aws::Map<Aws::String, Aws::String>&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags = std::move(value); }
81 inline ExperimentTarget& WithResourceTags(Aws::Map<Aws::String, Aws::String>&& value) { SetResourceTags(std::move(value)); return *this;}
82 inline ExperimentTarget& AddResourceTags(const Aws::String& key, const Aws::String& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, value); return *this; }
83 inline ExperimentTarget& AddResourceTags(Aws::String&& key, const Aws::String& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::move(key), value); return *this; }
84 inline ExperimentTarget& AddResourceTags(const Aws::String& key, Aws::String&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, std::move(value)); return *this; }
85 inline ExperimentTarget& AddResourceTags(Aws::String&& key, Aws::String&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::move(key), std::move(value)); return *this; }
86 inline ExperimentTarget& AddResourceTags(const char* key, Aws::String&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, std::move(value)); return *this; }
87 inline ExperimentTarget& AddResourceTags(Aws::String&& key, const char* value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::move(key), value); return *this; }
88 inline ExperimentTarget& AddResourceTags(const char* key, const char* value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, value); return *this; }
90
92
96 inline const Aws::Vector<ExperimentTargetFilter>& GetFilters() const{ return m_filters; }
97 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
98 inline void SetFilters(const Aws::Vector<ExperimentTargetFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
99 inline void SetFilters(Aws::Vector<ExperimentTargetFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
100 inline ExperimentTarget& WithFilters(const Aws::Vector<ExperimentTargetFilter>& value) { SetFilters(value); return *this;}
101 inline ExperimentTarget& WithFilters(Aws::Vector<ExperimentTargetFilter>&& value) { SetFilters(std::move(value)); return *this;}
102 inline ExperimentTarget& AddFilters(const ExperimentTargetFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
103 inline ExperimentTarget& AddFilters(ExperimentTargetFilter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
105
107
110 inline const Aws::String& GetSelectionMode() const{ return m_selectionMode; }
111 inline bool SelectionModeHasBeenSet() const { return m_selectionModeHasBeenSet; }
112 inline void SetSelectionMode(const Aws::String& value) { m_selectionModeHasBeenSet = true; m_selectionMode = value; }
113 inline void SetSelectionMode(Aws::String&& value) { m_selectionModeHasBeenSet = true; m_selectionMode = std::move(value); }
114 inline void SetSelectionMode(const char* value) { m_selectionModeHasBeenSet = true; m_selectionMode.assign(value); }
115 inline ExperimentTarget& WithSelectionMode(const Aws::String& value) { SetSelectionMode(value); return *this;}
116 inline ExperimentTarget& WithSelectionMode(Aws::String&& value) { SetSelectionMode(std::move(value)); return *this;}
117 inline ExperimentTarget& WithSelectionMode(const char* value) { SetSelectionMode(value); return *this;}
119
121
124 inline const Aws::Map<Aws::String, Aws::String>& GetParameters() const{ return m_parameters; }
125 inline bool ParametersHasBeenSet() const { return m_parametersHasBeenSet; }
126 inline void SetParameters(const Aws::Map<Aws::String, Aws::String>& value) { m_parametersHasBeenSet = true; m_parameters = value; }
127 inline void SetParameters(Aws::Map<Aws::String, Aws::String>&& value) { m_parametersHasBeenSet = true; m_parameters = std::move(value); }
129 inline ExperimentTarget& WithParameters(Aws::Map<Aws::String, Aws::String>&& value) { SetParameters(std::move(value)); return *this;}
130 inline ExperimentTarget& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
131 inline ExperimentTarget& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
132 inline ExperimentTarget& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
133 inline ExperimentTarget& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
134 inline ExperimentTarget& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
135 inline ExperimentTarget& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
136 inline ExperimentTarget& AddParameters(const char* key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
138 private:
139
140 Aws::String m_resourceType;
141 bool m_resourceTypeHasBeenSet = false;
142
143 Aws::Vector<Aws::String> m_resourceArns;
144 bool m_resourceArnsHasBeenSet = false;
145
147 bool m_resourceTagsHasBeenSet = false;
148
150 bool m_filtersHasBeenSet = false;
151
152 Aws::String m_selectionMode;
153 bool m_selectionModeHasBeenSet = false;
154
156 bool m_parametersHasBeenSet = false;
157 };
158
159} // namespace Model
160} // namespace FIS
161} // namespace Aws
ExperimentTarget & WithFilters(Aws::Vector< ExperimentTargetFilter > &&value)
const Aws::Vector< Aws::String > & GetResourceArns() const
void SetResourceArns(Aws::Vector< Aws::String > &&value)
ExperimentTarget & AddParameters(Aws::String &&key, Aws::String &&value)
const Aws::Vector< ExperimentTargetFilter > & GetFilters() const
void SetResourceTags(Aws::Map< Aws::String, Aws::String > &&value)
ExperimentTarget & WithSelectionMode(Aws::String &&value)
ExperimentTarget & WithResourceType(Aws::String &&value)
ExperimentTarget & AddFilters(const ExperimentTargetFilter &value)
ExperimentTarget & WithSelectionMode(const char *value)
void SetFilters(const Aws::Vector< ExperimentTargetFilter > &value)
ExperimentTarget & WithFilters(const Aws::Vector< ExperimentTargetFilter > &value)
ExperimentTarget & AddParameters(Aws::String &&key, const Aws::String &value)
ExperimentTarget & WithResourceTags(Aws::Map< Aws::String, Aws::String > &&value)
ExperimentTarget & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
ExperimentTarget & AddResourceArns(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
const Aws::String & GetResourceType() const
ExperimentTarget & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
ExperimentTarget & WithResourceType(const Aws::String &value)
void SetFilters(Aws::Vector< ExperimentTargetFilter > &&value)
ExperimentTarget & AddParameters(const Aws::String &key, Aws::String &&value)
void SetSelectionMode(const Aws::String &value)
ExperimentTarget & AddParameters(Aws::String &&key, const char *value)
ExperimentTarget & AddFilters(ExperimentTargetFilter &&value)
ExperimentTarget & AddResourceTags(const Aws::String &key, const Aws::String &value)
ExperimentTarget & WithResourceType(const char *value)
ExperimentTarget & AddParameters(const Aws::String &key, const Aws::String &value)
ExperimentTarget & AddResourceTags(Aws::String &&key, const Aws::String &value)
ExperimentTarget & AddResourceTags(Aws::String &&key, Aws::String &&value)
const Aws::String & GetSelectionMode() const
ExperimentTarget & AddResourceTags(Aws::String &&key, const char *value)
void SetSelectionMode(const char *value)
ExperimentTarget & AddParameters(const char *key, const char *value)
ExperimentTarget & WithResourceTags(const Aws::Map< Aws::String, Aws::String > &value)
void SetResourceType(Aws::String &&value)
ExperimentTarget & WithResourceArns(const Aws::Vector< Aws::String > &value)
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FIS_API ExperimentTarget(Aws::Utils::Json::JsonView jsonValue)
ExperimentTarget & AddResourceTags(const char *key, Aws::String &&value)
ExperimentTarget & WithResourceArns(Aws::Vector< Aws::String > &&value)
void SetResourceType(const char *value)
AWS_FIS_API ExperimentTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
ExperimentTarget & AddResourceTags(const Aws::String &key, Aws::String &&value)
ExperimentTarget & AddResourceTags(const char *key, const char *value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
void SetResourceTags(const Aws::Map< Aws::String, Aws::String > &value)
ExperimentTarget & AddResourceArns(const Aws::String &value)
void SetResourceArns(const Aws::Vector< Aws::String > &value)
void SetResourceType(const Aws::String &value)
ExperimentTarget & AddParameters(const char *key, Aws::String &&value)
void SetSelectionMode(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetResourceTags() const
ExperimentTarget & WithSelectionMode(const Aws::String &value)
ExperimentTarget & AddResourceArns(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