AWS SDK for C++

AWS SDK for C++ Version 1.11.788

Loading...
Searching...
No Matches
DaemonRevisionDetail.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/DaemonCapacityProvider.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 DaemonRevisionDetail() = 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
59 inline const Aws::Vector<DaemonCapacityProvider>& GetCapacityProviders() const { return m_capacityProviders; }
60 inline bool CapacityProvidersHasBeenSet() const { return m_capacityProvidersHasBeenSet; }
61 template <typename CapacityProvidersT = Aws::Vector<DaemonCapacityProvider>>
62 void SetCapacityProviders(CapacityProvidersT&& value) {
63 m_capacityProvidersHasBeenSet = true;
64 m_capacityProviders = std::forward<CapacityProvidersT>(value);
65 }
66 template <typename CapacityProvidersT = Aws::Vector<DaemonCapacityProvider>>
67 DaemonRevisionDetail& WithCapacityProviders(CapacityProvidersT&& value) {
68 SetCapacityProviders(std::forward<CapacityProvidersT>(value));
69 return *this;
70 }
71 template <typename CapacityProvidersT = DaemonCapacityProvider>
72 DaemonRevisionDetail& AddCapacityProviders(CapacityProvidersT&& value) {
73 m_capacityProvidersHasBeenSet = true;
74 m_capacityProviders.emplace_back(std::forward<CapacityProvidersT>(value));
75 return *this;
76 }
78
80
83 inline int GetTotalRunningCount() const { return m_totalRunningCount; }
84 inline bool TotalRunningCountHasBeenSet() const { return m_totalRunningCountHasBeenSet; }
85 inline void SetTotalRunningCount(int value) {
86 m_totalRunningCountHasBeenSet = true;
87 m_totalRunningCount = value;
88 }
91 return *this;
92 }
94 private:
95 Aws::String m_arn;
96
97 Aws::Vector<DaemonCapacityProvider> m_capacityProviders;
98
99 int m_totalRunningCount{0};
100 bool m_arnHasBeenSet = false;
101 bool m_capacityProvidersHasBeenSet = false;
102 bool m_totalRunningCountHasBeenSet = false;
103};
104
105} // namespace Model
106} // namespace ECS
107} // namespace Aws
AWS_ECS_API DaemonRevisionDetail & operator=(Aws::Utils::Json::JsonView jsonValue)
DaemonRevisionDetail & AddCapacityProviders(CapacityProvidersT &&value)
AWS_ECS_API DaemonRevisionDetail(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< DaemonCapacityProvider > & GetCapacityProviders() const
AWS_ECS_API DaemonRevisionDetail()=default
DaemonRevisionDetail & WithArn(ArnT &&value)
DaemonRevisionDetail & WithTotalRunningCount(int value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetCapacityProviders(CapacityProvidersT &&value)
DaemonRevisionDetail & 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