257 lines
8.6 KiB
C++
257 lines
8.6 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/appmesh/AppMesh_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/appmesh/model/MatchRange.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace AppMesh
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>An object that represents the match method. Specify one of the match
|
|
* values.</p><p><h3>See Also:</h3> <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/GrpcRouteMetadataMatchMethod">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_APPMESH_API GrpcRouteMetadataMatchMethod
|
|
{
|
|
public:
|
|
GrpcRouteMetadataMatchMethod();
|
|
GrpcRouteMetadataMatchMethod(Aws::Utils::Json::JsonView jsonValue);
|
|
GrpcRouteMetadataMatchMethod& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The value sent by the client must match the specified value exactly.</p>
|
|
*/
|
|
inline const Aws::String& GetExact() const{ return m_exact; }
|
|
|
|
/**
|
|
* <p>The value sent by the client must match the specified value exactly.</p>
|
|
*/
|
|
inline bool ExactHasBeenSet() const { return m_exactHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The value sent by the client must match the specified value exactly.</p>
|
|
*/
|
|
inline void SetExact(const Aws::String& value) { m_exactHasBeenSet = true; m_exact = value; }
|
|
|
|
/**
|
|
* <p>The value sent by the client must match the specified value exactly.</p>
|
|
*/
|
|
inline void SetExact(Aws::String&& value) { m_exactHasBeenSet = true; m_exact = std::move(value); }
|
|
|
|
/**
|
|
* <p>The value sent by the client must match the specified value exactly.</p>
|
|
*/
|
|
inline void SetExact(const char* value) { m_exactHasBeenSet = true; m_exact.assign(value); }
|
|
|
|
/**
|
|
* <p>The value sent by the client must match the specified value exactly.</p>
|
|
*/
|
|
inline GrpcRouteMetadataMatchMethod& WithExact(const Aws::String& value) { SetExact(value); return *this;}
|
|
|
|
/**
|
|
* <p>The value sent by the client must match the specified value exactly.</p>
|
|
*/
|
|
inline GrpcRouteMetadataMatchMethod& WithExact(Aws::String&& value) { SetExact(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The value sent by the client must match the specified value exactly.</p>
|
|
*/
|
|
inline GrpcRouteMetadataMatchMethod& WithExact(const char* value) { SetExact(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The value sent by the client must begin with the specified characters.</p>
|
|
*/
|
|
inline const Aws::String& GetPrefix() const{ return m_prefix; }
|
|
|
|
/**
|
|
* <p>The value sent by the client must begin with the specified characters.</p>
|
|
*/
|
|
inline bool PrefixHasBeenSet() const { return m_prefixHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The value sent by the client must begin with the specified characters.</p>
|
|
*/
|
|
inline void SetPrefix(const Aws::String& value) { m_prefixHasBeenSet = true; m_prefix = value; }
|
|
|
|
/**
|
|
* <p>The value sent by the client must begin with the specified characters.</p>
|
|
*/
|
|
inline void SetPrefix(Aws::String&& value) { m_prefixHasBeenSet = true; m_prefix = std::move(value); }
|
|
|
|
/**
|
|
* <p>The value sent by the client must begin with the specified characters.</p>
|
|
*/
|
|
inline void SetPrefix(const char* value) { m_prefixHasBeenSet = true; m_prefix.assign(value); }
|
|
|
|
/**
|
|
* <p>The value sent by the client must begin with the specified characters.</p>
|
|
*/
|
|
inline GrpcRouteMetadataMatchMethod& WithPrefix(const Aws::String& value) { SetPrefix(value); return *this;}
|
|
|
|
/**
|
|
* <p>The value sent by the client must begin with the specified characters.</p>
|
|
*/
|
|
inline GrpcRouteMetadataMatchMethod& WithPrefix(Aws::String&& value) { SetPrefix(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The value sent by the client must begin with the specified characters.</p>
|
|
*/
|
|
inline GrpcRouteMetadataMatchMethod& WithPrefix(const char* value) { SetPrefix(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>An object that represents the range of values to match on.</p>
|
|
*/
|
|
inline const MatchRange& GetRange() const{ return m_range; }
|
|
|
|
/**
|
|
* <p>An object that represents the range of values to match on.</p>
|
|
*/
|
|
inline bool RangeHasBeenSet() const { return m_rangeHasBeenSet; }
|
|
|
|
/**
|
|
* <p>An object that represents the range of values to match on.</p>
|
|
*/
|
|
inline void SetRange(const MatchRange& value) { m_rangeHasBeenSet = true; m_range = value; }
|
|
|
|
/**
|
|
* <p>An object that represents the range of values to match on.</p>
|
|
*/
|
|
inline void SetRange(MatchRange&& value) { m_rangeHasBeenSet = true; m_range = std::move(value); }
|
|
|
|
/**
|
|
* <p>An object that represents the range of values to match on.</p>
|
|
*/
|
|
inline GrpcRouteMetadataMatchMethod& WithRange(const MatchRange& value) { SetRange(value); return *this;}
|
|
|
|
/**
|
|
* <p>An object that represents the range of values to match on.</p>
|
|
*/
|
|
inline GrpcRouteMetadataMatchMethod& WithRange(MatchRange&& value) { SetRange(std::move(value)); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The value sent by the client must include the specified characters.</p>
|
|
*/
|
|
inline const Aws::String& GetRegex() const{ return m_regex; }
|
|
|
|
/**
|
|
* <p>The value sent by the client must include the specified characters.</p>
|
|
*/
|
|
inline bool RegexHasBeenSet() const { return m_regexHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The value sent by the client must include the specified characters.</p>
|
|
*/
|
|
inline void SetRegex(const Aws::String& value) { m_regexHasBeenSet = true; m_regex = value; }
|
|
|
|
/**
|
|
* <p>The value sent by the client must include the specified characters.</p>
|
|
*/
|
|
inline void SetRegex(Aws::String&& value) { m_regexHasBeenSet = true; m_regex = std::move(value); }
|
|
|
|
/**
|
|
* <p>The value sent by the client must include the specified characters.</p>
|
|
*/
|
|
inline void SetRegex(const char* value) { m_regexHasBeenSet = true; m_regex.assign(value); }
|
|
|
|
/**
|
|
* <p>The value sent by the client must include the specified characters.</p>
|
|
*/
|
|
inline GrpcRouteMetadataMatchMethod& WithRegex(const Aws::String& value) { SetRegex(value); return *this;}
|
|
|
|
/**
|
|
* <p>The value sent by the client must include the specified characters.</p>
|
|
*/
|
|
inline GrpcRouteMetadataMatchMethod& WithRegex(Aws::String&& value) { SetRegex(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The value sent by the client must include the specified characters.</p>
|
|
*/
|
|
inline GrpcRouteMetadataMatchMethod& WithRegex(const char* value) { SetRegex(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>The value sent by the client must end with the specified characters.</p>
|
|
*/
|
|
inline const Aws::String& GetSuffix() const{ return m_suffix; }
|
|
|
|
/**
|
|
* <p>The value sent by the client must end with the specified characters.</p>
|
|
*/
|
|
inline bool SuffixHasBeenSet() const { return m_suffixHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The value sent by the client must end with the specified characters.</p>
|
|
*/
|
|
inline void SetSuffix(const Aws::String& value) { m_suffixHasBeenSet = true; m_suffix = value; }
|
|
|
|
/**
|
|
* <p>The value sent by the client must end with the specified characters.</p>
|
|
*/
|
|
inline void SetSuffix(Aws::String&& value) { m_suffixHasBeenSet = true; m_suffix = std::move(value); }
|
|
|
|
/**
|
|
* <p>The value sent by the client must end with the specified characters.</p>
|
|
*/
|
|
inline void SetSuffix(const char* value) { m_suffixHasBeenSet = true; m_suffix.assign(value); }
|
|
|
|
/**
|
|
* <p>The value sent by the client must end with the specified characters.</p>
|
|
*/
|
|
inline GrpcRouteMetadataMatchMethod& WithSuffix(const Aws::String& value) { SetSuffix(value); return *this;}
|
|
|
|
/**
|
|
* <p>The value sent by the client must end with the specified characters.</p>
|
|
*/
|
|
inline GrpcRouteMetadataMatchMethod& WithSuffix(Aws::String&& value) { SetSuffix(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The value sent by the client must end with the specified characters.</p>
|
|
*/
|
|
inline GrpcRouteMetadataMatchMethod& WithSuffix(const char* value) { SetSuffix(value); return *this;}
|
|
|
|
private:
|
|
|
|
Aws::String m_exact;
|
|
bool m_exactHasBeenSet;
|
|
|
|
Aws::String m_prefix;
|
|
bool m_prefixHasBeenSet;
|
|
|
|
MatchRange m_range;
|
|
bool m_rangeHasBeenSet;
|
|
|
|
Aws::String m_regex;
|
|
bool m_regexHasBeenSet;
|
|
|
|
Aws::String m_suffix;
|
|
bool m_suffixHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace AppMesh
|
|
} // namespace Aws
|