AWS SDK for C++  1.9.123
AWS SDK for C++
CreateFleetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace RoboMaker
16 {
17 namespace Model
18 {
19 
23  {
24  public:
26 
27  // Service request name is the Operation name which will send this request out,
28  // each operation should has unique request name, so that we can get operation's name from this request.
29  // Note: this is not true for response, multiple operations may have the same response name,
30  // so we can not get operation's name from response.
31  inline virtual const char* GetServiceRequestName() const override { return "CreateFleet"; }
32 
33  Aws::String SerializePayload() const override;
34 
35 
39  inline const Aws::String& GetName() const{ return m_name; }
40 
44  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
45 
49  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
50 
54  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
55 
59  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
60 
64  inline CreateFleetRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
65 
69  inline CreateFleetRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
70 
74  inline CreateFleetRequest& WithName(const char* value) { SetName(value); return *this;}
75 
76 
81  inline const Aws::Map<Aws::String, Aws::String>& GetTags() const{ return m_tags; }
82 
87  inline bool TagsHasBeenSet() const { return m_tagsHasBeenSet; }
88 
93  inline void SetTags(const Aws::Map<Aws::String, Aws::String>& value) { m_tagsHasBeenSet = true; m_tags = value; }
94 
99  inline void SetTags(Aws::Map<Aws::String, Aws::String>&& value) { m_tagsHasBeenSet = true; m_tags = std::move(value); }
100 
105  inline CreateFleetRequest& WithTags(const Aws::Map<Aws::String, Aws::String>& value) { SetTags(value); return *this;}
106 
111  inline CreateFleetRequest& WithTags(Aws::Map<Aws::String, Aws::String>&& value) { SetTags(std::move(value)); return *this;}
112 
117  inline CreateFleetRequest& AddTags(const Aws::String& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
118 
123  inline CreateFleetRequest& AddTags(Aws::String&& key, const Aws::String& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
124 
129  inline CreateFleetRequest& AddTags(const Aws::String& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
130 
135  inline CreateFleetRequest& AddTags(Aws::String&& key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), std::move(value)); return *this; }
136 
141  inline CreateFleetRequest& AddTags(const char* key, Aws::String&& value) { m_tagsHasBeenSet = true; m_tags.emplace(key, std::move(value)); return *this; }
142 
147  inline CreateFleetRequest& AddTags(Aws::String&& key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(std::move(key), value); return *this; }
148 
153  inline CreateFleetRequest& AddTags(const char* key, const char* value) { m_tagsHasBeenSet = true; m_tags.emplace(key, value); return *this; }
154 
155  private:
156 
157  Aws::String m_name;
158  bool m_nameHasBeenSet;
159 
161  bool m_tagsHasBeenSet;
162  };
163 
164 } // namespace Model
165 } // namespace RoboMaker
166 } // namespace Aws
Aws::RoboMaker::Model::CreateFleetRequest::AddTags
CreateFleetRequest & AddTags(Aws::String &&key, const char *value)
Definition: CreateFleetRequest.h:147
Aws::RoboMaker::Model::CreateFleetRequest::SetTags
void SetTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateFleetRequest.h:99
Aws::RoboMaker::Model::CreateFleetRequest::CreateFleetRequest
CreateFleetRequest()
Aws::RoboMaker::Model::CreateFleetRequest::AddTags
CreateFleetRequest & AddTags(const char *key, const char *value)
Definition: CreateFleetRequest.h:153
Aws::RoboMaker::Model::CreateFleetRequest::WithTags
CreateFleetRequest & WithTags(Aws::Map< Aws::String, Aws::String > &&value)
Definition: CreateFleetRequest.h:111
Aws::RoboMaker::Model::CreateFleetRequest::SerializePayload
Aws::String SerializePayload() const override
RoboMakerRequest.h
Aws::RoboMaker::Model::CreateFleetRequest::GetTags
const Aws::Map< Aws::String, Aws::String > & GetTags() const
Definition: CreateFleetRequest.h:81
Aws::RoboMaker::Model::CreateFleetRequest::AddTags
CreateFleetRequest & AddTags(const char *key, Aws::String &&value)
Definition: CreateFleetRequest.h:141
Aws::RoboMaker::Model::CreateFleetRequest::WithName
CreateFleetRequest & WithName(const char *value)
Definition: CreateFleetRequest.h:74
AWS_ROBOMAKER_API
#define AWS_ROBOMAKER_API
Definition: RoboMaker_EXPORTS.h:28
Aws::RoboMaker::Model::CreateFleetRequest::AddTags
CreateFleetRequest & AddTags(const Aws::String &key, const Aws::String &value)
Definition: CreateFleetRequest.h:117
Aws::RoboMaker::Model::CreateFleetRequest::SetName
void SetName(const Aws::String &value)
Definition: CreateFleetRequest.h:49
Aws::RoboMaker::Model::CreateFleetRequest::SetName
void SetName(Aws::String &&value)
Definition: CreateFleetRequest.h:54
Aws::RoboMaker::Model::CreateFleetRequest
Definition: CreateFleetRequest.h:23
Aws::RoboMaker::Model::CreateFleetRequest::GetName
const Aws::String & GetName() const
Definition: CreateFleetRequest.h:39
RoboMaker_EXPORTS.h
Aws::RoboMaker::Model::CreateFleetRequest::WithName
CreateFleetRequest & WithName(const Aws::String &value)
Definition: CreateFleetRequest.h:64
AWSString.h
Aws::RoboMaker::Model::CreateFleetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: CreateFleetRequest.h:31
Aws::RoboMaker::Model::CreateFleetRequest::WithName
CreateFleetRequest & WithName(Aws::String &&value)
Definition: CreateFleetRequest.h:69
Aws
Definition: AccessManagementClient.h:15
Aws::RoboMaker::RoboMakerRequest
Definition: RoboMakerRequest.h:17
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::RoboMaker::Model::CreateFleetRequest::AddTags
CreateFleetRequest & AddTags(Aws::String &&key, const Aws::String &value)
Definition: CreateFleetRequest.h:123
Aws::RoboMaker::Model::CreateFleetRequest::NameHasBeenSet
bool NameHasBeenSet() const
Definition: CreateFleetRequest.h:44
Aws::RoboMaker::Model::CreateFleetRequest::SetName
void SetName(const char *value)
Definition: CreateFleetRequest.h:59
Aws::RoboMaker::Model::CreateFleetRequest::AddTags
CreateFleetRequest & AddTags(Aws::String &&key, Aws::String &&value)
Definition: CreateFleetRequest.h:135
Aws::RoboMaker::Model::CreateFleetRequest::AddTags
CreateFleetRequest & AddTags(const Aws::String &key, Aws::String &&value)
Definition: CreateFleetRequest.h:129
AWSMap.h
Aws::RoboMaker::Model::CreateFleetRequest::TagsHasBeenSet
bool TagsHasBeenSet() const
Definition: CreateFleetRequest.h:87
Aws::RoboMaker::Model::CreateFleetRequest::SetTags
void SetTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateFleetRequest.h:93
Aws::Map
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
Definition: AWSMap.h:19
Aws::RoboMaker::Model::CreateFleetRequest::WithTags
CreateFleetRequest & WithTags(const Aws::Map< Aws::String, Aws::String > &value)
Definition: CreateFleetRequest.h:105