AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ComplianceViolator.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/fms/model/ViolationReason.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 FMS
24{
25namespace Model
26{
27
35 {
36 public:
37 AWS_FMS_API ComplianceViolator();
41
42
44
47 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
48 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
49 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
50 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
51 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
52 inline ComplianceViolator& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
53 inline ComplianceViolator& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
54 inline ComplianceViolator& WithResourceId(const char* value) { SetResourceId(value); return *this;}
56
58
61 inline const ViolationReason& GetViolationReason() const{ return m_violationReason; }
62 inline bool ViolationReasonHasBeenSet() const { return m_violationReasonHasBeenSet; }
63 inline void SetViolationReason(const ViolationReason& value) { m_violationReasonHasBeenSet = true; m_violationReason = value; }
64 inline void SetViolationReason(ViolationReason&& value) { m_violationReasonHasBeenSet = true; m_violationReason = std::move(value); }
65 inline ComplianceViolator& WithViolationReason(const ViolationReason& value) { SetViolationReason(value); return *this;}
66 inline ComplianceViolator& WithViolationReason(ViolationReason&& value) { SetViolationReason(std::move(value)); return *this;}
68
70
78 inline const Aws::String& GetResourceType() const{ return m_resourceType; }
79 inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; }
80 inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; }
81 inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); }
82 inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); }
83 inline ComplianceViolator& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;}
84 inline ComplianceViolator& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;}
85 inline ComplianceViolator& WithResourceType(const char* value) { SetResourceType(value); return *this;}
87
89
92 inline const Aws::Map<Aws::String, Aws::String>& GetMetadata() const{ return m_metadata; }
93 inline bool MetadataHasBeenSet() const { return m_metadataHasBeenSet; }
94 inline void SetMetadata(const Aws::Map<Aws::String, Aws::String>& value) { m_metadataHasBeenSet = true; m_metadata = value; }
95 inline void SetMetadata(Aws::Map<Aws::String, Aws::String>&& value) { m_metadataHasBeenSet = true; m_metadata = std::move(value); }
97 inline ComplianceViolator& WithMetadata(Aws::Map<Aws::String, Aws::String>&& value) { SetMetadata(std::move(value)); return *this;}
98 inline ComplianceViolator& AddMetadata(const Aws::String& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
99 inline ComplianceViolator& AddMetadata(Aws::String&& key, const Aws::String& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
100 inline ComplianceViolator& AddMetadata(const Aws::String& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
101 inline ComplianceViolator& AddMetadata(Aws::String&& key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), std::move(value)); return *this; }
102 inline ComplianceViolator& AddMetadata(const char* key, Aws::String&& value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, std::move(value)); return *this; }
103 inline ComplianceViolator& AddMetadata(Aws::String&& key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(std::move(key), value); return *this; }
104 inline ComplianceViolator& AddMetadata(const char* key, const char* value) { m_metadataHasBeenSet = true; m_metadata.emplace(key, value); return *this; }
106 private:
107
108 Aws::String m_resourceId;
109 bool m_resourceIdHasBeenSet = false;
110
111 ViolationReason m_violationReason;
112 bool m_violationReasonHasBeenSet = false;
113
114 Aws::String m_resourceType;
115 bool m_resourceTypeHasBeenSet = false;
116
118 bool m_metadataHasBeenSet = false;
119 };
120
121} // namespace Model
122} // namespace FMS
123} // namespace Aws
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
void SetMetadata(Aws::Map< Aws::String, Aws::String > &&value)
ComplianceViolator & WithMetadata(Aws::Map< Aws::String, Aws::String > &&value)
ComplianceViolator & WithResourceType(const char *value)
ComplianceViolator & WithResourceType(Aws::String &&value)
ComplianceViolator & AddMetadata(const char *key, Aws::String &&value)
AWS_FMS_API ComplianceViolator(Aws::Utils::Json::JsonView jsonValue)
ComplianceViolator & AddMetadata(const Aws::String &key, Aws::String &&value)
void SetMetadata(const Aws::Map< Aws::String, Aws::String > &value)
const Aws::String & GetResourceType() const
AWS_FMS_API ComplianceViolator & operator=(Aws::Utils::Json::JsonView jsonValue)
ComplianceViolator & WithViolationReason(ViolationReason &&value)
ComplianceViolator & WithViolationReason(const ViolationReason &value)
ComplianceViolator & WithMetadata(const Aws::Map< Aws::String, Aws::String > &value)
void SetResourceType(Aws::String &&value)
ComplianceViolator & AddMetadata(Aws::String &&key, Aws::String &&value)
ComplianceViolator & WithResourceId(Aws::String &&value)
void SetViolationReason(const ViolationReason &value)
ComplianceViolator & AddMetadata(const Aws::String &key, const Aws::String &value)
void SetResourceId(Aws::String &&value)
ComplianceViolator & WithResourceType(const Aws::String &value)
void SetResourceType(const Aws::String &value)
ComplianceViolator & AddMetadata(const char *key, const char *value)
const ViolationReason & GetViolationReason() const
void SetViolationReason(ViolationReason &&value)
void SetResourceType(const char *value)
ComplianceViolator & AddMetadata(Aws::String &&key, const char *value)
void SetResourceId(const Aws::String &value)
const Aws::String & GetResourceId() const
const Aws::Map< Aws::String, Aws::String > & GetMetadata() const
ComplianceViolator & WithResourceId(const char *value)
ComplianceViolator & WithResourceId(const Aws::String &value)
ComplianceViolator & AddMetadata(Aws::String &&key, const 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