AWS SDK for C++  1.8.71
AWS SDK for C++
CreateRobotApplicationRequest.h
Go to the documentation of this file.
1 
6 #pragma once
14 #include <utility>
15 
16 namespace Aws
17 {
18 namespace RoboMaker
19 {
20 namespace Model
21 {
22 
26  {
27  public:
29 
30  // Service request name is the Operation name which will send this request out,
31  // each operation should has unique request name, so that we can get operation's name from this request.
32  // Note: this is not true for response, multiple operations may have the same response name,
33  // so we can not get operation's name from response.
34  inline virtual const char* GetServiceRequestName() const override { return "CreateRobotApplication"; }
35 
36  Aws::String SerializePayload() const override;
37 
38 
42  inline const Aws::String& GetName() const{ return m_name; }
43 
47  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
48 
52  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
53 
57  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
58 
62  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
63 
67  inline CreateRobotApplicationRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
68 
72  inline CreateRobotApplicationRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
73 
77  inline CreateRobotApplicationRequest& WithName(const char* value) { SetName(value); return *this;}
78 
79 
83  inline const Aws::Vector<SourceConfig>& GetSources() const{ return m_sources; }
84 
88  inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
89 
93  inline void SetSources(const Aws::Vector<SourceConfig>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
94 
98  inline void SetSources(Aws::Vector<SourceConfig>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
99 
103  inline CreateRobotApplicationRequest& WithSources(const Aws::Vector<SourceConfig>& value) { SetSources(value); return *this;}
104 
108  inline CreateRobotApplicationRequest& WithSources(Aws::Vector<SourceConfig>&& value) { SetSources(std::move(value)); return *this;}
109 
113  inline CreateRobotApplicationRequest& AddSources(const SourceConfig& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
114 
118  inline CreateRobotApplicationRequest& AddSources(SourceConfig&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
119 
120 
125  inline const RobotSoftwareSuite& GetRobotSoftwareSuite() const{ return m_robotSoftwareSuite; }
126 
131  inline bool RobotSoftwareSuiteHasBeenSet() const { return m_robotSoftwareSuiteHasBeenSet; }
132 
137  inline void SetRobotSoftwareSuite(const RobotSoftwareSuite& value) { m_robotSoftwareSuiteHasBeenSet = true; m_robotSoftwareSuite = value; }
138 
143  inline void SetRobotSoftwareSuite(RobotSoftwareSuite&& value) { m_robotSoftwareSuiteHasBeenSet = true; m_robotSoftwareSuite = std::move(value); }
144 
149  inline CreateRobotApplicationRequest& WithRobotSoftwareSuite(const RobotSoftwareSuite& value) { SetRobotSoftwareSuite(value); return *this;}
150 
155  inline CreateRobotApplicationRequest& WithRobotSoftwareSuite(RobotSoftwareSuite&& value) { SetRobotSoftwareSuite(std::move(value)); return *this;}
156 
157 
162  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
163 
168  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
169 
174  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
175 
180  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
181 
186  inline CreateRobotApplicationRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
187 
192  inline CreateRobotApplicationRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
193 
198  inline CreateRobotApplicationRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
199 
204  inline CreateRobotApplicationRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
205 
210  inline CreateRobotApplicationRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
211 
216  inline CreateRobotApplicationRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
217 
222  inline CreateRobotApplicationRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
223 
228  inline CreateRobotApplicationRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
229 
234  inline CreateRobotApplicationRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
235 
236  private:
237 
238  Aws::String m_name;
239  bool m_nameHasBeenSet;
240 
241  Aws::Vector<SourceConfig> m_sources;
242  bool m_sourcesHasBeenSet;
243 
244  RobotSoftwareSuite m_robotSoftwareSuite;
245  bool m_robotSoftwareSuiteHasBeenSet;
246 
248  bool m_tagsHasBeenSet;
249  };
250 
251 } // namespace Model
252 } // namespace RoboMaker
253 } // namespace Aws
CreateRobotApplicationRequest & WithName(const Aws::String &value)
CreateRobotApplicationRequest & AddTags(const Aws::String &key, Aws::String &&value)
CreateRobotApplicationRequest & WithRobotSoftwareSuite(RobotSoftwareSuite &&value)
CreateRobotApplicationRequest & AddTags(const char *key, const char *value)
CreateRobotApplicationRequest & WithName(const char *value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
CreateRobotApplicationRequest & AddSources(const SourceConfig &value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
CreateRobotApplicationRequest & WithRobotSoftwareSuite(const RobotSoftwareSuite &value)
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRobotApplicationRequest & WithSources(Aws::Vector< SourceConfig > &&value)
CreateRobotApplicationRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
CreateRobotApplicationRequest & AddTags(Aws::String &&key, const char *value)
CreateRobotApplicationRequest & AddSources(SourceConfig &&value)
const Aws::Vector< SourceConfig > & GetSources() const
CreateRobotApplicationRequest & WithSources(const Aws::Vector< SourceConfig > &value)
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
CreateRobotApplicationRequest & AddTags(Aws::String &&key, const Aws::String &value)
CreateRobotApplicationRequest & AddTags(const Aws::String &key, const Aws::String &value)
CreateRobotApplicationRequest & AddTags(Aws::String &&key, Aws::String &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
CreateRobotApplicationRequest & AddTags(const char *key, Aws::String &&value)
CreateRobotApplicationRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
void SetSources(const Aws::Vector< SourceConfig > &value)
CreateRobotApplicationRequest & WithName(Aws::String &&value)
#define AWS_ROBOMAKER_API