AWS SDK for C++

AWS SDK for C++ Version 1.11.904

Loading...
Searching...
No Matches
WorkloadDataSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/launch-wizard/LaunchWizard_EXPORTS.h>
10#include <aws/launch-wizard/model/AccountConstraint.h>
11#include <aws/launch-wizard/model/WorkloadStatus.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Json {
18class JsonValue;
19class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace LaunchWizard {
23namespace Model {
24
31 public:
32 AWS_LAUNCHWIZARD_API WorkloadDataSummary() = default;
33 AWS_LAUNCHWIZARD_API WorkloadDataSummary(Aws::Utils::Json::JsonView jsonValue);
35 AWS_LAUNCHWIZARD_API Aws::Utils::Json::JsonValue Jsonize() const;
36
38
41 inline const Aws::String& GetWorkloadName() const { return m_workloadName; }
42 inline bool WorkloadNameHasBeenSet() const { return m_workloadNameHasBeenSet; }
43 template <typename WorkloadNameT = Aws::String>
44 void SetWorkloadName(WorkloadNameT&& value) {
45 m_workloadNameHasBeenSet = true;
46 m_workloadName = std::forward<WorkloadNameT>(value);
47 }
48 template <typename WorkloadNameT = Aws::String>
49 WorkloadDataSummary& WithWorkloadName(WorkloadNameT&& value) {
50 SetWorkloadName(std::forward<WorkloadNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetDisplayName() const { return m_displayName; }
60 inline bool DisplayNameHasBeenSet() const { return m_displayNameHasBeenSet; }
61 template <typename DisplayNameT = Aws::String>
62 void SetDisplayName(DisplayNameT&& value) {
63 m_displayNameHasBeenSet = true;
64 m_displayName = std::forward<DisplayNameT>(value);
65 }
66 template <typename DisplayNameT = Aws::String>
67 WorkloadDataSummary& WithDisplayName(DisplayNameT&& value) {
68 SetDisplayName(std::forward<DisplayNameT>(value));
69 return *this;
70 }
72
74
77 inline WorkloadStatus GetStatus() const { return m_status; }
78 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
79 inline void SetStatus(WorkloadStatus value) {
80 m_statusHasBeenSet = true;
81 m_status = value;
82 }
84 SetStatus(value);
85 return *this;
86 }
88
90
97 inline const Aws::Vector<AccountConstraint>& GetAccountConstraints() const { return m_accountConstraints; }
98 inline bool AccountConstraintsHasBeenSet() const { return m_accountConstraintsHasBeenSet; }
99 template <typename AccountConstraintsT = Aws::Vector<AccountConstraint>>
100 void SetAccountConstraints(AccountConstraintsT&& value) {
101 m_accountConstraintsHasBeenSet = true;
102 m_accountConstraints = std::forward<AccountConstraintsT>(value);
103 }
104 template <typename AccountConstraintsT = Aws::Vector<AccountConstraint>>
105 WorkloadDataSummary& WithAccountConstraints(AccountConstraintsT&& value) {
106 SetAccountConstraints(std::forward<AccountConstraintsT>(value));
107 return *this;
108 }
109 template <typename AccountConstraintsT = AccountConstraint>
110 WorkloadDataSummary& AddAccountConstraints(AccountConstraintsT&& value) {
111 m_accountConstraintsHasBeenSet = true;
112 m_accountConstraints.emplace_back(std::forward<AccountConstraintsT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_workloadName;
118
119 Aws::String m_displayName;
120
122
123 Aws::Vector<AccountConstraint> m_accountConstraints;
124 bool m_workloadNameHasBeenSet = false;
125 bool m_displayNameHasBeenSet = false;
126 bool m_statusHasBeenSet = false;
127 bool m_accountConstraintsHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace LaunchWizard
132} // namespace Aws
WorkloadDataSummary & WithAccountConstraints(AccountConstraintsT &&value)
WorkloadDataSummary & WithStatus(WorkloadStatus value)
void SetAccountConstraints(AccountConstraintsT &&value)
AWS_LAUNCHWIZARD_API WorkloadDataSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAUNCHWIZARD_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_LAUNCHWIZARD_API WorkloadDataSummary()=default
WorkloadDataSummary & WithDisplayName(DisplayNameT &&value)
AWS_LAUNCHWIZARD_API WorkloadDataSummary(Aws::Utils::Json::JsonView jsonValue)
const Aws::Vector< AccountConstraint > & GetAccountConstraints() const
WorkloadDataSummary & AddAccountConstraints(AccountConstraintsT &&value)
WorkloadDataSummary & WithWorkloadName(WorkloadNameT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue