AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
StartExperimentRequest.h
1
6#pragma once
7#include <aws/core/utils/UUID.h>
8#include <aws/core/utils/memory/stl/AWSMap.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/fis/FISRequest.h>
11#include <aws/fis/FIS_EXPORTS.h>
12#include <aws/fis/model/StartExperimentExperimentOptionsInput.h>
13
14#include <utility>
15
16namespace Aws {
17namespace FIS {
18namespace Model {
19
23 public:
24 AWS_FIS_API StartExperimentRequest() = default;
25
26 // Service request name is the Operation name which will send this request out,
27 // each operation should has unique request name, so that we can get operation's name from this request.
28 // Note: this is not true for response, multiple operations may have the same response name,
29 // so we can not get operation's name from response.
30 inline virtual const char* GetServiceRequestName() const override { return "StartExperiment"; }
31
32 AWS_FIS_API Aws::String SerializePayload() const override;
33
35
39 inline const Aws::String& GetClientToken() const { return m_clientToken; }
40 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
41 template <typename ClientTokenT = Aws::String>
42 void SetClientToken(ClientTokenT&& value) {
43 m_clientTokenHasBeenSet = true;
44 m_clientToken = std::forward<ClientTokenT>(value);
45 }
46 template <typename ClientTokenT = Aws::String>
47 StartExperimentRequest& WithClientToken(ClientTokenT&& value) {
48 SetClientToken(std::forward<ClientTokenT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetExperimentTemplateId() const { return m_experimentTemplateId; }
58 inline bool ExperimentTemplateIdHasBeenSet() const { return m_experimentTemplateIdHasBeenSet; }
59 template <typename ExperimentTemplateIdT = Aws::String>
60 void SetExperimentTemplateId(ExperimentTemplateIdT&& value) {
61 m_experimentTemplateIdHasBeenSet = true;
62 m_experimentTemplateId = std::forward<ExperimentTemplateIdT>(value);
63 }
64 template <typename ExperimentTemplateIdT = Aws::String>
65 StartExperimentRequest& WithExperimentTemplateId(ExperimentTemplateIdT&& value) {
66 SetExperimentTemplateId(std::forward<ExperimentTemplateIdT>(value));
67 return *this;
68 }
70
72
75 inline const StartExperimentExperimentOptionsInput& GetExperimentOptions() const { return m_experimentOptions; }
76 inline bool ExperimentOptionsHasBeenSet() const { return m_experimentOptionsHasBeenSet; }
77 template <typename ExperimentOptionsT = StartExperimentExperimentOptionsInput>
78 void SetExperimentOptions(ExperimentOptionsT&& value) {
79 m_experimentOptionsHasBeenSet = true;
80 m_experimentOptions = std::forward<ExperimentOptionsT>(value);
81 }
82 template <typename ExperimentOptionsT = StartExperimentExperimentOptionsInput>
83 StartExperimentRequest& WithExperimentOptions(ExperimentOptionsT&& value) {
84 SetExperimentOptions(std::forward<ExperimentOptionsT>(value));
85 return *this;
86 }
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
94 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
95 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
96 void SetTags(TagsT&& value) {
97 m_tagsHasBeenSet = true;
98 m_tags = std::forward<TagsT>(value);
99 }
100 template <typename TagsT = Aws::Map<Aws::String, Aws::String>>
102 SetTags(std::forward<TagsT>(value));
103 return *this;
104 }
105 template <typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
106 StartExperimentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
107 m_tagsHasBeenSet = true;
108 m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value));
109 return *this;
110 }
112 private:
114
115 Aws::String m_experimentTemplateId;
116
117 StartExperimentExperimentOptionsInput m_experimentOptions;
118
120 bool m_clientTokenHasBeenSet = true;
121 bool m_experimentTemplateIdHasBeenSet = false;
122 bool m_experimentOptionsHasBeenSet = false;
123 bool m_tagsHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace FIS
128} // namespace Aws
StartExperimentRequest & WithExperimentTemplateId(ExperimentTemplateIdT &&value)
StartExperimentRequest & WithExperimentOptions(ExperimentOptionsT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_FIS_API Aws::String SerializePayload() const override
StartExperimentRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
void SetExperimentOptions(ExperimentOptionsT &&value)
StartExperimentRequest & WithClientToken(ClientTokenT &&value)
StartExperimentRequest & WithTags(TagsT &&value)
AWS_FIS_API StartExperimentRequest()=default
void SetExperimentTemplateId(ExperimentTemplateIdT &&value)
virtual const char * GetServiceRequestName() const override
const StartExperimentExperimentOptionsInput & GetExperimentOptions() const
const Aws::String & GetExperimentTemplateId() const
static Aws::Utils::UUID PseudoRandomUUID()
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