AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
49 inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
50 inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
51 inline StackSummary& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
52 inline StackSummary& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
53 inline StackSummary& WithStackId(const char* value) { SetStackId(value); return *this;}
55
57
60 inline const Aws::String& GetName() const{ return m_name; }
61 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
62 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
63 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
64 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
65 inline StackSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
66 inline StackSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
67 inline StackSummary& WithName(const char* value) { SetName(value); return *this;}
69
71
74 inline const Aws::String& GetArn() const{ return m_arn; }
75 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
76 inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
77 inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
78 inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
79 inline StackSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
80 inline StackSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
81 inline StackSummary& WithArn(const char* value) { SetArn(value); return *this;}
83
85
88 inline int GetLayersCount() const{ return m_layersCount; }
89 inline bool LayersCountHasBeenSet() const { return m_layersCountHasBeenSet; }
90 inline void SetLayersCount(int value) { m_layersCountHasBeenSet = true; m_layersCount = value; }
91 inline StackSummary& WithLayersCount(int value) { SetLayersCount(value); return *this;}
93
95
98 inline int GetAppsCount() const{ return m_appsCount; }
99 inline bool AppsCountHasBeenSet() const { return m_appsCountHasBeenSet; }
100 inline void SetAppsCount(int value) { m_appsCountHasBeenSet = true; m_appsCount = value; }
101 inline StackSummary& WithAppsCount(int value) { SetAppsCount(value); return *this;}
103
105
109 inline const InstancesCount& GetInstancesCount() const{ return m_instancesCount; }
110 inline bool InstancesCountHasBeenSet() const { return m_instancesCountHasBeenSet; }
111 inline void SetInstancesCount(const InstancesCount& value) { m_instancesCountHasBeenSet = true; m_instancesCount = value; }
112 inline void SetInstancesCount(InstancesCount&& value) { m_instancesCountHasBeenSet = true; m_instancesCount = std::move(value); }
113 inline StackSummary& WithInstancesCount(const InstancesCount& value) { SetInstancesCount(value); return *this;}
114 inline StackSummary& WithInstancesCount(InstancesCount&& value) { SetInstancesCount(std::move(value)); return *this;}
116 private:
117
118 Aws::String m_stackId;
119 bool m_stackIdHasBeenSet = false;
120
121 Aws::String m_name;
122 bool m_nameHasBeenSet = false;
123
124 Aws::String m_arn;
125 bool m_arnHasBeenSet = false;
126
127 int m_layersCount;
128 bool m_layersCountHasBeenSet = false;
129
130 int m_appsCount;
131 bool m_appsCountHasBeenSet = false;
132
133 InstancesCount m_instancesCount;
134 bool m_instancesCountHasBeenSet = false;
135 };
136
137} // namespace Model
138} // namespace OpsWorks
139} // namespace Aws
StackSummary & WithStackId(Aws::String &&value)
void SetStackId(Aws::String &&value)
StackSummary & WithLayersCount(int value)
void SetStackId(const Aws::String &value)
StackSummary & WithInstancesCount(const InstancesCount &value)
StackSummary & WithAppsCount(int value)
StackSummary & WithName(Aws::String &&value)
void SetStackId(const char *value)
const Aws::String & GetArn() const
AWS_OPSWORKS_API StackSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_OPSWORKS_API Aws::Utils::Json::JsonValue Jsonize() const
StackSummary & WithStackId(const char *value)
void SetName(const char *value)
void SetArn(const Aws::String &value)
void SetName(const Aws::String &value)
StackSummary & WithInstancesCount(InstancesCount &&value)
const Aws::String & GetStackId() const
void SetArn(const char *value)
StackSummary & WithArn(const Aws::String &value)
const Aws::String & GetName() const
void SetName(Aws::String &&value)
StackSummary & WithStackId(const Aws::String &value)
StackSummary & WithArn(Aws::String &&value)
void SetInstancesCount(const InstancesCount &value)
void SetInstancesCount(InstancesCount &&value)
AWS_OPSWORKS_API StackSummary(Aws::Utils::Json::JsonView jsonValue)
StackSummary & WithArn(const char *value)
StackSummary & WithName(const char *value)
StackSummary & WithName(const Aws::String &value)
const InstancesCount & GetInstancesCount() const
void SetArn(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue