7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
48 inline int GetPort()
const {
return m_port; }
50 inline void SetPort(
int value) { m_portHasBeenSet =
true; m_port = value; }
60 template<
typename VirtualNodeT = Aws::String>
61 void SetVirtualNode(VirtualNodeT&& value) { m_virtualNodeHasBeenSet =
true; m_virtualNode = std::forward<VirtualNodeT>(value); }
62 template<
typename VirtualNodeT = Aws::String>
72 inline void SetWeight(
int value) { m_weightHasBeenSet =
true; m_weight = value; }
78 bool m_portHasBeenSet =
false;
81 bool m_virtualNodeHasBeenSet =
false;
84 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