AWS SDK for C++

AWS SDK for C++ Version 1.11.637

Loading...
Searching...
No Matches
RuleResult.h
1
6#pragma once
7#include <aws/ssm-sap/SsmSap_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/ssm-sap/model/RuleResultStatus.h>
10#include <aws/core/utils/memory/stl/AWSMap.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace SsmSap
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_SSMSAP_API RuleResult() = default;
38 AWS_SSMSAP_API RuleResult(Aws::Utils::Json::JsonView jsonValue);
40 AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const { return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 template<typename IdT = Aws::String>
50 void SetId(IdT&& value) { m_idHasBeenSet = true; m_id = std::forward<IdT>(value); }
51 template<typename IdT = Aws::String>
52 RuleResult& WithId(IdT&& value) { SetId(std::forward<IdT>(value)); return *this;}
54
56
59 inline const Aws::String& GetDescription() const { return m_description; }
60 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
61 template<typename DescriptionT = Aws::String>
62 void SetDescription(DescriptionT&& value) { m_descriptionHasBeenSet = true; m_description = std::forward<DescriptionT>(value); }
63 template<typename DescriptionT = Aws::String>
64 RuleResult& WithDescription(DescriptionT&& value) { SetDescription(std::forward<DescriptionT>(value)); return *this;}
66
68
71 inline RuleResultStatus GetStatus() const { return m_status; }
72 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
73 inline void SetStatus(RuleResultStatus value) { m_statusHasBeenSet = true; m_status = value; }
74 inline RuleResult& WithStatus(RuleResultStatus value) { SetStatus(value); return *this;}
76
78
81 inline const Aws::String& GetMessage() const { return m_message; }
82 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
83 template<typename MessageT = Aws::String>
84 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
85 template<typename MessageT = Aws::String>
86 RuleResult& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
88
90
93 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const { return m_metadata; }
94 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
95 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
96 void SetMetadata(MetadataT&& value) { m_metadataHasBeenSet = true; m_metadata = std::forward<MetadataT>(value); }
97 template<typename MetadataT = Aws::Map<Aws::String, Aws::String>>
98 RuleResult& WithMetadata(MetadataT&& value) { SetMetadata(std::forward<MetadataT>(value)); return *this;}
99 template<typename MetadataKeyT = Aws::String, typename MetadataValueT = Aws::String>
100 RuleResult& AddMetadata(MetadataKeyT&& key, MetadataValueT&& value) {
101 m_metadataHasBeenSet = true; m_metadata.emplace(std::forward<MetadataKeyT>(key), std::forward<MetadataValueT>(value)); return *this;
102 }
104 private:
105
106 Aws::String m_id;
107 bool m_idHasBeenSet = false;
108
109 Aws::String m_description;
110 bool m_descriptionHasBeenSet = false;
111
113 bool m_statusHasBeenSet = false;
114
115 Aws::String m_message;
116 bool m_messageHasBeenSet = false;
117
119 bool m_metadataHasBeenSet = false;
120 };
121
122} // namespace Model
123} // namespace SsmSap
124} // namespace Aws
const Aws::String & GetId() const
Definition RuleResult.h:47
void SetStatus(RuleResultStatus value)
Definition RuleResult.h:73
void SetDescription(DescriptionT &&value)
Definition RuleResult.h:62
RuleResult & WithMetadata(MetadataT &&value)
Definition RuleResult.h:98
RuleResult & WithStatus(RuleResultStatus value)
Definition RuleResult.h:74
AWS_SSMSAP_API RuleResult()=default
void SetMessage(MessageT &&value)
Definition RuleResult.h:84
RuleResult & WithId(IdT &&value)
Definition RuleResult.h:52
void SetMetadata(MetadataT &&value)
Definition RuleResult.h:96
AWS_SSMSAP_API RuleResult(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetMessage() const
Definition RuleResult.h:81
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
Definition RuleResult.h:93
RuleResultStatus GetStatus() const
Definition RuleResult.h:71
RuleResult & AddMetadata(MetadataKeyT &&key, MetadataValueT &&value)
Definition RuleResult.h:100
RuleResult & WithDescription(DescriptionT &&value)
Definition RuleResult.h:64
const Aws::String & GetDescription() const
Definition RuleResult.h:59
AWS_SSMSAP_API RuleResult & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SSMSAP_API Aws::Utils::Json::JsonValue Jsonize() const
RuleResult & WithMessage(MessageT &&value)
Definition RuleResult.h:86
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