AWS SDK for C++

AWS SDK for C++ Version 1.11.716

Loading...
Searching...
No Matches
PartialMatch.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/fms/FMS_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace FMS {
21namespace Model {
22
30 public:
31 AWS_FMS_API PartialMatch() = default;
35
37
41 inline const Aws::String& GetReference() const { return m_reference; }
42 inline bool ReferenceHasBeenSet() const { return m_referenceHasBeenSet; }
43 template <typename ReferenceT = Aws::String>
44 void SetReference(ReferenceT&& value) {
45 m_referenceHasBeenSet = true;
46 m_reference = std::forward<ReferenceT>(value);
47 }
48 template <typename ReferenceT = Aws::String>
49 PartialMatch& WithReference(ReferenceT&& value) {
50 SetReference(std::forward<ReferenceT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::Vector<Aws::String>& GetTargetViolationReasons() const { return m_targetViolationReasons; }
60 inline bool TargetViolationReasonsHasBeenSet() const { return m_targetViolationReasonsHasBeenSet; }
61 template <typename TargetViolationReasonsT = Aws::Vector<Aws::String>>
62 void SetTargetViolationReasons(TargetViolationReasonsT&& value) {
63 m_targetViolationReasonsHasBeenSet = true;
64 m_targetViolationReasons = std::forward<TargetViolationReasonsT>(value);
65 }
66 template <typename TargetViolationReasonsT = Aws::Vector<Aws::String>>
67 PartialMatch& WithTargetViolationReasons(TargetViolationReasonsT&& value) {
68 SetTargetViolationReasons(std::forward<TargetViolationReasonsT>(value));
69 return *this;
70 }
71 template <typename TargetViolationReasonsT = Aws::String>
72 PartialMatch& AddTargetViolationReasons(TargetViolationReasonsT&& value) {
73 m_targetViolationReasonsHasBeenSet = true;
74 m_targetViolationReasons.emplace_back(std::forward<TargetViolationReasonsT>(value));
75 return *this;
76 }
78 private:
79 Aws::String m_reference;
80
81 Aws::Vector<Aws::String> m_targetViolationReasons;
82 bool m_referenceHasBeenSet = false;
83 bool m_targetViolationReasonsHasBeenSet = false;
84};
85
86} // namespace Model
87} // namespace FMS
88} // namespace Aws
PartialMatch & AddTargetViolationReasons(TargetViolationReasonsT &&value)
AWS_FMS_API PartialMatch(Aws::Utils::Json::JsonView jsonValue)
PartialMatch & WithReference(ReferenceT &&value)
void SetReference(ReferenceT &&value)
AWS_FMS_API PartialMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetReference() const
PartialMatch & WithTargetViolationReasons(TargetViolationReasonsT &&value)
bool TargetViolationReasonsHasBeenSet() const
const Aws::Vector< Aws::String > & GetTargetViolationReasons() const
void SetTargetViolationReasons(TargetViolationReasonsT &&value)
AWS_FMS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_FMS_API PartialMatch()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue