AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
CreateRobotApplicationRequest.h
1
6#pragma once
7#include <aws/robomaker/RoboMaker_EXPORTS.h>
8#include <aws/robomaker/RoboMakerRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/memory/stl/AWSVector.h>
11#include <aws/robomaker/model/RobotSoftwareSuite.h>
12#include <aws/core/utils/memory/stl/AWSMap.h>
13#include <aws/robomaker/model/Environment.h>
14#include <aws/robomaker/model/SourceConfig.h>
15#include <utility>
16
17namespace Aws
18{
19namespace RoboMaker
20{
21namespace Model
22{
23
27 {
28 public:
29 AWS_ROBOMAKER_API CreateRobotApplicationRequest() = default;
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateRobotApplication"; }
36
37 AWS_ROBOMAKER_API Aws::String SerializePayload() const override;
38
39
41
44 inline const Aws::String& GetName() const { return m_name; }
45 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
46 template<typename NameT = Aws::String>
47 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
48 template<typename NameT = Aws::String>
49 CreateRobotApplicationRequest& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
51
53
56 inline const Aws::Vector<SourceConfig>& GetSources() const { return m_sources; }
57 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
58 template<typename SourcesT = Aws::Vector<SourceConfig>>
59 void SetSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources = std::forward<SourcesT>(value); }
60 template<typename SourcesT = Aws::Vector<SourceConfig>>
61 CreateRobotApplicationRequest& WithSources(SourcesT&& value) { SetSources(std::forward<SourcesT>(value)); return *this;}
62 template<typename SourcesT = SourceConfig>
63 CreateRobotApplicationRequest& AddSources(SourcesT&& value) { m_sourcesHasBeenSet = true; m_sources.emplace_back(std::forward<SourcesT>(value)); return *this; }
65
67
70 inline const RobotSoftwareSuite& GetRobotSoftwareSuite() const { return m_robotSoftwareSuite; }
71 inline bool RobotSoftwareSuiteHasBeenSet() const { return m_robotSoftwareSuiteHasBeenSet; }
72 template<typename RobotSoftwareSuiteT = RobotSoftwareSuite>
73 void SetRobotSoftwareSuite(RobotSoftwareSuiteT&& value) { m_robotSoftwareSuiteHasBeenSet = true; m_robotSoftwareSuite = std::forward<RobotSoftwareSuiteT>(value); }
74 template<typename RobotSoftwareSuiteT = RobotSoftwareSuite>
75 CreateRobotApplicationRequest& WithRobotSoftwareSuite(RobotSoftwareSuiteT&& value) { SetRobotSoftwareSuite(std::forward<RobotSoftwareSuiteT>(value)); return *this;}
77
79
83 inline const Aws::Map<Aws::String, Aws::String>& GetTags() const { return m_tags; }
84 inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
85 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
86 void SetTags(TagsT&& value) { m_tagsHasBeenSet = true; m_tags = std::forward<TagsT>(value); }
87 template<typename TagsT = Aws::Map<Aws::String, Aws::String>>
88 CreateRobotApplicationRequest& WithTags(TagsT&& value) { SetTags(std::forward<TagsT>(value)); return *this;}
89 template<typename TagsKeyT = Aws::String, typename TagsValueT = Aws::String>
90 CreateRobotApplicationRequest& AddTags(TagsKeyT&& key, TagsValueT&& value) {
91 m_tagsHasBeenSet = true; m_tags.emplace(std::forward<TagsKeyT>(key), std::forward<TagsValueT>(value)); return *this;
92 }
94
96
100 inline const Environment& GetEnvironment() const { return m_environment; }
101 inline bool EnvironmentHasBeenSet() const { return m_environmentHasBeenSet; }
102 template<typename EnvironmentT = Environment>
103 void SetEnvironment(EnvironmentT&& value) { m_environmentHasBeenSet = true; m_environment = std::forward<EnvironmentT>(value); }
104 template<typename EnvironmentT = Environment>
105 CreateRobotApplicationRequest& WithEnvironment(EnvironmentT&& value) { SetEnvironment(std::forward<EnvironmentT>(value)); return *this;}
107 private:
108
109 Aws::String m_name;
110 bool m_nameHasBeenSet = false;
111
113 bool m_sourcesHasBeenSet = false;
114
115 RobotSoftwareSuite m_robotSoftwareSuite;
116 bool m_robotSoftwareSuiteHasBeenSet = false;
117
119 bool m_tagsHasBeenSet = false;
120
121 Environment m_environment;
122 bool m_environmentHasBeenSet = false;
123 };
124
125} // namespace Model
126} // namespace RoboMaker
127} // namespace Aws
CreateRobotApplicationRequest & WithName(NameT &&value)
AWS_ROBOMAKER_API CreateRobotApplicationRequest()=default
CreateRobotApplicationRequest & AddSources(SourcesT &&value)
CreateRobotApplicationRequest & WithEnvironment(EnvironmentT &&value)
CreateRobotApplicationRequest & WithTags(TagsT &&value)
CreateRobotApplicationRequest & WithSources(SourcesT &&value)
CreateRobotApplicationRequest & AddTags(TagsKeyT &&key, TagsValueT &&value)
const Aws::Map< Aws::String, Aws::String > & GetTags() const
AWS_ROBOMAKER_API Aws::String SerializePayload() const override
CreateRobotApplicationRequest & WithRobotSoftwareSuite(RobotSoftwareSuiteT &&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
std::vector< T, Aws::Allocator< T > > Vector