AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
StackSummary.h
1
6#pragma once
7#include <aws/opsworks/OpsWorks_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/opsworks/model/InstancesCount.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace OpsWorks
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_OPSWORKS_API StackSummary() = default;
37 AWS_OPSWORKS_API StackSummary(Aws::Utils::Json::JsonView jsonValue);
39 AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetStackId() const { return m_stackId; }
47 inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
48 template<typename StackIdT = Aws::String>
49 void SetStackId(StackIdT&& value) { m_stackIdHasBeenSet = true; m_stackId = std::forward<StackIdT>(value); }
50 template<typename StackIdT = Aws::String>
51 StackSummary& WithStackId(StackIdT&& value) { SetStackId(std::forward<StackIdT>(value)); return *this;}
53
55
58 inline const Aws::String& GetName() const { return m_name; }
59 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
60 template<typename NameT = Aws::String>
61 void SetName(NameT&& value) { m_nameHasBeenSet = true; m_name = std::forward<NameT>(value); }
62 template<typename NameT = Aws::String>
63 StackSummary& WithName(NameT&& value) { SetName(std::forward<NameT>(value)); return *this;}
65
67
70 inline const Aws::String& GetArn() const { return m_arn; }
71 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
72 template<typename ArnT = Aws::String>
73 void SetArn(ArnT&& value) { m_arnHasBeenSet = true; m_arn = std::forward<ArnT>(value); }
74 template<typename ArnT = Aws::String>
75 StackSummary& WithArn(ArnT&& value) { SetArn(std::forward<ArnT>(value)); return *this;}
77
79
82 inline int GetLayersCount() const { return m_layersCount; }
83 inline bool LayersCountHasBeenSet() const { return m_layersCountHasBeenSet; }
84 inline void SetLayersCount(int value) { m_layersCountHasBeenSet = true; m_layersCount = value; }
85 inline StackSummary& WithLayersCount(int value) { SetLayersCount(value); return *this;}
87
89
92 inline int GetAppsCount() const { return m_appsCount; }
93 inline bool AppsCountHasBeenSet() const { return m_appsCountHasBeenSet; }
94 inline void SetAppsCount(int value) { m_appsCountHasBeenSet = true; m_appsCount = value; }
95 inline StackSummary& WithAppsCount(int value) { SetAppsCount(value); return *this;}
97
99
103 inline const InstancesCount& GetInstancesCount() const { return m_instancesCount; }
104 inline bool InstancesCountHasBeenSet() const { return m_instancesCountHasBeenSet; }
105 template<typename InstancesCountT = InstancesCount>
106 void SetInstancesCount(InstancesCountT&& value) { m_instancesCountHasBeenSet = true; m_instancesCount = std::forward<InstancesCountT>(value); }
107 template<typename InstancesCountT = InstancesCount>
108 StackSummary& WithInstancesCount(InstancesCountT&& value) { SetInstancesCount(std::forward<InstancesCountT>(value)); return *this;}
110 private:
111
112 Aws::String m_stackId;
113 bool m_stackIdHasBeenSet = false;
114
115 Aws::String m_name;
116 bool m_nameHasBeenSet = false;
117
118 Aws::String m_arn;
119 bool m_arnHasBeenSet = false;
120
121 int m_layersCount{0};
122 bool m_layersCountHasBeenSet = false;
123
124 int m_appsCount{0};
125 bool m_appsCountHasBeenSet = false;
126
127 InstancesCount m_instancesCount;
128 bool m_instancesCountHasBeenSet = false;
129 };
130
131} // namespace Model
132} // namespace OpsWorks
133} // namespace Aws
void SetStackId(StackIdT &&value)
StackSummary & WithLayersCount(int value)
StackSummary & WithAppsCount(int value)
AWS_OPSWORKS_API StackSummary()=default
StackSummary & WithInstancesCount(InstancesCountT &&value)
const Aws::String & GetArn() const
StackSummary & WithStackId(StackIdT &&value)
AWS_OPSWORKS_API StackSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
StackSummary & WithName(NameT &&value)
const Aws::String & GetStackId() const
const Aws::String & GetName() const
void SetInstancesCount(InstancesCountT &&value)
AWS_OPSWORKS_API StackSummary(Aws::Utils::Json::JsonView jsonValue)
StackSummary & WithArn(ArnT &&value)
const InstancesCount & GetInstancesCount() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue