AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComplianceItemEntry.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm/model/ComplianceSeverity.h>
10#include <aws/ssm/model/ComplianceStatus.h>
11#include <aws/core/utils/memory/stl/AWSMap.h>
12#include <utility>
13
14namespace Aws
15{
16namespace Utils
17{
18namespace Json
19{
20 class JsonValue;
21 class JsonView;
22} // namespace Json
23} // namespace Utils
24namespace SSM
25{
26namespace Model
27{
28
35 {
36 public:
37 AWS_SSM_API ComplianceItemEntry();
41
42
44
48 inline const Aws::String& GetId() const{ return m_id; }
49 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
50 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
51 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
52 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
53 inline ComplianceItemEntry& WithId(const Aws::String& value) { SetId(value); return *this;}
54 inline ComplianceItemEntry& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
55 inline ComplianceItemEntry& WithId(const char* value) { SetId(value); return *this;}
57
59
64 inline const Aws::String& GetTitle() const{ return m_title; }
65 inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; }
66 inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; }
67 inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); }
68 inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); }
69 inline ComplianceItemEntry& WithTitle(const Aws::String& value) { SetTitle(value); return *this;}
70 inline ComplianceItemEntry& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;}
71 inline ComplianceItemEntry& WithTitle(const char* value) { SetTitle(value); return *this;}
73
75
79 inline const ComplianceSeverity& GetSeverity() const{ return m_severity; }
80 inline bool SeverityHasBeenSet() const { return m_severityHasBeenSet; }
81 inline void SetSeverity(const ComplianceSeverity& value) { m_severityHasBeenSet = true; m_severity = value; }
82 inline void SetSeverity(ComplianceSeverity&& value) { m_severityHasBeenSet = true; m_severity = std::move(value); }
83 inline ComplianceItemEntry& WithSeverity(const ComplianceSeverity& value) { SetSeverity(value); return *this;}
84 inline ComplianceItemEntry& WithSeverity(ComplianceSeverity&& value) { SetSeverity(std::move(value)); return *this;}
86
88
92 inline const ComplianceStatus& GetStatus() const{ return m_status; }
93 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
94 inline void SetStatus(const ComplianceStatus& value) { m_statusHasBeenSet = true; m_status = value; }
95 inline void SetStatus(ComplianceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
96 inline ComplianceItemEntry& WithStatus(const ComplianceStatus& value) { SetStatus(value); return *this;}
97 inline ComplianceItemEntry& WithStatus(ComplianceStatus&& value) { SetStatus(std::move(value)); return *this;}
99
101
104 inline const Aws::Map<Aws::String, Aws::String>& GetDetails() const{ return m_details; }
105 inline bool DetailsHasBeenSet() const { return m_detailsHasBeenSet; }
106 inline void SetDetails(const Aws::Map<Aws::String, Aws::String>& value) { m_detailsHasBeenSet = true; m_details = value; }
107 inline void SetDetails(Aws::Map<Aws::String, Aws::String>&& value) { m_detailsHasBeenSet = true; m_details = std::move(value); }
109 inline ComplianceItemEntry& WithDetails(Aws::Map<Aws::String, Aws::String>&& value) { SetDetails(std::move(value)); return *this;}
110 inline ComplianceItemEntry& AddDetails(const Aws::String& key, const Aws::String& value) { m_detailsHasBeenSet = true; m_details.emplace(key, value); return *this; }
111 inline ComplianceItemEntry& AddDetails(Aws::String&& key, const Aws::String& value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), value); return *this; }
112 inline ComplianceItemEntry& AddDetails(const Aws::String& key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(key, std::move(value)); return *this; }
113 inline ComplianceItemEntry& AddDetails(Aws::String&& key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), std::move(value)); return *this; }
114 inline ComplianceItemEntry& AddDetails(const char* key, Aws::String&& value) { m_detailsHasBeenSet = true; m_details.emplace(key, std::move(value)); return *this; }
115 inline ComplianceItemEntry& AddDetails(Aws::String&& key, const char* value) { m_detailsHasBeenSet = true; m_details.emplace(std::move(key), value); return *this; }
116 inline ComplianceItemEntry& AddDetails(const char* key, const char* value) { m_detailsHasBeenSet = true; m_details.emplace(key, value); return *this; }
118 private:
119
120 Aws::String m_id;
121 bool m_idHasBeenSet = false;
122
123 Aws::String m_title;
124 bool m_titleHasBeenSet = false;
125
126 ComplianceSeverity m_severity;
127 bool m_severityHasBeenSet = false;
128
129 ComplianceStatus m_status;
130 bool m_statusHasBeenSet = false;
131
133 bool m_detailsHasBeenSet = false;
134 };
135
136} // namespace Model
137} // namespace SSM
138} // namespace Aws
ComplianceItemEntry & AddDetails(Aws::String &&key, const char *value)
const Aws::String & GetId() const
ComplianceItemEntry & WithId(Aws::String &&value)
const ComplianceStatus & GetStatus() const
const Aws::Map< Aws::String, Aws::String > & GetDetails() const
void SetId(const Aws::String &value)
bool DetailsHasBeenSet() const
ComplianceItemEntry & WithTitle(const Aws::String &value)
AWS_SSM_API ComplianceItemEntry()
ComplianceItemEntry & WithId(const Aws::String &value)
void SetTitle(const Aws::String &value)
void SetId(Aws::String &&value)
void SetTitle(Aws::String &&value)
bool SeverityHasBeenSet() const
ComplianceItemEntry & WithStatus(ComplianceStatus &&value)
ComplianceItemEntry & AddDetails(const Aws::String &key, const Aws::String &value)
ComplianceItemEntry & WithStatus(const ComplianceStatus &value)
AWS_SSM_API Aws::Utils::Json::JsonValue Jsonize() const
ComplianceItemEntry & WithSeverity(ComplianceSeverity &&value)
void SetDetails(const Aws::Map< Aws::String, Aws::String > &value)
bool IdHasBeenSet() const
void SetStatus(ComplianceStatus &&value)
bool StatusHasBeenSet() const
ComplianceItemEntry & AddDetails(const Aws::String &key, Aws::String &&value)
const Aws::String & GetTitle() const
void SetDetails(Aws::Map< Aws::String, Aws::String > &&value)
ComplianceItemEntry & WithTitle(Aws::String &&value)
ComplianceItemEntry & WithSeverity(const ComplianceSeverity &value)
ComplianceItemEntry & AddDetails(const char *key, Aws::String &&value)
void SetSeverity(ComplianceSeverity &&value)
bool TitleHasBeenSet() const
ComplianceItemEntry & WithDetails(Aws::Map< Aws::String, Aws::String > &&value)
void SetTitle(const char *value)
AWS_SSM_API ComplianceItemEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSM_API ComplianceItemEntry(Aws::Utils::Json::JsonView jsonValue)
void SetStatus(const ComplianceStatus &value)
ComplianceItemEntry & AddDetails(Aws::String &&key, const Aws::String &value)
void SetSeverity(const ComplianceSeverity &value)
ComplianceItemEntry & AddDetails(const char *key, const char *value)
const ComplianceSeverity & GetSeverity() const
ComplianceItemEntry & WithTitle(const char *value)
ComplianceItemEntry & WithDetails(const Aws::Map< Aws::String, Aws::String > &value)
ComplianceItemEntry & WithId(const char *value)
void SetId(const char *value)
ComplianceItemEntry & AddDetails(Aws::String &&key, Aws::String &&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