AWS SDK for C++  0.12.9
AWS SDK for C++
UpdateContainerAgentRequest.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ecs/ECS_EXPORTS.h>
17 #include <aws/ecs/ECSRequest.h>
19 
20 namespace Aws
21 {
22 namespace ECS
23 {
24 namespace Model
25 {
26 
30  {
31  public:
33  Aws::String SerializePayload() const override;
34 
35  Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36 
42  inline const Aws::String& GetCluster() const{ return m_cluster; }
43 
49  inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
50 
56  inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = value; }
57 
63  inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
64 
70  inline UpdateContainerAgentRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
71 
77  inline UpdateContainerAgentRequest& WithCluster(Aws::String&& value) { SetCluster(value); return *this;}
78 
84  inline UpdateContainerAgentRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
85 
91  inline const Aws::String& GetContainerInstance() const{ return m_containerInstance; }
92 
98  inline void SetContainerInstance(const Aws::String& value) { m_containerInstanceHasBeenSet = true; m_containerInstance = value; }
99 
105  inline void SetContainerInstance(Aws::String&& value) { m_containerInstanceHasBeenSet = true; m_containerInstance = value; }
106 
112  inline void SetContainerInstance(const char* value) { m_containerInstanceHasBeenSet = true; m_containerInstance.assign(value); }
113 
119  inline UpdateContainerAgentRequest& WithContainerInstance(const Aws::String& value) { SetContainerInstance(value); return *this;}
120 
126  inline UpdateContainerAgentRequest& WithContainerInstance(Aws::String&& value) { SetContainerInstance(value); return *this;}
127 
133  inline UpdateContainerAgentRequest& WithContainerInstance(const char* value) { SetContainerInstance(value); return *this;}
134 
135  private:
136  Aws::String m_cluster;
137  bool m_clusterHasBeenSet;
138  Aws::String m_containerInstance;
139  bool m_containerInstanceHasBeenSet;
140  };
141 
142 } // namespace Model
143 } // namespace ECS
144 } // namespace Aws
#define AWS_ECS_API
Definition: ECS_EXPORTS.h:34
UpdateContainerAgentRequest & WithContainerInstance(const Aws::String &value)
UpdateContainerAgentRequest & WithCluster(Aws::String &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
Definition: HttpTypes.h:63
UpdateContainerAgentRequest & WithCluster(const Aws::String &value)
UpdateContainerAgentRequest & WithCluster(const char *value)
UpdateContainerAgentRequest & WithContainerInstance(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
UpdateContainerAgentRequest & WithContainerInstance(Aws::String &&value)
JSON (JavaScript Object Notation).