AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DaemonDeploymentRevisionDetail.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/ecs/ECS_EXPORTS.h>
10#include <aws/ecs/model/DaemonDeploymentCapacityProvider.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace ECS {
22namespace Model {
23
31 public:
32 AWS_ECS_API DaemonDeploymentRevisionDetail() = default;
36
38
41 inline const Aws::String& GetArn() const { return m_arn; }
42 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
43 template <typename ArnT = Aws::String>
44 void SetArn(ArnT&& value) {
45 m_arnHasBeenSet = true;
46 m_arn = std::forward<ArnT>(value);
47 }
48 template <typename ArnT = Aws::String>
50 SetArn(std::forward<ArnT>(value));
51 return *this;
52 }
54
56
60 inline const Aws::Vector<DaemonDeploymentCapacityProvider>& GetCapacityProviders() const { return m_capacityProviders; }
61 inline bool CapacityProvidersHasBeenSet() const { return m_capacityProvidersHasBeenSet; }
62 template <typename CapacityProvidersT = Aws::Vector<DaemonDeploymentCapacityProvider>>
63 void SetCapacityProviders(CapacityProvidersT&& value) {
64 m_capacityProvidersHasBeenSet = true;
65 m_capacityProviders = std::forward<CapacityProvidersT>(value);
66 }
67 template <typename CapacityProvidersT = Aws::Vector<DaemonDeploymentCapacityProvider>>
69 SetCapacityProviders(std::forward<CapacityProvidersT>(value));
70 return *this;
71 }
72 template <typename CapacityProvidersT = DaemonDeploymentCapacityProvider>
74 m_capacityProvidersHasBeenSet = true;
75 m_capacityProviders.emplace_back(std::forward<CapacityProvidersT>(value));
76 return *this;
77 }
79
81
84 inline int GetTotalRunningInstanceCount() const { return m_totalRunningInstanceCount; }
85 inline bool TotalRunningInstanceCountHasBeenSet() const { return m_totalRunningInstanceCountHasBeenSet; }
86 inline void SetTotalRunningInstanceCount(int value) {
87 m_totalRunningInstanceCountHasBeenSet = true;
88 m_totalRunningInstanceCount = value;
89 }
92 return *this;
93 }
95
97
101 inline int GetTotalDrainingInstanceCount() const { return m_totalDrainingInstanceCount; }
102 inline bool TotalDrainingInstanceCountHasBeenSet() const { return m_totalDrainingInstanceCountHasBeenSet; }
103 inline void SetTotalDrainingInstanceCount(int value) {
104 m_totalDrainingInstanceCountHasBeenSet = true;
105 m_totalDrainingInstanceCount = value;
106 }
109 return *this;
110 }
112 private:
113 Aws::String m_arn;
114
116
117 int m_totalRunningInstanceCount{0};
118
119 int m_totalDrainingInstanceCount{0};
120 bool m_arnHasBeenSet = false;
121 bool m_capacityProvidersHasBeenSet = false;
122 bool m_totalRunningInstanceCountHasBeenSet = false;
123 bool m_totalDrainingInstanceCountHasBeenSet = false;
124};
125
126} // namespace Model
127} // namespace ECS
128} // namespace Aws
DaemonDeploymentRevisionDetail & WithTotalDrainingInstanceCount(int value)
AWS_ECS_API DaemonDeploymentRevisionDetail(Aws::Utils::Json::JsonView jsonValue)
DaemonDeploymentRevisionDetail & WithArn(ArnT &&value)
const Aws::Vector< DaemonDeploymentCapacityProvider > & GetCapacityProviders() const
DaemonDeploymentRevisionDetail & WithTotalRunningInstanceCount(int value)
AWS_ECS_API DaemonDeploymentRevisionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
DaemonDeploymentRevisionDetail & AddCapacityProviders(CapacityProvidersT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
DaemonDeploymentRevisionDetail & WithCapacityProviders(CapacityProvidersT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue