AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PartialMatch.h
1
6#pragma once
7#include <aws/fms/FMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace FMS
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_FMS_API PartialMatch() = default;
40
41
43
47 inline const Aws::String& GetReference() const { return m_reference; }
48 inline bool ReferenceHasBeenSet() const { return m_referenceHasBeenSet; }
49 template<typename ReferenceT = Aws::String>
50 void SetReference(ReferenceT&& value) { m_referenceHasBeenSet = true; m_reference = std::forward<ReferenceT>(value); }
51 template<typename ReferenceT = Aws::String>
52 PartialMatch& WithReference(ReferenceT&& value) { SetReference(std::forward<ReferenceT>(value)); return *this;}
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) { m_targetViolationReasonsHasBeenSet = true; m_targetViolationReasons = std::forward<TargetViolationReasonsT>(value); }
63 template<typename TargetViolationReasonsT = Aws::Vector<Aws::String>>
64 PartialMatch& WithTargetViolationReasons(TargetViolationReasonsT&& value) { SetTargetViolationReasons(std::forward<TargetViolationReasonsT>(value)); return *this;}
65 template<typename TargetViolationReasonsT = Aws::String>
66 PartialMatch& AddTargetViolationReasons(TargetViolationReasonsT&& value) { m_targetViolationReasonsHasBeenSet = true; m_targetViolationReasons.emplace_back(std::forward<TargetViolationReasonsT>(value)); return *this; }
68 private:
69
70 Aws::String m_reference;
71 bool m_referenceHasBeenSet = false;
72
73 Aws::Vector<Aws::String> m_targetViolationReasons;
74 bool m_targetViolationReasonsHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace FMS
79} // 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