AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WeightedTarget.h
1
6#pragma once
7#include <aws/appmesh/AppMesh_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace AppMesh
22{
23namespace Model
24{
25
36 {
37 public:
38 AWS_APPMESH_API WeightedTarget();
39 AWS_APPMESH_API WeightedTarget(Aws::Utils::Json::JsonView jsonValue);
41 AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const;
42
43
45
48 inline int GetPort() const{ return m_port; }
49 inline bool PortHasBeenSet() const { return m_portHasBeenSet; }
50 inline void SetPort(int value) { m_portHasBeenSet = true; m_port = value; }
51 inline WeightedTarget& WithPort(int value) { SetPort(value); return *this;}
53
55
58 inline const Aws::String& GetVirtualNode() const{ return m_virtualNode; }
59 inline bool VirtualNodeHasBeenSet() const { return m_virtualNodeHasBeenSet; }
60 inline void SetVirtualNode(const Aws::String& value) { m_virtualNodeHasBeenSet = true; m_virtualNode = value; }
61 inline void SetVirtualNode(Aws::String&& value) { m_virtualNodeHasBeenSet = true; m_virtualNode = std::move(value); }
62 inline void SetVirtualNode(const char* value) { m_virtualNodeHasBeenSet = true; m_virtualNode.assign(value); }
63 inline WeightedTarget& WithVirtualNode(const Aws::String& value) { SetVirtualNode(value); return *this;}
64 inline WeightedTarget& WithVirtualNode(Aws::String&& value) { SetVirtualNode(std::move(value)); return *this;}
65 inline WeightedTarget& WithVirtualNode(const char* value) { SetVirtualNode(value); return *this;}
67
69
72 inline int GetWeight() const{ return m_weight; }
73 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
74 inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
75 inline WeightedTarget& WithWeight(int value) { SetWeight(value); return *this;}
77 private:
78
79 int m_port;
80 bool m_portHasBeenSet = false;
81
82 Aws::String m_virtualNode;
83 bool m_virtualNodeHasBeenSet = false;
84
85 int m_weight;
86 bool m_weightHasBeenSet = false;
87 };
88
89} // namespace Model
90} // namespace AppMesh
91} // namespace Aws
WeightedTarget & WithVirtualNode(const char *value)
const Aws::String & GetVirtualNode() const
WeightedTarget & WithVirtualNode(const Aws::String &value)
AWS_APPMESH_API Aws::Utils::Json::JsonValue Jsonize() const
void SetVirtualNode(const Aws::String &value)
WeightedTarget & WithVirtualNode(Aws::String &&value)
void SetVirtualNode(const char *value)
WeightedTarget & WithWeight(int value)
AWS_APPMESH_API WeightedTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetVirtualNode(Aws::String &&value)
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