153 lines
4.4 KiB
C
153 lines
4.4 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/appmesh/model/GrpcRouteMetadataMatchMethod.h>
|
|||
|
|
#include <aws/core/utils/memory/stl/AWSString.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 metadata for the route.</p><p><h3>See
|
|||
|
|
* Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/appmesh-2019-01-25/GrpcRouteMetadata">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_APPMESH_API GrpcRouteMetadata
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
GrpcRouteMetadata();
|
|||
|
|
GrpcRouteMetadata(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
GrpcRouteMetadata& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify <code>True</code> to match anything except the match criteria. The
|
|||
|
|
* default value is <code>False</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool GetInvert() const{ return m_invert; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify <code>True</code> to match anything except the match criteria. The
|
|||
|
|
* default value is <code>False</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool InvertHasBeenSet() const { return m_invertHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify <code>True</code> to match anything except the match criteria. The
|
|||
|
|
* default value is <code>False</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetInvert(bool value) { m_invertHasBeenSet = true; m_invert = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>Specify <code>True</code> to match anything except the match criteria. The
|
|||
|
|
* default value is <code>False</code>.</p>
|
|||
|
|
*/
|
|||
|
|
inline GrpcRouteMetadata& WithInvert(bool value) { SetInvert(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An object that represents the data to match from the request.</p>
|
|||
|
|
*/
|
|||
|
|
inline const GrpcRouteMetadataMatchMethod& GetMatch() const{ return m_match; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An object that represents the data to match from the request.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool MatchHasBeenSet() const { return m_matchHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An object that represents the data to match from the request.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetMatch(const GrpcRouteMetadataMatchMethod& value) { m_matchHasBeenSet = true; m_match = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An object that represents the data to match from the request.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetMatch(GrpcRouteMetadataMatchMethod&& value) { m_matchHasBeenSet = true; m_match = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An object that represents the data to match from the request.</p>
|
|||
|
|
*/
|
|||
|
|
inline GrpcRouteMetadata& WithMatch(const GrpcRouteMetadataMatchMethod& value) { SetMatch(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>An object that represents the data to match from the request.</p>
|
|||
|
|
*/
|
|||
|
|
inline GrpcRouteMetadata& WithMatch(GrpcRouteMetadataMatchMethod&& value) { SetMatch(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the route.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetName() const{ return m_name; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the route.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the route.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the route.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the route.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the route.</p>
|
|||
|
|
*/
|
|||
|
|
inline GrpcRouteMetadata& WithName(const Aws::String& value) { SetName(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the route.</p>
|
|||
|
|
*/
|
|||
|
|
inline GrpcRouteMetadata& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The name of the route.</p>
|
|||
|
|
*/
|
|||
|
|
inline GrpcRouteMetadata& WithName(const char* value) { SetName(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
bool m_invert;
|
|||
|
|
bool m_invertHasBeenSet;
|
|||
|
|
|
|||
|
|
GrpcRouteMetadataMatchMethod m_match;
|
|||
|
|
bool m_matchHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_name;
|
|||
|
|
bool m_nameHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace AppMesh
|
|||
|
|
} // namespace Aws
|