AWS SDK for C++  1.9.21
AWS SDK for C++
UpdateServicePrimaryTaskSetRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ecs/ECS_EXPORTS.h>
8 #include <aws/ecs/ECSRequest.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace ECS
15 {
16 namespace Model
17 {
18 
22  {
23  public:
25 
26  // Service request name is the Operation name which will send this request out,
27  // each operation should has unique request name, so that we can get operation's name from this request.
28  // Note: this is not true for response, multiple operations may have the same response name,
29  // so we can not get operation's name from response.
30  inline virtual const char* GetServiceRequestName() const override { return "UpdateServicePrimaryTaskSet"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
41  inline const Aws::String& GetCluster() const{ return m_cluster; }
42 
47  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
48 
53  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
54 
59  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
60 
65  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
66 
71  inline UpdateServicePrimaryTaskSetRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
72 
77  inline UpdateServicePrimaryTaskSetRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
78 
83  inline UpdateServicePrimaryTaskSetRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
84 
85 
90  inline const Aws::String& GetService() const{ return m_service; }
91 
96  inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
97 
102  inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
103 
108  inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
109 
114  inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
115 
120  inline UpdateServicePrimaryTaskSetRequest& WithService(const Aws::String& value) { SetService(value); return *this;}
121 
126  inline UpdateServicePrimaryTaskSetRequest& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
127 
132  inline UpdateServicePrimaryTaskSetRequest& WithService(const char* value) { SetService(value); return *this;}
133 
134 
139  inline const Aws::String& GetPrimaryTaskSet() const{ return m_primaryTaskSet; }
140 
145  inline bool PrimaryTaskSetHasBeenSet() const { return m_primaryTaskSetHasBeenSet; }
146 
151  inline void SetPrimaryTaskSet(const Aws::String& value) { m_primaryTaskSetHasBeenSet = true; m_primaryTaskSet = value; }
152 
157  inline void SetPrimaryTaskSet(Aws::String&& value) { m_primaryTaskSetHasBeenSet = true; m_primaryTaskSet = std::move(value); }
158 
163  inline void SetPrimaryTaskSet(const char* value) { m_primaryTaskSetHasBeenSet = true; m_primaryTaskSet.assign(value); }
164 
169  inline UpdateServicePrimaryTaskSetRequest& WithPrimaryTaskSet(const Aws::String& value) { SetPrimaryTaskSet(value); return *this;}
170 
175  inline UpdateServicePrimaryTaskSetRequest& WithPrimaryTaskSet(Aws::String&& value) { SetPrimaryTaskSet(std::move(value)); return *this;}
176 
181  inline UpdateServicePrimaryTaskSetRequest& WithPrimaryTaskSet(const char* value) { SetPrimaryTaskSet(value); return *this;}
182 
183  private:
184 
185  Aws::String m_cluster;
186  bool m_clusterHasBeenSet;
187 
188  Aws::String m_service;
189  bool m_serviceHasBeenSet;
190 
191  Aws::String m_primaryTaskSet;
192  bool m_primaryTaskSetHasBeenSet;
193  };
194 
195 } // namespace Model
196 } // namespace ECS
197 } // namespace Aws
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: UpdateServicePrimaryTaskSetRequest.h:59
Aws::CodeDeploy::Model::ComputePlatform::NOT_SET
@ NOT_SET
Aws::Http::HeaderValueCollection
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:53
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::SetPrimaryTaskSet
void SetPrimaryTaskSet(Aws::String &&value)
Definition: UpdateServicePrimaryTaskSetRequest.h:157
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: UpdateServicePrimaryTaskSetRequest.h:47
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateServicePrimaryTaskSetRequest.h:30
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::ServiceHasBeenSet
bool ServiceHasBeenSet() const
Definition: UpdateServicePrimaryTaskSetRequest.h:96
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::SetService
void SetService(Aws::String &&value)
Definition: UpdateServicePrimaryTaskSetRequest.h:108
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::SetPrimaryTaskSet
void SetPrimaryTaskSet(const Aws::String &value)
Definition: UpdateServicePrimaryTaskSetRequest.h:151
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::SetCluster
void SetCluster(const char *value)
Definition: UpdateServicePrimaryTaskSetRequest.h:65
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::WithCluster
UpdateServicePrimaryTaskSetRequest & WithCluster(Aws::String &&value)
Definition: UpdateServicePrimaryTaskSetRequest.h:77
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::WithService
UpdateServicePrimaryTaskSetRequest & WithService(const char *value)
Definition: UpdateServicePrimaryTaskSetRequest.h:132
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::WithService
UpdateServicePrimaryTaskSetRequest & WithService(const Aws::String &value)
Definition: UpdateServicePrimaryTaskSetRequest.h:120
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::WithPrimaryTaskSet
UpdateServicePrimaryTaskSetRequest & WithPrimaryTaskSet(const char *value)
Definition: UpdateServicePrimaryTaskSetRequest.h:181
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::WithCluster
UpdateServicePrimaryTaskSetRequest & WithCluster(const char *value)
Definition: UpdateServicePrimaryTaskSetRequest.h:83
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::WithPrimaryTaskSet
UpdateServicePrimaryTaskSetRequest & WithPrimaryTaskSet(Aws::String &&value)
Definition: UpdateServicePrimaryTaskSetRequest.h:175
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::PrimaryTaskSetHasBeenSet
bool PrimaryTaskSetHasBeenSet() const
Definition: UpdateServicePrimaryTaskSetRequest.h:145
AWSString.h
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::WithService
UpdateServicePrimaryTaskSetRequest & WithService(Aws::String &&value)
Definition: UpdateServicePrimaryTaskSetRequest.h:126
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::SetService
void SetService(const Aws::String &value)
Definition: UpdateServicePrimaryTaskSetRequest.h:102
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::SetService
void SetService(const char *value)
Definition: UpdateServicePrimaryTaskSetRequest.h:114
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::SetPrimaryTaskSet
void SetPrimaryTaskSet(const char *value)
Definition: UpdateServicePrimaryTaskSetRequest.h:163
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::GetPrimaryTaskSet
const Aws::String & GetPrimaryTaskSet() const
Definition: UpdateServicePrimaryTaskSetRequest.h:139
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest
Definition: UpdateServicePrimaryTaskSetRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::GetService
const Aws::String & GetService() const
Definition: UpdateServicePrimaryTaskSetRequest.h:90
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::WithCluster
UpdateServicePrimaryTaskSetRequest & WithCluster(const Aws::String &value)
Definition: UpdateServicePrimaryTaskSetRequest.h:71
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::UpdateServicePrimaryTaskSetRequest
UpdateServicePrimaryTaskSetRequest()
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::WithPrimaryTaskSet
UpdateServicePrimaryTaskSetRequest & WithPrimaryTaskSet(const Aws::String &value)
Definition: UpdateServicePrimaryTaskSetRequest.h:169
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: UpdateServicePrimaryTaskSetRequest.h:53
Aws::ECS::Model::UpdateServicePrimaryTaskSetRequest::GetCluster
const Aws::String & GetCluster() const
Definition: UpdateServicePrimaryTaskSetRequest.h:41