7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
42 inline int GetPort()
const {
return m_port; }
45 m_portHasBeenSet =
true;
60 template <
typename VirtualNodeT = Aws::String>
62 m_virtualNodeHasBeenSet =
true;
63 m_virtualNode = std::forward<VirtualNodeT>(value);
65 template <
typename VirtualNodeT = Aws::String>
79 m_weightHasBeenSet =
true;
93 bool m_portHasBeenSet =
false;
94 bool m_virtualNodeHasBeenSet =
false;
95 bool m_weightHasBeenSet =
false;
const Aws::String & GetVirtualNode() const
bool PortHasBeenSet() const
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVirtualNode(VirtualNodeT &&value)
bool WeightHasBeenSet() const
AWS_APPMESH_API WeightedTarget()=default
void SetWeight(int value)
bool VirtualNodeHasBeenSet() const
WeightedTarget & WithWeight(int value)
WeightedTarget & WithVirtualNode(VirtualNodeT &&value)
AWS_APPMESH_API WeightedTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_APPMESH_API WeightedTarget(Aws::Utils::Json::JsonView jsonValue)
WeightedTarget & WithPort(int value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue