AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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:
39
40
42
45 inline const Aws::String& GetArn() const{ return m_arn; }
46 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
47 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
48 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
49 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
50 inline ServiceRevisionSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
51 inline ServiceRevisionSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
52 inline ServiceRevisionSummary& WithArn(const char* value) { SetArn(value); return *this;}
54
56
59 inline int GetRequestedTaskCount() const{ return m_requestedTaskCount; }
60 inline bool RequestedTaskCountHasBeenSet() const { return m_requestedTaskCountHasBeenSet; }
61 inline void SetRequestedTaskCount(int value) { m_requestedTaskCountHasBeenSet = true; m_requestedTaskCount = value; }
62 inline ServiceRevisionSummary& WithRequestedTaskCount(int value) { SetRequestedTaskCount(value); return *this;}
64
66
69 inline int GetRunningTaskCount() const{ return m_runningTaskCount; }
70 inline bool RunningTaskCountHasBeenSet() const { return m_runningTaskCountHasBeenSet; }
71 inline void SetRunningTaskCount(int value) { m_runningTaskCountHasBeenSet = true; m_runningTaskCount = value; }
72 inline ServiceRevisionSummary& WithRunningTaskCount(int value) { SetRunningTaskCount(value); return *this;}
74
76
79 inline int GetPendingTaskCount() const{ return m_pendingTaskCount; }
80 inline bool PendingTaskCountHasBeenSet() const { return m_pendingTaskCountHasBeenSet; }
81 inline void SetPendingTaskCount(int value) { m_pendingTaskCountHasBeenSet = true; m_pendingTaskCount = value; }
82 inline ServiceRevisionSummary& WithPendingTaskCount(int value) { SetPendingTaskCount(value); return *this;}
84 private:
85
86 Aws::String m_arn;
87 bool m_arnHasBeenSet = false;
88
89 int m_requestedTaskCount;
90 bool m_requestedTaskCountHasBeenSet = false;
91
92 int m_runningTaskCount;
93 bool m_runningTaskCountHasBeenSet = false;
94
95 int m_pendingTaskCount;
96 bool m_pendingTaskCountHasBeenSet = false;
97 };
98
99} // namespace Model
100} // namespace ECS
101} // namespace Aws
AWS_ECS_API ServiceRevisionSummary(Aws::Utils::Json::JsonView jsonValue)
ServiceRevisionSummary & WithArn(const char *value)
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(const Aws::String &value)
ServiceRevisionSummary & WithPendingTaskCount(int value)
ServiceRevisionSummary & WithArn(Aws::String &&value)
ServiceRevisionSummary & WithRequestedTaskCount(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue