AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceRevisionSummary.h
1
6#pragma once
7#include <aws/ecs/ECS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
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 ECS
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ECS_API ServiceRevisionSummary() = default;
39
40
42
45 inline const Aws::String& GetArn() const { return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 template<typename ArnT = Aws::String>
48 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
49 template<typename ArnT = Aws::String>
50 ServiceRevisionSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
52
54
57 inline int GetRequestedTaskCount() const { return m_requestedTaskCount; }
58 inline bool RequestedTaskCountHasBeenSet() const { return m_requestedTaskCountHasBeenSet; }
59 inline void SetRequestedTaskCount(int value) { m_requestedTaskCountHasBeenSet = true; m_requestedTaskCount = value; }
60 inline ServiceRevisionSummary& WithRequestedTaskCount(int value) { SetRequestedTaskCount(value); return *this;}
62
64
67 inline int GetRunningTaskCount() const { return m_runningTaskCount; }
68 inline bool RunningTaskCountHasBeenSet() const { return m_runningTaskCountHasBeenSet; }
69 inline void SetRunningTaskCount(int value) { m_runningTaskCountHasBeenSet = true; m_runningTaskCount = value; }
70 inline ServiceRevisionSummary& WithRunningTaskCount(int value) { SetRunningTaskCount(value); return *this;}
72
74
77 inline int GetPendingTaskCount() const { return m_pendingTaskCount; }
78 inline bool PendingTaskCountHasBeenSet() const { return m_pendingTaskCountHasBeenSet; }
79 inline void SetPendingTaskCount(int value) { m_pendingTaskCountHasBeenSet = true; m_pendingTaskCount = value; }
80 inline ServiceRevisionSummary& WithPendingTaskCount(int value) { SetPendingTaskCount(value); return *this;}
82 private:
83
84 Aws::String m_arn;
85 bool m_arnHasBeenSet = false;
86
87 int m_requestedTaskCount{0};
88 bool m_requestedTaskCountHasBeenSet = false;
89
90 int m_runningTaskCount{0};
91 bool m_runningTaskCountHasBeenSet = false;
92
93 int m_pendingTaskCount{0};
94 bool m_pendingTaskCountHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace ECS
99} // namespace Aws
AWS_ECS_API ServiceRevisionSummary()=default
AWS_ECS_API ServiceRevisionSummary(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceRevisionSummary & WithRunningTaskCount(int value)
AWS_ECS_API ServiceRevisionSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
ServiceRevisionSummary & WithArn(ArnT &&value)
ServiceRevisionSummary & WithPendingTaskCount(int value)
ServiceRevisionSummary & WithRequestedTaskCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue