AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Workload.h
1
6#pragma once
7#include <aws/application-insights/ApplicationInsights_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/application-insights/model/Tier.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 ApplicationInsights
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_APPLICATIONINSIGHTS_API Workload();
36 AWS_APPLICATIONINSIGHTS_API Workload(Aws::Utils::Json::JsonView jsonValue);
37 AWS_APPLICATIONINSIGHTS_API Workload& operator=(Aws::Utils::Json::JsonView jsonValue);
38 AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetWorkloadId() const{ return m_workloadId; }
46 inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
47 inline void SetWorkloadId(const Aws::String& value) { m_workloadIdHasBeenSet = true; m_workloadId = value; }
48 inline void SetWorkloadId(Aws::String&& value) { m_workloadIdHasBeenSet = true; m_workloadId = std::move(value); }
49 inline void SetWorkloadId(const char* value) { m_workloadIdHasBeenSet = true; m_workloadId.assign(value); }
50 inline Workload& WithWorkloadId(const Aws::String& value) { SetWorkloadId(value); return *this;}
51 inline Workload& WithWorkloadId(Aws::String&& value) { SetWorkloadId(std::move(value)); return *this;}
52 inline Workload& WithWorkloadId(const char* value) { SetWorkloadId(value); return *this;}
54
56
59 inline const Aws::String& GetComponentName() const{ return m_componentName; }
60 inline bool ComponentNameHasBeenSet() const { return m_componentNameHasBeenSet; }
61 inline void SetComponentName(const Aws::String& value) { m_componentNameHasBeenSet = true; m_componentName = value; }
62 inline void SetComponentName(Aws::String&& value) { m_componentNameHasBeenSet = true; m_componentName = std::move(value); }
63 inline void SetComponentName(const char* value) { m_componentNameHasBeenSet = true; m_componentName.assign(value); }
64 inline Workload& WithComponentName(const Aws::String& value) { SetComponentName(value); return *this;}
65 inline Workload& WithComponentName(Aws::String&& value) { SetComponentName(std::move(value)); return *this;}
66 inline Workload& WithComponentName(const char* value) { SetComponentName(value); return *this;}
68
70
73 inline const Aws::String& GetWorkloadName() const{ return m_workloadName; }
74 inline bool WorkloadNameHasBeenSet() const { return m_workloadNameHasBeenSet; }
75 inline void SetWorkloadName(const Aws::String& value) { m_workloadNameHasBeenSet = true; m_workloadName = value; }
76 inline void SetWorkloadName(Aws::String&& value) { m_workloadNameHasBeenSet = true; m_workloadName = std::move(value); }
77 inline void SetWorkloadName(const char* value) { m_workloadNameHasBeenSet = true; m_workloadName.assign(value); }
78 inline Workload& WithWorkloadName(const Aws::String& value) { SetWorkloadName(value); return *this;}
79 inline Workload& WithWorkloadName(Aws::String&& value) { SetWorkloadName(std::move(value)); return *this;}
80 inline Workload& WithWorkloadName(const char* value) { SetWorkloadName(value); return *this;}
82
84
87 inline const Tier& GetTier() const{ return m_tier; }
88 inline bool TierHasBeenSet() const { return m_tierHasBeenSet; }
89 inline void SetTier(const Tier& value) { m_tierHasBeenSet = true; m_tier = value; }
90 inline void SetTier(Tier&& value) { m_tierHasBeenSet = true; m_tier = std::move(value); }
91 inline Workload& WithTier(const Tier& value) { SetTier(value); return *this;}
92 inline Workload& WithTier(Tier&& value) { SetTier(std::move(value)); return *this;}
94
96
100 inline const Aws::String& GetWorkloadRemarks() const{ return m_workloadRemarks; }
101 inline bool WorkloadRemarksHasBeenSet() const { return m_workloadRemarksHasBeenSet; }
102 inline void SetWorkloadRemarks(const Aws::String& value) { m_workloadRemarksHasBeenSet = true; m_workloadRemarks = value; }
103 inline void SetWorkloadRemarks(Aws::String&& value) { m_workloadRemarksHasBeenSet = true; m_workloadRemarks = std::move(value); }
104 inline void SetWorkloadRemarks(const char* value) { m_workloadRemarksHasBeenSet = true; m_workloadRemarks.assign(value); }
105 inline Workload& WithWorkloadRemarks(const Aws::String& value) { SetWorkloadRemarks(value); return *this;}
106 inline Workload& WithWorkloadRemarks(Aws::String&& value) { SetWorkloadRemarks(std::move(value)); return *this;}
107 inline Workload& WithWorkloadRemarks(const char* value) { SetWorkloadRemarks(value); return *this;}
109
111
115 inline bool GetMissingWorkloadConfig() const{ return m_missingWorkloadConfig; }
116 inline bool MissingWorkloadConfigHasBeenSet() const { return m_missingWorkloadConfigHasBeenSet; }
117 inline void SetMissingWorkloadConfig(bool value) { m_missingWorkloadConfigHasBeenSet = true; m_missingWorkloadConfig = value; }
118 inline Workload& WithMissingWorkloadConfig(bool value) { SetMissingWorkloadConfig(value); return *this;}
120 private:
121
122 Aws::String m_workloadId;
123 bool m_workloadIdHasBeenSet = false;
124
125 Aws::String m_componentName;
126 bool m_componentNameHasBeenSet = false;
127
128 Aws::String m_workloadName;
129 bool m_workloadNameHasBeenSet = false;
130
131 Tier m_tier;
132 bool m_tierHasBeenSet = false;
133
134 Aws::String m_workloadRemarks;
135 bool m_workloadRemarksHasBeenSet = false;
136
137 bool m_missingWorkloadConfig;
138 bool m_missingWorkloadConfigHasBeenSet = false;
139 };
140
141} // namespace Model
142} // namespace ApplicationInsights
143} // namespace Aws
Workload & WithWorkloadId(const char *value)
Definition Workload.h:52
const Aws::String & GetWorkloadName() const
Definition Workload.h:73
Workload & WithWorkloadId(Aws::String &&value)
Definition Workload.h:51
Workload & WithWorkloadName(const char *value)
Definition Workload.h:80
const Aws::String & GetComponentName() const
Definition Workload.h:59
void SetComponentName(const Aws::String &value)
Definition Workload.h:61
AWS_APPLICATIONINSIGHTS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_APPLICATIONINSIGHTS_API Workload()
Workload & WithComponentName(const char *value)
Definition Workload.h:66
AWS_APPLICATIONINSIGHTS_API Workload(Aws::Utils::Json::JsonView jsonValue)
Workload & WithWorkloadName(const Aws::String &value)
Definition Workload.h:78
void SetWorkloadRemarks(const Aws::String &value)
Definition Workload.h:102
Workload & WithWorkloadId(const Aws::String &value)
Definition Workload.h:50
void SetWorkloadRemarks(Aws::String &&value)
Definition Workload.h:103
void SetWorkloadId(Aws::String &&value)
Definition Workload.h:48
Workload & WithComponentName(Aws::String &&value)
Definition Workload.h:65
Workload & WithTier(const Tier &value)
Definition Workload.h:91
void SetWorkloadRemarks(const char *value)
Definition Workload.h:104
Workload & WithWorkloadRemarks(const char *value)
Definition Workload.h:107
Workload & WithWorkloadRemarks(Aws::String &&value)
Definition Workload.h:106
void SetTier(const Tier &value)
Definition Workload.h:89
Workload & WithComponentName(const Aws::String &value)
Definition Workload.h:64
const Aws::String & GetWorkloadId() const
Definition Workload.h:45
void SetWorkloadName(const Aws::String &value)
Definition Workload.h:75
void SetComponentName(Aws::String &&value)
Definition Workload.h:62
void SetWorkloadName(const char *value)
Definition Workload.h:77
Workload & WithMissingWorkloadConfig(bool value)
Definition Workload.h:118
void SetComponentName(const char *value)
Definition Workload.h:63
const Aws::String & GetWorkloadRemarks() const
Definition Workload.h:100
Workload & WithWorkloadRemarks(const Aws::String &value)
Definition Workload.h:105
void SetWorkloadId(const char *value)
Definition Workload.h:49
Workload & WithWorkloadName(Aws::String &&value)
Definition Workload.h:79
AWS_APPLICATIONINSIGHTS_API Workload & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetWorkloadId(const Aws::String &value)
Definition Workload.h:47
Workload & WithTier(Tier &&value)
Definition Workload.h:92
void SetWorkloadName(Aws::String &&value)
Definition Workload.h:76
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue