AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateServicePrimaryTaskSetRequest.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/ecs/ECSRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace ECS
15{
16namespace 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_ECS_API Aws::String SerializePayload() const override;
33
35
36
38
42 inline const Aws::String& GetCluster() const{ return m_cluster; }
43 inline bool ClusterHasBeenSet() const { return m_clusterHasBeenSet; }
44 inline void SetCluster(const Aws::String& value) { m_clusterHasBeenSet = true; m_cluster = value; }
45 inline void SetCluster(Aws::String&& value) { m_clusterHasBeenSet = true; m_cluster = std::move(value); }
46 inline void SetCluster(const char* value) { m_clusterHasBeenSet = true; m_cluster.assign(value); }
47 inline UpdateServicePrimaryTaskSetRequest& WithCluster(const Aws::String& value) { SetCluster(value); return *this;}
48 inline UpdateServicePrimaryTaskSetRequest& WithCluster(Aws::String&& value) { SetCluster(std::move(value)); return *this;}
49 inline UpdateServicePrimaryTaskSetRequest& WithCluster(const char* value) { SetCluster(value); return *this;}
51
53
57 inline const Aws::String& GetService() const{ return m_service; }
58 inline bool ServiceHasBeenSet() const { return m_serviceHasBeenSet; }
59 inline void SetService(const Aws::String& value) { m_serviceHasBeenSet = true; m_service = value; }
60 inline void SetService(Aws::String&& value) { m_serviceHasBeenSet = true; m_service = std::move(value); }
61 inline void SetService(const char* value) { m_serviceHasBeenSet = true; m_service.assign(value); }
62 inline UpdateServicePrimaryTaskSetRequest& WithService(const Aws::String& value) { SetService(value); return *this;}
63 inline UpdateServicePrimaryTaskSetRequest& WithService(Aws::String&& value) { SetService(std::move(value)); return *this;}
64 inline UpdateServicePrimaryTaskSetRequest& WithService(const char* value) { SetService(value); return *this;}
66
68
72 inline const Aws::String& GetPrimaryTaskSet() const{ return m_primaryTaskSet; }
73 inline bool PrimaryTaskSetHasBeenSet() const { return m_primaryTaskSetHasBeenSet; }
74 inline void SetPrimaryTaskSet(const Aws::String& value) { m_primaryTaskSetHasBeenSet = true; m_primaryTaskSet = value; }
75 inline void SetPrimaryTaskSet(Aws::String&& value) { m_primaryTaskSetHasBeenSet = true; m_primaryTaskSet = std::move(value); }
76 inline void SetPrimaryTaskSet(const char* value) { m_primaryTaskSetHasBeenSet = true; m_primaryTaskSet.assign(value); }
78 inline UpdateServicePrimaryTaskSetRequest& WithPrimaryTaskSet(Aws::String&& value) { SetPrimaryTaskSet(std::move(value)); return *this;}
79 inline UpdateServicePrimaryTaskSetRequest& WithPrimaryTaskSet(const char* value) { SetPrimaryTaskSet(value); return *this;}
81 private:
82
83 Aws::String m_cluster;
84 bool m_clusterHasBeenSet = false;
85
86 Aws::String m_service;
87 bool m_serviceHasBeenSet = false;
88
89 Aws::String m_primaryTaskSet;
90 bool m_primaryTaskSetHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace ECS
95} // namespace Aws
AWS_ECS_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
UpdateServicePrimaryTaskSetRequest & WithCluster(const char *value)
UpdateServicePrimaryTaskSetRequest & WithPrimaryTaskSet(Aws::String &&value)
UpdateServicePrimaryTaskSetRequest & WithService(const char *value)
UpdateServicePrimaryTaskSetRequest & WithCluster(Aws::String &&value)
UpdateServicePrimaryTaskSetRequest & WithPrimaryTaskSet(const Aws::String &value)
UpdateServicePrimaryTaskSetRequest & WithService(Aws::String &&value)
AWS_ECS_API Aws::String SerializePayload() const override
UpdateServicePrimaryTaskSetRequest & WithCluster(const Aws::String &value)
UpdateServicePrimaryTaskSetRequest & WithService(const Aws::String &value)
UpdateServicePrimaryTaskSetRequest & WithPrimaryTaskSet(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String