AWS SDK for C++  1.9.69
AWS SDK for C++
UpdateContainerAgentRequest.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 "UpdateContainerAgent"; }
31 
32  Aws::String SerializePayload() const override;
33 
35 
36 
42  inline const Aws::String& GetCluster() const{ return m_cluster; }
43 
49  inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
50 
56  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
57 
63  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
64 
70  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
71 
77  inline UpdateContainerAgentRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
78 
84  inline UpdateContainerAgentRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
85 
91  inline UpdateContainerAgentRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
92 
93 
98  inline const Aws::String& GetContainerInstance() const{ return m_containerInstance; }
99 
104  inline bool ContainerInstanceHasBeenSet() const { return m_containerInstanceHasBeenSet; }
105 
110  inline void SetContainerInstance(const Aws::String& value) { m_containerInstanceHasBeenSet = true; m_containerInstance = value; }
111 
116  inline void SetContainerInstance(Aws::String&& value) { m_containerInstanceHasBeenSet = true; m_containerInstance = std::move(value); }
117 
122  inline void SetContainerInstance(const char* value) { m_containerInstanceHasBeenSet = true; m_containerInstance.assign(value); }
123 
128  inline UpdateContainerAgentRequest& WithContainerInstance(const Aws::String& value) { SetContainerInstance(value); return *this;}
129 
134  inline UpdateContainerAgentRequest& WithContainerInstance(Aws::String&& value) { SetContainerInstance(std::move(value)); return *this;}
135 
140  inline UpdateContainerAgentRequest& WithContainerInstance(const char* value) { SetContainerInstance(value); return *this;}
141 
142  private:
143 
144  Aws::String m_cluster;
145  bool m_clusterHasBeenSet;
146 
147  Aws::String m_containerInstance;
148  bool m_containerInstanceHasBeenSet;
149  };
150 
151 } // namespace Model
152 } // namespace ECS
153 } // namespace Aws
Aws::ECS::Model::UpdateContainerAgentRequest::GetCluster
const Aws::String & GetCluster() const
Definition: UpdateContainerAgentRequest.h:42
Aws::ECS::Model::UpdateContainerAgentRequest::SetContainerInstance
void SetContainerInstance(const Aws::String &value)
Definition: UpdateContainerAgentRequest.h:110
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::UpdateContainerAgentRequest::WithCluster
UpdateContainerAgentRequest & WithCluster(Aws::String &&value)
Definition: UpdateContainerAgentRequest.h:84
Aws::ECS::Model::UpdateContainerAgentRequest::ContainerInstanceHasBeenSet
bool ContainerInstanceHasBeenSet() const
Definition: UpdateContainerAgentRequest.h:104
Aws::ECS::Model::UpdateContainerAgentRequest::WithContainerInstance
UpdateContainerAgentRequest & WithContainerInstance(Aws::String &&value)
Definition: UpdateContainerAgentRequest.h:134
Aws::ECS::Model::UpdateContainerAgentRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::ECS::Model::UpdateContainerAgentRequest::GetContainerInstance
const Aws::String & GetContainerInstance() const
Definition: UpdateContainerAgentRequest.h:98
Aws::ECS::Model::UpdateContainerAgentRequest::SetCluster
void SetCluster(Aws::String &&value)
Definition: UpdateContainerAgentRequest.h:63
AWS_ECS_API
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:28
Aws::ECS::Model::UpdateContainerAgentRequest::ClusterHasBeenSet
bool ClusterHasBeenSet() const
Definition: UpdateContainerAgentRequest.h:49
Aws::ECS::ECSRequest
Definition: ECSRequest.h:17
Aws::ECS::Model::UpdateContainerAgentRequest::UpdateContainerAgentRequest
UpdateContainerAgentRequest()
Aws::ECS::Model::UpdateContainerAgentRequest::WithContainerInstance
UpdateContainerAgentRequest & WithContainerInstance(const Aws::String &value)
Definition: UpdateContainerAgentRequest.h:128
Aws::ECS::Model::UpdateContainerAgentRequest::SetContainerInstance
void SetContainerInstance(Aws::String &&value)
Definition: UpdateContainerAgentRequest.h:116
AWSString.h
Aws::ECS::Model::UpdateContainerAgentRequest::WithCluster
UpdateContainerAgentRequest & WithCluster(const Aws::String &value)
Definition: UpdateContainerAgentRequest.h:77
Aws::ECS::Model::UpdateContainerAgentRequest::GetRequestSpecificHeaders
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
Aws::ECS::Model::UpdateContainerAgentRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: UpdateContainerAgentRequest.h:30
Aws
Definition: AccessManagementClient.h:15
Aws::ECS::Model::UpdateContainerAgentRequest::SetCluster
void SetCluster(const Aws::String &value)
Definition: UpdateContainerAgentRequest.h:56
Aws::ECS::Model::UpdateContainerAgentRequest
Definition: UpdateContainerAgentRequest.h:22
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::ECS::Model::UpdateContainerAgentRequest::WithCluster
UpdateContainerAgentRequest & WithCluster(const char *value)
Definition: UpdateContainerAgentRequest.h:91
Aws::ECS::Model::UpdateContainerAgentRequest::WithContainerInstance
UpdateContainerAgentRequest & WithContainerInstance(const char *value)
Definition: UpdateContainerAgentRequest.h:140
Aws::ECS::Model::UpdateContainerAgentRequest::SetCluster
void SetCluster(const char *value)
Definition: UpdateContainerAgentRequest.h:70
ECS_EXPORTS.h
ECSRequest.h
Aws::ECS::Model::UpdateContainerAgentRequest::SetContainerInstance
void SetContainerInstance(const char *value)
Definition: UpdateContainerAgentRequest.h:122