AWS SDK for C++

AWS SDK for C++ Version 1.11.939

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#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace CodeDeploy {
20namespace Model {
21
29 public:
30 AWS_CODEDEPLOY_API ECSService() = default;
31 AWS_CODEDEPLOY_API ECSService(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CODEDEPLOY_API ECSService& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) 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
AWS_CODEDEPLOY_API ECSService(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CODEDEPLOY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetClusterName(ClusterNameT &&value)
Definition ECSService.h:60
const Aws::String & GetServiceName() const
Definition ECSService.h:39
AWS_CODEDEPLOY_API ECSService & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ECSService & WithClusterName(ClusterNameT &&value)
Definition ECSService.h:65
AWS_CODEDEPLOY_API ECSService()=default
void SetServiceName(ServiceNameT &&value)
Definition ECSService.h:42
ECSService & WithServiceName(ServiceNameT &&value)
Definition ECSService.h:47
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String