AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
ECSService.h
1
6#pragma once
7#include <aws/codedeploy/CodeDeploy_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace CodeDeploy {
20namespace Model {
21
29 public:
30 AWS_CODEDEPLOY_API ECSService() = default;
31 AWS_CODEDEPLOY_API ECSService(Aws::Utils::Json::JsonView jsonValue);
32 AWS_CODEDEPLOY_API ECSService& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetServiceName() const { return m_serviceName; }
40 inline bool ServiceNameHasBeenSet() const { return m_serviceNameHasBeenSet; }
41 template <typename ServiceNameT = Aws::String>
42 void SetServiceName(ServiceNameT&& value) {
43 m_serviceNameHasBeenSet = true;
44 m_serviceName = std::forward<ServiceNameT>(value);
45 }
46 template <typename ServiceNameT = Aws::String>
47 ECSService& WithServiceName(ServiceNameT&& value) {
48 SetServiceName(std::forward<ServiceNameT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetClusterName() const { return m_clusterName; }
58 inline bool ClusterNameHasBeenSet() const { return m_clusterNameHasBeenSet; }
59 template <typename ClusterNameT = Aws::String>
60 void SetClusterName(ClusterNameT&& value) {
61 m_clusterNameHasBeenSet = true;
62 m_clusterName = std::forward<ClusterNameT>(value);
63 }
64 template <typename ClusterNameT = Aws::String>
65 ECSService& WithClusterName(ClusterNameT&& value) {
66 SetClusterName(std::forward<ClusterNameT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_serviceName;
72
73 Aws::String m_clusterName;
74 bool m_serviceNameHasBeenSet = false;
75 bool m_clusterNameHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace CodeDeploy
80} // namespace Aws
const Aws::String & GetClusterName() const
Definition ECSService.h:57
void SetClusterName(ClusterNameT &&value)
Definition ECSService.h:60
const Aws::String & GetServiceName() const
Definition ECSService.h:39
ECSService & WithClusterName(ClusterNameT &&value)
Definition ECSService.h:65
AWS_CODEDEPLOY_API ECSService()=default
AWS_CODEDEPLOY_API ECSService & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetServiceName(ServiceNameT &&value)
Definition ECSService.h:42
ECSService & WithServiceName(ServiceNameT &&value)
Definition ECSService.h:47
AWS_CODEDEPLOY_API ECSService(Aws::Utils::Json::JsonView jsonValue)
AWS_CODEDEPLOY_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue