/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace AppMesh { namespace Model { /** *

An object that represents the service discovery information for a service * mesh.

See Also:

AWS * API Reference

*/ class MeshServiceDiscovery { public: AWS_APPMESH_API MeshServiceDiscovery(); AWS_APPMESH_API MeshServiceDiscovery(Aws::Utils::Json::JsonView jsonValue); AWS_APPMESH_API MeshServiceDiscovery& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The IP version to use to control traffic within the mesh.

*/ inline const IpPreference& GetIpPreference() const{ return m_ipPreference; } /** *

The IP version to use to control traffic within the mesh.

*/ inline bool IpPreferenceHasBeenSet() const { return m_ipPreferenceHasBeenSet; } /** *

The IP version to use to control traffic within the mesh.

*/ inline void SetIpPreference(const IpPreference& value) { m_ipPreferenceHasBeenSet = true; m_ipPreference = value; } /** *

The IP version to use to control traffic within the mesh.

*/ inline void SetIpPreference(IpPreference&& value) { m_ipPreferenceHasBeenSet = true; m_ipPreference = std::move(value); } /** *

The IP version to use to control traffic within the mesh.

*/ inline MeshServiceDiscovery& WithIpPreference(const IpPreference& value) { SetIpPreference(value); return *this;} /** *

The IP version to use to control traffic within the mesh.

*/ inline MeshServiceDiscovery& WithIpPreference(IpPreference&& value) { SetIpPreference(std::move(value)); return *this;} private: IpPreference m_ipPreference; bool m_ipPreferenceHasBeenSet = false; }; } // namespace Model } // namespace AppMesh } // namespace Aws