7#include <aws/vpc-lattice/VPCLattice_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/vpc-lattice/model/PathMatch.h>
11#include <aws/vpc-lattice/model/HeaderMatch.h>
51 template<
typename HeaderMatchesT = Aws::Vector<HeaderMatch>>
52 void SetHeaderMatches(HeaderMatchesT&& value) { m_headerMatchesHasBeenSet =
true; m_headerMatches = std::forward<HeaderMatchesT>(value); }
53 template<
typename HeaderMatchesT = Aws::Vector<HeaderMatch>>
55 template<
typename HeaderMatchesT = HeaderMatch>
56 HttpMatch&
AddHeaderMatches(HeaderMatchesT&& value) { m_headerMatchesHasBeenSet =
true; m_headerMatches.emplace_back(std::forward<HeaderMatchesT>(value));
return *
this; }
65 template<
typename MethodT = Aws::String>
66 void SetMethod(MethodT&& value) { m_methodHasBeenSet =
true; m_method = std::forward<MethodT>(value); }
67 template<
typename MethodT = Aws::String>
77 template<
typename PathMatchT = PathMatch>
78 void SetPathMatch(PathMatchT&& value) { m_pathMatchHasBeenSet =
true; m_pathMatch = std::forward<PathMatchT>(value); }
79 template<
typename PathMatchT = PathMatch>
85 bool m_headerMatchesHasBeenSet =
false;
88 bool m_methodHasBeenSet =
false;
91 bool m_pathMatchHasBeenSet =
false;
HttpMatch & WithHeaderMatches(HeaderMatchesT &&value)
void SetPathMatch(PathMatchT &&value)
HttpMatch & AddHeaderMatches(HeaderMatchesT &&value)
AWS_VPCLATTICE_API HttpMatch()=default
AWS_VPCLATTICE_API HttpMatch(Aws::Utils::Json::JsonView jsonValue)
void SetMethod(MethodT &&value)
const Aws::Vector< HeaderMatch > & GetHeaderMatches() const
bool HeaderMatchesHasBeenSet() const
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
bool PathMatchHasBeenSet() const
const Aws::String & GetMethod() const
const PathMatch & GetPathMatch() const
void SetHeaderMatches(HeaderMatchesT &&value)
bool MethodHasBeenSet() const
HttpMatch & WithMethod(MethodT &&value)
HttpMatch & WithPathMatch(PathMatchT &&value)
AWS_VPCLATTICE_API HttpMatch & operator=(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue