AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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:
27 AWS_FIS_API StartExperimentRequest() = default;
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 template<typename ClientTokenT = Aws::String>
46 void SetClientToken(ClientTokenT&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::forward<ClientTokenT>(value); }
47 template<typename ClientTokenT = Aws::String>
48 StartExperimentRequest& WithClientToken(ClientTokenT&& value) { SetClientToken(std::forward<ClientTokenT>(value)); return *this;}
50
52
55 inline const Aws::String& GetExperimentTemplateId() const { return m_experimentTemplateId; }
56 inline bool ExperimentTemplateIdHasBeenSet() const { return m_experimentTemplateIdHasBeenSet; }
57 template<typename ExperimentTemplateIdT = Aws::String>
58 void SetExperimentTemplateId(ExperimentTemplateIdT&& value) { m_experimentTemplateIdHasBeenSet = true; m_experimentTemplateId = std::forward<ExperimentTemplateIdT>(value); }
59 template<typename ExperimentTemplateIdT = Aws::String>
60 StartExperimentRequest& WithExperimentTemplateId(ExperimentTemplateIdT&& value) { SetExperimentTemplateId(std::forward<ExperimentTemplateIdT>(value)); return *this;}
62
64
67 inline const StartExperimentExperimentOptionsInput& GetExperimentOptions() const { return m_experimentOptions; }
68 inline bool ExperimentOptionsHasBeenSet() const { return m_experimentOptionsHasBeenSet; }
69 template<typename ExperimentOptionsT = StartExperimentExperimentOptionsInput>
70 void SetExperimentOptions(ExperimentOptionsT&& value) { m_experimentOptionsHasBeenSet = true; m_experimentOptions = std::forward<ExperimentOptionsT>(value); }
71 template<typename ExperimentOptionsT = StartExperimentExperimentOptionsInput>
72 StartExperimentRequest& WithExperimentOptions(ExperimentOptionsT&& value) { SetExperimentOptions(std::forward<ExperimentOptionsT>(value)); return *this;}
74
76
79 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
80 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
81 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
82 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
83 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
84 StartExperimentRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
85 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
86 StartExperimentRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
87 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
88 }
90 private:
91
93 bool m_clientTokenHasBeenSet = true;
94
95 Aws::String m_experimentTemplateId;
96 bool m_experimentTemplateIdHasBeenSet = false;
97
98 StartExperimentExperimentOptionsInput m_experimentOptions;
99 bool m_experimentOptionsHasBeenSet = false;
100
102 bool m_tagsHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace FIS
107} // 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