AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ExperimentTemplateTarget.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/ExperimentTemplateTargetFilter.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:
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 ExperimentTemplateTarget& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
53 inline ExperimentTemplateTarget& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
54 inline ExperimentTemplateTarget& 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); }
66 inline ExperimentTemplateTarget& WithResourceArns(Aws::Vector<Aws::String>&& value) { SetResourceArns(std::move(value)); return *this;}
67 inline ExperimentTemplateTarget& AddResourceArns(const Aws::String& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(value); return *this; }
68 inline ExperimentTemplateTarget& AddResourceArns(Aws::String&& value) { m_resourceArnsHasBeenSet = true; m_resourceArns.push_back(std::move(value)); return *this; }
69 inline ExperimentTemplateTarget& 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); }
82 inline ExperimentTemplateTarget& AddResourceTags(const Aws::String& key, const Aws::String& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, value); return *this; }
83 inline ExperimentTemplateTarget& AddResourceTags(Aws::String&& key, const Aws::String& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::move(key), value); return *this; }
84 inline ExperimentTemplateTarget& AddResourceTags(const Aws::String& key, Aws::String&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, std::move(value)); return *this; }
85 inline ExperimentTemplateTarget& AddResourceTags(Aws::String&& key, Aws::String&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::move(key), std::move(value)); return *this; }
86 inline ExperimentTemplateTarget& AddResourceTags(const char* key, Aws::String&& value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, std::move(value)); return *this; }
87 inline ExperimentTemplateTarget& AddResourceTags(Aws::String&& key, const char* value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(std::move(key), value); return *this; }
88 inline ExperimentTemplateTarget& AddResourceTags(const char* key, const char* value) { m_resourceTagsHasBeenSet = true; m_resourceTags.emplace(key, value); return *this; }
90
92
96 inline const Aws::Vector<ExperimentTemplateTargetFilter>& GetFilters() const{ return m_filters; }
97 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
98 inline void SetFilters(const Aws::Vector<ExperimentTemplateTargetFilter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
99 inline void SetFilters(Aws::Vector<ExperimentTemplateTargetFilter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
102 inline ExperimentTemplateTarget& AddFilters(const ExperimentTemplateTargetFilter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
103 inline ExperimentTemplateTarget& AddFilters(ExperimentTemplateTargetFilter&& 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 ExperimentTemplateTarget& WithSelectionMode(const Aws::String& value) { SetSelectionMode(value); return *this;}
116 inline ExperimentTemplateTarget& WithSelectionMode(Aws::String&& value) { SetSelectionMode(std::move(value)); return *this;}
117 inline ExperimentTemplateTarget& 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); }
130 inline ExperimentTemplateTarget& AddParameters(const Aws::String& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, value); return *this; }
131 inline ExperimentTemplateTarget& AddParameters(Aws::String&& key, const Aws::String& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
132 inline ExperimentTemplateTarget& AddParameters(const Aws::String& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
133 inline ExperimentTemplateTarget& AddParameters(Aws::String&& key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), std::move(value)); return *this; }
134 inline ExperimentTemplateTarget& AddParameters(const char* key, Aws::String&& value) { m_parametersHasBeenSet = true; m_parameters.emplace(key, std::move(value)); return *this; }
135 inline ExperimentTemplateTarget& AddParameters(Aws::String&& key, const char* value) { m_parametersHasBeenSet = true; m_parameters.emplace(std::move(key), value); return *this; }
136 inline ExperimentTemplateTarget& 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
ExperimentTemplateTarget & AddResourceArns(Aws::String &&value)
ExperimentTemplateTarget & WithSelectionMode(const Aws::String &value)
ExperimentTemplateTarget & WithResourceTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetResourceTags(const Aws::Map< Aws::String, Aws::String > &value)
ExperimentTemplateTarget & WithResourceType(Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetParameters() const
void SetResourceTags(Aws::Map< Aws::String, Aws::String > &&value)
const Aws::Vector< Aws::String > & GetResourceArns() const
ExperimentTemplateTarget & AddResourceTags(const Aws::String &key, const Aws::String &value)
ExperimentTemplateTarget & AddParameters(Aws::String &&key, Aws::String &&value)
void SetParameters(Aws::Map< Aws::String, Aws::String > &&value)
void SetResourceArns(const Aws::Vector< Aws::String > &value)
ExperimentTemplateTarget & WithResourceTags(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Map< Aws::String, Aws::String > & GetResourceTags() const
AWS_FIS_API Aws::Utils::Json::JsonValue Jsonize() const
ExperimentTemplateTarget & WithSelectionMode(const char *value)
void SetFilters(const Aws::Vector< ExperimentTemplateTargetFilter > &value)
ExperimentTemplateTarget & WithSelectionMode(Aws::String &&value)
ExperimentTemplateTarget & AddResourceTags(Aws::String &&key, Aws::String &&value)
ExperimentTemplateTarget & WithResourceArns(Aws::Vector< Aws::String > &&value)
ExperimentTemplateTarget & AddResourceTags(const char *key, Aws::String &&value)
AWS_FIS_API ExperimentTemplateTarget(Aws::Utils::Json::JsonView jsonValue)
void SetFilters(Aws::Vector< ExperimentTemplateTargetFilter > &&value)
void SetParameters(const Aws::Map< Aws::String, Aws::String > &value)
ExperimentTemplateTarget & AddResourceTags(Aws::String &&key, const Aws::String &value)
ExperimentTemplateTarget & AddParameters(Aws::String &&key, const Aws::String &value)
ExperimentTemplateTarget & AddParameters(const char *key, const char *value)
void SetResourceArns(Aws::Vector< Aws::String > &&value)
ExperimentTemplateTarget & WithParameters(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::Vector< ExperimentTemplateTargetFilter > & GetFilters() const
ExperimentTemplateTarget & WithResourceType(const Aws::String &value)
ExperimentTemplateTarget & WithParameters(Aws::Map< Aws::String, Aws::String > &&value)
ExperimentTemplateTarget & AddParameters(const char *key, Aws::String &&value)
ExperimentTemplateTarget & WithFilters(const Aws::Vector< ExperimentTemplateTargetFilter > &value)
ExperimentTemplateTarget & WithResourceType(const char *value)
ExperimentTemplateTarget & WithResourceArns(const Aws::Vector< Aws::String > &value)
AWS_FIS_API ExperimentTemplateTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
ExperimentTemplateTarget & WithFilters(Aws::Vector< ExperimentTemplateTargetFilter > &&value)
ExperimentTemplateTarget & AddResourceArns(const Aws::String &value)
ExperimentTemplateTarget & AddFilters(ExperimentTemplateTargetFilter &&value)
ExperimentTemplateTarget & AddParameters(const Aws::String &key, Aws::String &&value)
ExperimentTemplateTarget & AddResourceArns(const char *value)
ExperimentTemplateTarget & AddFilters(const ExperimentTemplateTargetFilter &value)
ExperimentTemplateTarget & AddResourceTags(const char *key, const char *value)
ExperimentTemplateTarget & AddResourceTags(const Aws::String &key, Aws::String &&value)
ExperimentTemplateTarget & AddResourceTags(Aws::String &&key, const char *value)
ExperimentTemplateTarget & AddParameters(Aws::String &&key, const char *value)
ExperimentTemplateTarget & AddParameters(const Aws::String &key, const 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