AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
StartExperimentRequest.h
1
6#pragma once
7#include <aws/fis/FIS_EXPORTS.h>
8#include <aws/fis/FISRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/fis/model/StartExperimentExperimentOptionsInput.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13#include <aws/core/utils/UUID.h>
14
15namespace Aws
16{
17namespace FIS
18{
19namespace Model
20{
21
25 {
26 public:
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "StartExperiment"; }
34
35 AWS_FIS_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::String& GetClientToken() const{ return m_clientToken; }
44 inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; }
45 inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; }
46 inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); }
47 inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); }
48 inline StartExperimentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;}
49 inline StartExperimentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;}
50 inline StartExperimentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;}
52
54
57 inline const Aws::String& GetExperimentTemplateId() const{ return m_experimentTemplateId; }
58 inline bool ExperimentTemplateIdHasBeenSet() const { return m_experimentTemplateIdHasBeenSet; }
59 inline void SetExperimentTemplateId(const Aws::String& value) { m_experimentTemplateIdHasBeenSet = true; m_experimentTemplateId = value; }
60 inline void SetExperimentTemplateId(Aws::String&& value) { m_experimentTemplateIdHasBeenSet = true; m_experimentTemplateId = std::move(value); }
61 inline void SetExperimentTemplateId(const char* value) { m_experimentTemplateIdHasBeenSet = true; m_experimentTemplateId.assign(value); }
63 inline StartExperimentRequest& WithExperimentTemplateId(Aws::String&& value) { SetExperimentTemplateId(std::move(value)); return *this;}
64 inline StartExperimentRequest& WithExperimentTemplateId(const char* value) { SetExperimentTemplateId(value); return *this;}
66
68
71 inline const StartExperimentExperimentOptionsInput& GetExperimentOptions() const{ return m_experimentOptions; }
72 inline bool ExperimentOptionsHasBeenSet() const { return m_experimentOptionsHasBeenSet; }
73 inline void SetExperimentOptions(const StartExperimentExperimentOptionsInput& value) { m_experimentOptionsHasBeenSet = true; m_experimentOptions = value; }
74 inline void SetExperimentOptions(StartExperimentExperimentOptionsInput&& value) { m_experimentOptionsHasBeenSet = true; m_experimentOptions = std::move(value); }
78
80
83 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
86 inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
87 inline StartExperimentRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
88 inline StartExperimentRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
89 inline StartExperimentRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
90 inline StartExperimentRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
91 inline StartExperimentRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
92 inline StartExperimentRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
93 inline StartExperimentRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
94 inline StartExperimentRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
95 inline StartExperimentRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
97 private:
98
99 Aws::String m_clientToken;
100 bool m_clientTokenHasBeenSet = false;
101
102 Aws::String m_experimentTemplateId;
103 bool m_experimentTemplateIdHasBeenSet = false;
104
105 StartExperimentExperimentOptionsInput m_experimentOptions;
106 bool m_experimentOptionsHasBeenSet = false;
107
109 bool m_tagsHasBeenSet = false;
110 };
111
112} // namespace Model
113} // namespace FIS
114} // namespace Aws
void SetClientToken(const Aws::String &value)
void SetExperimentOptions(StartExperimentExperimentOptionsInput &&value)
StartExperimentRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetExperimentOptions(const StartExperimentExperimentOptionsInput &value)
StartExperimentRequest & WithExperimentOptions(StartExperimentExperimentOptionsInput &&value)
StartExperimentRequest & AddTags(const Aws::String &key, const Aws::String &value)
StartExperimentRequest & WithExperimentTemplateId(const Aws::String &value)
StartExperimentRequest & AddTags(Aws::String &&key, const Aws::String &value)
StartExperimentRequest & WithExperimentTemplateId(const char *value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
StartExperimentRequest & WithClientToken(const char *value)
StartExperimentRequest & WithExperimentTemplateId(Aws::String &&value)
StartExperimentRequest & AddTags(Aws::String &&key, Aws::String &&value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
AWS_FIS_API Aws::String SerializePayload() const override
void SetExperimentTemplateId(const Aws::String &value)
StartExperimentRequest & WithClientToken(Aws::String &&value)
StartExperimentRequest & WithExperimentOptions(const StartExperimentExperimentOptionsInput &value)
StartExperimentRequest & AddTags(Aws::String &&key, const char *value)
StartExperimentRequest & AddTags(const char *key, const char *value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
StartExperimentRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
StartExperimentRequest & AddTags(const Aws::String &key, Aws::String &&value)
virtual const char * GetServiceRequestName() const override
StartExperimentRequest & AddTags(const char *key, Aws::String &&value)
const StartExperimentExperimentOptionsInput & GetExperimentOptions() const
const Aws::String & GetExperimentTemplateId() const
StartExperimentRequest & WithClientToken(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