AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
HeaderMatch.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/vpc-lattice/model/HeaderMatchType.h>
9#include <aws/core/utils/memory/stl/AWSString.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 VPCLattice
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_VPCLATTICE_API HeaderMatch();
38 AWS_VPCLATTICE_API HeaderMatch(Aws::Utils::Json::JsonView jsonValue);
39 AWS_VPCLATTICE_API HeaderMatch& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline bool GetCaseSensitive() const{ return m_caseSensitive; }
48 inline bool CaseSensitiveHasBeenSet() const { return m_caseSensitiveHasBeenSet; }
49 inline void SetCaseSensitive(bool value) { m_caseSensitiveHasBeenSet = true; m_caseSensitive = value; }
50 inline HeaderMatch& WithCaseSensitive(bool value) { SetCaseSensitive(value); return *this;}
52
54
57 inline const HeaderMatchType& GetMatch() const{ return m_match; }
58 inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
59 inline void SetMatch(const HeaderMatchType& value) { m_matchHasBeenSet = true; m_match = value; }
60 inline void SetMatch(HeaderMatchType&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
61 inline HeaderMatch& WithMatch(const HeaderMatchType& value) { SetMatch(value); return *this;}
62 inline HeaderMatch& WithMatch(HeaderMatchType&& value) { SetMatch(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetName() const{ return m_name; }
70 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
71 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
72 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
73 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
74 inline HeaderMatch& WithName(const Aws::String& value) { SetName(value); return *this;}
75 inline HeaderMatch& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
76 inline HeaderMatch& WithName(const char* value) { SetName(value); return *this;}
78 private:
79
80 bool m_caseSensitive;
81 bool m_caseSensitiveHasBeenSet = false;
82
83 HeaderMatchType m_match;
84 bool m_matchHasBeenSet = false;
85
86 Aws::String m_name;
87 bool m_nameHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace VPCLattice
92} // namespace Aws
void SetMatch(HeaderMatchType &&value)
Definition HeaderMatch.h:60
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VPCLATTICE_API HeaderMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
HeaderMatch & WithName(const char *value)
Definition HeaderMatch.h:76
AWS_VPCLATTICE_API HeaderMatch(Aws::Utils::Json::JsonView jsonValue)
HeaderMatch & WithMatch(HeaderMatchType &&value)
Definition HeaderMatch.h:62
AWS_VPCLATTICE_API HeaderMatch()
const HeaderMatchType & GetMatch() const
Definition HeaderMatch.h:57
HeaderMatch & WithName(Aws::String &&value)
Definition HeaderMatch.h:75
HeaderMatch & WithMatch(const HeaderMatchType &value)
Definition HeaderMatch.h:61
void SetName(Aws::String &&value)
Definition HeaderMatch.h:72
HeaderMatch & WithCaseSensitive(bool value)
Definition HeaderMatch.h:50
void SetName(const char *value)
Definition HeaderMatch.h:73
void SetMatch(const HeaderMatchType &value)
Definition HeaderMatch.h:59
const Aws::String & GetName() const
Definition HeaderMatch.h:69
void SetName(const Aws::String &value)
Definition HeaderMatch.h:71
HeaderMatch & WithName(const Aws::String &value)
Definition HeaderMatch.h:74
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue