AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
CreateRunGroupRequest.h
1
6#pragma once
7#include <aws/omics/Omics_EXPORTS.h>
8#include <aws/omics/OmicsRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace Omics
17{
18namespace Model
19{
20
24 {
25 public:
26 AWS_OMICS_API CreateRunGroupRequest() = default;
27
28 // Service request name is the Operation name which will send this request out,
29 // each operation should has unique request name, so that we can get operation's name from this request.
30 // Note: this is not true for response, multiple operations may have the same response name,
31 // so we can not get operation's name from response.
32 inline virtual const char* GetServiceRequestName() const override { return "CreateRunGroup"; }
33
34 AWS_OMICS_API Aws::String SerializePayload() const override;
35
36
38
41 inline const Aws::String& GetName() const { return m_name; }
42 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
43 template<typename NameT = Aws::String>
44 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
45 template<typename NameT = Aws::String>
46 CreateRunGroupRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
48
50
54 inline int GetMaxCpus() const { return m_maxCpus; }
55 inline bool MaxCpusHasBeenSet() const { return m_maxCpusHasBeenSet; }
56 inline void SetMaxCpus(int value) { m_maxCpusHasBeenSet = true; m_maxCpus = value; }
57 inline CreateRunGroupRequest& WithMaxCpus(int value) { SetMaxCpus(value); return *this;}
59
61
64 inline int GetMaxRuns() const { return m_maxRuns; }
65 inline bool MaxRunsHasBeenSet() const { return m_maxRunsHasBeenSet; }
66 inline void SetMaxRuns(int value) { m_maxRunsHasBeenSet = true; m_maxRuns = value; }
67 inline CreateRunGroupRequest& WithMaxRuns(int value) { SetMaxRuns(value); return *this;}
69
71
75 inline int GetMaxDuration() const { return m_maxDuration; }
76 inline bool MaxDurationHasBeenSet() const { return m_maxDurationHasBeenSet; }
77 inline void SetMaxDuration(int value) { m_maxDurationHasBeenSet = true; m_maxDuration = value; }
78 inline CreateRunGroupRequest& WithMaxDuration(int value) { SetMaxDuration(value); return *this;}
80
82
85 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
86 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
87 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
88 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
89 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
90 CreateRunGroupRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
91 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
92 CreateRunGroupRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
93 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
94 }
96
98
102 inline const Aws::String& GetRequestId() const { return m_requestId; }
103 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
104 template<typename RequestIdT = Aws::String>
105 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
106 template<typename RequestIdT = Aws::String>
107 CreateRunGroupRequest& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
109
111
115 inline int GetMaxGpus() const { return m_maxGpus; }
116 inline bool MaxGpusHasBeenSet() const { return m_maxGpusHasBeenSet; }
117 inline void SetMaxGpus(int value) { m_maxGpusHasBeenSet = true; m_maxGpus = value; }
118 inline CreateRunGroupRequest& WithMaxGpus(int value) { SetMaxGpus(value); return *this;}
120 private:
121
122 Aws::String m_name;
123 bool m_nameHasBeenSet = false;
124
125 int m_maxCpus{0};
126 bool m_maxCpusHasBeenSet = false;
127
128 int m_maxRuns{0};
129 bool m_maxRunsHasBeenSet = false;
130
131 int m_maxDuration{0};
132 bool m_maxDurationHasBeenSet = false;
133
135 bool m_tagsHasBeenSet = false;
136
138 bool m_requestIdHasBeenSet = true;
139
140 int m_maxGpus{0};
141 bool m_maxGpusHasBeenSet = false;
142 };
143
144} // namespace Model
145} // namespace Omics
146} // namespace Aws
CreateRunGroupRequest & WithRequestId(RequestIdT &&value)
virtual const char * GetServiceRequestName() const override
AWS_OMICS_API CreateRunGroupRequest()=default
CreateRunGroupRequest & WithMaxCpus(int value)
CreateRunGroupRequest & WithTags(TagsT &&value)
CreateRunGroupRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
AWS_OMICS_API Aws::String SerializePayload() const override
CreateRunGroupRequest & WithMaxGpus(int value)
CreateRunGroupRequest & WithMaxDuration(int value)
CreateRunGroupRequest & WithName(NameT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateRunGroupRequest & WithMaxRuns(int value)
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