AWS SDK for C++  1.9.104
AWS SDK for C++
StackSummary.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace OpsWorks
23 {
24 namespace Model
25 {
26 
34  {
35  public:
40 
41 
45  inline const Aws::String& GetStackId() const{ return m_stackId; }
46 
50  inline bool StackIdHasBeenSet() const { return m_stackIdHasBeenSet; }
51 
55  inline void SetStackId(const Aws::String& value) { m_stackIdHasBeenSet = true; m_stackId = value; }
56 
60  inline void SetStackId(Aws::String&& value) { m_stackIdHasBeenSet = true; m_stackId = std::move(value); }
61 
65  inline void SetStackId(const char* value) { m_stackIdHasBeenSet = true; m_stackId.assign(value); }
66 
70  inline StackSummary& WithStackId(const Aws::String& value) { SetStackId(value); return *this;}
71 
75  inline StackSummary& WithStackId(Aws::String&& value) { SetStackId(std::move(value)); return *this;}
76 
80  inline StackSummary& WithStackId(const char* value) { SetStackId(value); return *this;}
81 
82 
86  inline const Aws::String& GetName() const{ return m_name; }
87 
91  inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
92 
96  inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
97 
101  inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
102 
106  inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
107 
111  inline StackSummary& WithName(const Aws::String& value) { SetName(value); return *this;}
112 
116  inline StackSummary& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
117 
121  inline StackSummary& WithName(const char* value) { SetName(value); return *this;}
122 
123 
127  inline const Aws::String& GetArn() const{ return m_arn; }
128 
132  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
133 
137  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
138 
142  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
143 
147  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
148 
152  inline StackSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;}
153 
157  inline StackSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
158 
162  inline StackSummary& WithArn(const char* value) { SetArn(value); return *this;}
163 
164 
168  inline int GetLayersCount() const{ return m_layersCount; }
169 
173  inline bool LayersCountHasBeenSet() const { return m_layersCountHasBeenSet; }
174 
178  inline void SetLayersCount(int value) { m_layersCountHasBeenSet = true; m_layersCount = value; }
179 
183  inline StackSummary& WithLayersCount(int value) { SetLayersCount(value); return *this;}
184 
185 
189  inline int GetAppsCount() const{ return m_appsCount; }
190 
194  inline bool AppsCountHasBeenSet() const { return m_appsCountHasBeenSet; }
195 
199  inline void SetAppsCount(int value) { m_appsCountHasBeenSet = true; m_appsCount = value; }
200 
204  inline StackSummary& WithAppsCount(int value) { SetAppsCount(value); return *this;}
205 
206 
211  inline const InstancesCount& GetInstancesCount() const{ return m_instancesCount; }
212 
217  inline bool InstancesCountHasBeenSet() const { return m_instancesCountHasBeenSet; }
218 
223  inline void SetInstancesCount(const InstancesCount& value) { m_instancesCountHasBeenSet = true; m_instancesCount = value; }
224 
229  inline void SetInstancesCount(InstancesCount&& value) { m_instancesCountHasBeenSet = true; m_instancesCount = std::move(value); }
230 
235  inline StackSummary& WithInstancesCount(const InstancesCount& value) { SetInstancesCount(value); return *this;}
236 
241  inline StackSummary& WithInstancesCount(InstancesCount&& value) { SetInstancesCount(std::move(value)); return *this;}
242 
243  private:
244 
245  Aws::String m_stackId;
246  bool m_stackIdHasBeenSet;
247 
248  Aws::String m_name;
249  bool m_nameHasBeenSet;
250 
251  Aws::String m_arn;
252  bool m_arnHasBeenSet;
253 
254  int m_layersCount;
255  bool m_layersCountHasBeenSet;
256 
257  int m_appsCount;
258  bool m_appsCountHasBeenSet;
259 
260  InstancesCount m_instancesCount;
261  bool m_instancesCountHasBeenSet;
262  };
263 
264 } // namespace Model
265 } // namespace OpsWorks
266 } // namespace Aws
Aws::OpsWorks::Model::StackSummary::SetAppsCount
void SetAppsCount(int value)
Definition: StackSummary.h:199
Aws::OpsWorks::Model::StackSummary::WithAppsCount
StackSummary & WithAppsCount(int value)
Definition: StackSummary.h:204
Aws::OpsWorks::Model::StackSummary::StackSummary
StackSummary()
Aws::OpsWorks::Model::StackSummary::WithArn
StackSummary & WithArn(const Aws::String &value)
Definition: StackSummary.h:152
OpsWorks_EXPORTS.h
Aws::OpsWorks::Model::StackSummary::SetName
void SetName(Aws::String &&value)
Definition: StackSummary.h:101
Aws::OpsWorks::Model::StackSummary::GetLayersCount
int GetLayersCount() const
Definition: StackSummary.h:168
Aws::OpsWorks::Model::StackSummary::AppsCountHasBeenSet
bool AppsCountHasBeenSet() const
Definition: StackSummary.h:194
Aws::OpsWorks::Model::StackSummary::WithName
StackSummary & WithName(const char *value)
Definition: StackSummary.h:121
Aws::OpsWorks::Model::StackSummary::SetArn
void SetArn(const char *value)
Definition: StackSummary.h:147
Aws::OpsWorks::Model::StackSummary::StackSummary
StackSummary(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::StackSummary::WithName
StackSummary & WithName(const Aws::String &value)
Definition: StackSummary.h:111
Aws::OpsWorks::Model::StackSummary::WithStackId
StackSummary & WithStackId(const char *value)
Definition: StackSummary.h:80
Aws::OpsWorks::Model::StackSummary::WithArn
StackSummary & WithArn(Aws::String &&value)
Definition: StackSummary.h:157
Aws::OpsWorks::Model::StackSummary::SetName
void SetName(const char *value)
Definition: StackSummary.h:106
InstancesCount.h
Aws::OpsWorks::Model::StackSummary::WithStackId
StackSummary & WithStackId(const Aws::String &value)
Definition: StackSummary.h:70
Aws::OpsWorks::Model::InstancesCount
Definition: InstancesCount.h:31
Aws::OpsWorks::Model::StackSummary
Definition: StackSummary.h:34
Aws::OpsWorks::Model::StackSummary::SetName
void SetName(const Aws::String &value)
Definition: StackSummary.h:96
AWS_OPSWORKS_API
#define AWS_OPSWORKS_API
Definition: OpsWorks_EXPORTS.h:28
Aws::OpsWorks::Model::StackSummary::ArnHasBeenSet
bool ArnHasBeenSet() const
Definition: StackSummary.h:132
Aws::OpsWorks::Model::StackSummary::SetInstancesCount
void SetInstancesCount(InstancesCount &&value)
Definition: StackSummary.h:229
Aws::OpsWorks::Model::StackSummary::SetArn
void SetArn(Aws::String &&value)
Definition: StackSummary.h:142
Aws::OpsWorks::Model::StackSummary::GetName
const Aws::String & GetName() const
Definition: StackSummary.h:86
Aws::OpsWorks::Model::StackSummary::WithArn
StackSummary & WithArn(const char *value)
Definition: StackSummary.h:162
Aws::OpsWorks::Model::StackSummary::LayersCountHasBeenSet
bool LayersCountHasBeenSet() const
Definition: StackSummary.h:173
Aws::OpsWorks::Model::StackSummary::WithName
StackSummary & WithName(Aws::String &&value)
Definition: StackSummary.h:116
Aws::OpsWorks::Model::StackSummary::SetInstancesCount
void SetInstancesCount(const InstancesCount &value)
Definition: StackSummary.h:223
Aws::OpsWorks::Model::StackSummary::WithInstancesCount
StackSummary & WithInstancesCount(const InstancesCount &value)
Definition: StackSummary.h:235
Aws::OpsWorks::Model::StackSummary::NameHasBeenSet
bool NameHasBeenSet() const
Definition: StackSummary.h:91
Aws::OpsWorks::Model::StackSummary::SetLayersCount
void SetLayersCount(int value)
Definition: StackSummary.h:178
Aws::OpsWorks::Model::StackSummary::WithLayersCount
StackSummary & WithLayersCount(int value)
Definition: StackSummary.h:183
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::OpsWorks::Model::StackSummary::SetStackId
void SetStackId(Aws::String &&value)
Definition: StackSummary.h:60
Aws::OpsWorks::Model::StackSummary::SetStackId
void SetStackId(const Aws::String &value)
Definition: StackSummary.h:55
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::OpsWorks::Model::StackSummary::GetInstancesCount
const InstancesCount & GetInstancesCount() const
Definition: StackSummary.h:211
Aws::OpsWorks::Model::StackSummary::SetArn
void SetArn(const Aws::String &value)
Definition: StackSummary.h:137
Aws::OpsWorks::Model::StackSummary::SetStackId
void SetStackId(const char *value)
Definition: StackSummary.h:65
Aws::OpsWorks::Model::StackSummary::operator=
StackSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::OpsWorks::Model::StackSummary::StackIdHasBeenSet
bool StackIdHasBeenSet() const
Definition: StackSummary.h:50
Aws
Definition: AccessManagementClient.h:15
Aws::OpsWorks::Model::StackSummary::GetStackId
const Aws::String & GetStackId() const
Definition: StackSummary.h:45
Aws::OpsWorks::Model::StackSummary::GetAppsCount
int GetAppsCount() const
Definition: StackSummary.h:189
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::OpsWorks::Model::StackSummary::GetArn
const Aws::String & GetArn() const
Definition: StackSummary.h:127
Aws::OpsWorks::Model::StackSummary::WithInstancesCount
StackSummary & WithInstancesCount(InstancesCount &&value)
Definition: StackSummary.h:241
Aws::OpsWorks::Model::StackSummary::WithStackId
StackSummary & WithStackId(Aws::String &&value)
Definition: StackSummary.h:75
Aws::OpsWorks::Model::StackSummary::InstancesCountHasBeenSet
bool InstancesCountHasBeenSet() const
Definition: StackSummary.h:217
Aws::OpsWorks::Model::StackSummary::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const