AWS SDK for C++
AWS SDK for C++
Loading...
Searching...
No Matches
ECSService.h
Go to the documentation of this file.
1
6#pragma once
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace CodeDeploy
22{
23namespace Model
24{
25
33 {
34 public:
39
40
44 inline const Aws::String& GetServiceName() const{ return m_serviceName; }
45
49 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
50
54 inline void SetServiceName(const Aws::String& value) { m_serviceNameHasBeenSet = true; m_serviceName = value; }
55
59 inline void SetServiceName(Aws::String&& value) { m_serviceNameHasBeenSet = true; m_serviceName = std::move(value); }
60
64 inline void SetServiceName(const char* value) { m_serviceNameHasBeenSet = true; m_serviceName.assign(value); }
65
69 inline ECSService& WithServiceName(const Aws::String& value) { SetServiceName(value); return *this;}
70
74 inline ECSService& WithServiceName(Aws::String&& value) { SetServiceName(std::move(value)); return *this;}
75
79 inline ECSService& WithServiceName(const char* value) { SetServiceName(value); return *this;}
80
81
85 inline const Aws::String& GetClusterName() const{ return m_clusterName; }
86
90 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
91
95 inline void SetClusterName(const Aws::String& value) { m_clusterNameHasBeenSet = true; m_clusterName = value; }
96
100 inline void SetClusterName(Aws::String&& value) { m_clusterNameHasBeenSet = true; m_clusterName = std::move(value); }
101
105 inline void SetClusterName(const char* value) { m_clusterNameHasBeenSet = true; m_clusterName.assign(value); }
106
110 inline ECSService& WithClusterName(const Aws::String& value) { SetClusterName(value); return *this;}
111
115 inline ECSService& WithClusterName(Aws::String&& value) { SetClusterName(std::move(value)); return *this;}
116
120 inline ECSService& WithClusterName(const char* value) { SetClusterName(value); return *this;}
121
122 private:
123
124 Aws::String m_serviceName;
125 bool m_serviceNameHasBeenSet = false;
126
127 Aws::String m_clusterName;
128 bool m_clusterNameHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace CodeDeploy
133} // namespace Aws
#define AWS_CODEDEPLOY_API
ECSService & WithClusterName(const char *value)
Definition: ECSService.h:120
const Aws::String & GetClusterName() const
Definition: ECSService.h:85
const Aws::String & GetServiceName() const
Definition: ECSService.h:44
ECSService & WithServiceName(const char *value)
Definition: ECSService.h:79
void SetClusterName(const char *value)
Definition: ECSService.h:105
void SetClusterName(const Aws::String &value)
Definition: ECSService.h:95
ECSService & WithClusterName(const Aws::String &value)
Definition: ECSService.h:110
void SetClusterName(Aws::String &&value)
Definition: ECSService.h:100
AWS_CODEDEPLOY_API ECSService & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API ECSService()
void SetServiceName(Aws::String &&value)
Definition: ECSService.h:59
AWS_CODEDEPLOY_API ECSService(Aws::Utils::Json::JsonView jsonValue)
ECSService & WithServiceName(Aws::String &&value)
Definition: ECSService.h:74
void SetServiceName(const Aws::String &value)
Definition: ECSService.h:54
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
ECSService & WithClusterName(Aws::String &&value)
Definition: ECSService.h:115
ECSService & WithServiceName(const Aws::String &value)
Definition: ECSService.h:69
void SetServiceName(const char *value)
Definition: ECSService.h:64
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String