AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AppComponentCompliance.h
1
6#pragma once
7#include <aws/resiliencehub/ResilienceHub_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSMap.h>
10#include <aws/resiliencehub/model/Cost.h>
11#include <aws/resiliencehub/model/ResiliencyScore.h>
12#include <aws/resiliencehub/model/ComplianceStatus.h>
13#include <aws/resiliencehub/model/DisruptionType.h>
14#include <aws/resiliencehub/model/DisruptionCompliance.h>
15#include <utility>
16
17namespace Aws
18{
19namespace Utils
20{
21namespace Json
22{
23 class JsonValue;
24 class JsonView;
25} // namespace Json
26} // namespace Utils
27namespace ResilienceHub
28{
29namespace Model
30{
31
39 {
40 public:
41 AWS_RESILIENCEHUB_API AppComponentCompliance();
42 AWS_RESILIENCEHUB_API AppComponentCompliance(Aws::Utils::Json::JsonView jsonValue);
44 AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
45
46
48
51 inline const Aws::String& GetAppComponentName() const{ return m_appComponentName; }
52 inline bool AppComponentNameHasBeenSet() const { return m_appComponentNameHasBeenSet; }
53 inline void SetAppComponentName(const Aws::String& value) { m_appComponentNameHasBeenSet = true; m_appComponentName = value; }
54 inline void SetAppComponentName(Aws::String&& value) { m_appComponentNameHasBeenSet = true; m_appComponentName = std::move(value); }
55 inline void SetAppComponentName(const char* value) { m_appComponentNameHasBeenSet = true; m_appComponentName.assign(value); }
56 inline AppComponentCompliance& WithAppComponentName(const Aws::String& value) { SetAppComponentName(value); return *this;}
57 inline AppComponentCompliance& WithAppComponentName(Aws::String&& value) { SetAppComponentName(std::move(value)); return *this;}
58 inline AppComponentCompliance& WithAppComponentName(const char* value) { SetAppComponentName(value); return *this;}
60
62
66 inline const Aws::Map<DisruptionType, DisruptionCompliance>& GetCompliance() const{ return m_compliance; }
67 inline bool ComplianceHasBeenSet() const { return m_complianceHasBeenSet; }
68 inline void SetCompliance(const Aws::Map<DisruptionType, DisruptionCompliance>& value) { m_complianceHasBeenSet = true; m_compliance = value; }
69 inline void SetCompliance(Aws::Map<DisruptionType, DisruptionCompliance>&& value) { m_complianceHasBeenSet = true; m_compliance = std::move(value); }
72 inline AppComponentCompliance& AddCompliance(const DisruptionType& key, const DisruptionCompliance& value) { m_complianceHasBeenSet = true; m_compliance.emplace(key, value); return *this; }
73 inline AppComponentCompliance& AddCompliance(DisruptionType&& key, const DisruptionCompliance& value) { m_complianceHasBeenSet = true; m_compliance.emplace(std::move(key), value); return *this; }
74 inline AppComponentCompliance& AddCompliance(const DisruptionType& key, DisruptionCompliance&& value) { m_complianceHasBeenSet = true; m_compliance.emplace(key, std::move(value)); return *this; }
75 inline AppComponentCompliance& AddCompliance(DisruptionType&& key, DisruptionCompliance&& value) { m_complianceHasBeenSet = true; m_compliance.emplace(std::move(key), std::move(value)); return *this; }
77
79
82 inline const Cost& GetCost() const{ return m_cost; }
83 inline bool CostHasBeenSet() const { return m_costHasBeenSet; }
84 inline void SetCost(const Cost& value) { m_costHasBeenSet = true; m_cost = value; }
85 inline void SetCost(Cost&& value) { m_costHasBeenSet = true; m_cost = std::move(value); }
86 inline AppComponentCompliance& WithCost(const Cost& value) { SetCost(value); return *this;}
87 inline AppComponentCompliance& WithCost(Cost&& value) { SetCost(std::move(value)); return *this;}
89
91
94 inline const Aws::String& GetMessage() const{ return m_message; }
95 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
96 inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; }
97 inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); }
98 inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); }
99 inline AppComponentCompliance& WithMessage(const Aws::String& value) { SetMessage(value); return *this;}
100 inline AppComponentCompliance& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;}
101 inline AppComponentCompliance& WithMessage(const char* value) { SetMessage(value); return *this;}
103
105
108 inline const ResiliencyScore& GetResiliencyScore() const{ return m_resiliencyScore; }
109 inline bool ResiliencyScoreHasBeenSet() const { return m_resiliencyScoreHasBeenSet; }
110 inline void SetResiliencyScore(const ResiliencyScore& value) { m_resiliencyScoreHasBeenSet = true; m_resiliencyScore = value; }
111 inline void SetResiliencyScore(ResiliencyScore&& value) { m_resiliencyScoreHasBeenSet = true; m_resiliencyScore = std::move(value); }
113 inline AppComponentCompliance& WithResiliencyScore(ResiliencyScore&& value) { SetResiliencyScore(std::move(value)); return *this;}
115
117
120 inline const ComplianceStatus& GetStatus() const{ return m_status; }
121 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
122 inline void SetStatus(const ComplianceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
123 inline void SetStatus(ComplianceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
124 inline AppComponentCompliance& WithStatus(const ComplianceStatus& value) { SetStatus(value); return *this;}
125 inline AppComponentCompliance& WithStatus(ComplianceStatus&& value) { SetStatus(std::move(value)); return *this;}
127 private:
128
129 Aws::String m_appComponentName;
130 bool m_appComponentNameHasBeenSet = false;
131
133 bool m_complianceHasBeenSet = false;
134
135 Cost m_cost;
136 bool m_costHasBeenSet = false;
137
138 Aws::String m_message;
139 bool m_messageHasBeenSet = false;
140
141 ResiliencyScore m_resiliencyScore;
142 bool m_resiliencyScoreHasBeenSet = false;
143
144 ComplianceStatus m_status;
145 bool m_statusHasBeenSet = false;
146 };
147
148} // namespace Model
149} // namespace ResilienceHub
150} // namespace Aws
AppComponentCompliance & AddCompliance(const DisruptionType &key, const DisruptionCompliance &value)
void SetCompliance(Aws::Map< DisruptionType, DisruptionCompliance > &&value)
AppComponentCompliance & WithCompliance(Aws::Map< DisruptionType, DisruptionCompliance > &&value)
AppComponentCompliance & WithAppComponentName(Aws::String &&value)
AppComponentCompliance & WithCost(const Cost &value)
AppComponentCompliance & WithMessage(const char *value)
AppComponentCompliance & WithMessage(Aws::String &&value)
AppComponentCompliance & WithAppComponentName(const Aws::String &value)
AppComponentCompliance & WithCompliance(const Aws::Map< DisruptionType, DisruptionCompliance > &value)
void SetCompliance(const Aws::Map< DisruptionType, DisruptionCompliance > &value)
AWS_RESILIENCEHUB_API AppComponentCompliance & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_RESILIENCEHUB_API AppComponentCompliance(Aws::Utils::Json::JsonView jsonValue)
AppComponentCompliance & WithMessage(const Aws::String &value)
const Aws::Map< DisruptionType, DisruptionCompliance > & GetCompliance() const
AppComponentCompliance & AddCompliance(DisruptionType &&key, const DisruptionCompliance &value)
AppComponentCompliance & WithResiliencyScore(ResiliencyScore &&value)
AppComponentCompliance & WithAppComponentName(const char *value)
AppComponentCompliance & AddCompliance(DisruptionType &&key, DisruptionCompliance &&value)
AppComponentCompliance & WithStatus(ComplianceStatus &&value)
AppComponentCompliance & AddCompliance(const DisruptionType &key, DisruptionCompliance &&value)
AppComponentCompliance & WithStatus(const ComplianceStatus &value)
AWS_RESILIENCEHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AppComponentCompliance & WithResiliencyScore(const ResiliencyScore &value)
AppComponentCompliance & WithCost(Cost &&value)
std::map< K, V, std::less< K >, Aws::Allocator< std::pair< const K, V > > > Map
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue