AWS SDK for C++  1.9.131
AWS SDK for C++
WeightedTarget.h
Go to the documentation of this file.
1 
6 #pragma once
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace AppMesh
22 {
23 namespace Model
24 {
25 
36  {
37  public:
42 
43 
47  inline const Aws::String& GetVirtualNode() const{ return m_virtualNode; }
48 
52  inline bool VirtualNodeHasBeenSet() const { return m_virtualNodeHasBeenSet; }
53 
57  inline void SetVirtualNode(const Aws::String& value) { m_virtualNodeHasBeenSet = true; m_virtualNode = value; }
58 
62  inline void SetVirtualNode(Aws::String&& value) { m_virtualNodeHasBeenSet = true; m_virtualNode = std::move(value); }
63 
67  inline void SetVirtualNode(const char* value) { m_virtualNodeHasBeenSet = true; m_virtualNode.assign(value); }
68 
72  inline WeightedTarget& WithVirtualNode(const Aws::String& value) { SetVirtualNode(value); return *this;}
73 
77  inline WeightedTarget& WithVirtualNode(Aws::String&& value) { SetVirtualNode(std::move(value)); return *this;}
78 
82  inline WeightedTarget& WithVirtualNode(const char* value) { SetVirtualNode(value); return *this;}
83 
84 
88  inline int GetWeight() const{ return m_weight; }
89 
93  inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
94 
98  inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
99 
103  inline WeightedTarget& WithWeight(int value) { SetWeight(value); return *this;}
104 
105  private:
106 
107  Aws::String m_virtualNode;
108  bool m_virtualNodeHasBeenSet;
109 
110  int m_weight;
111  bool m_weightHasBeenSet;
112  };
113 
114 } // namespace Model
115 } // namespace AppMesh
116 } // namespace Aws
Aws::AppMesh::Model::WeightedTarget::WithVirtualNode
WeightedTarget & WithVirtualNode(const Aws::String &value)
Definition: WeightedTarget.h:72
Aws::AppMesh::Model::WeightedTarget::GetVirtualNode
const Aws::String & GetVirtualNode() const
Definition: WeightedTarget.h:47
Aws::AppMesh::Model::WeightedTarget::SetWeight
void SetWeight(int value)
Definition: WeightedTarget.h:98
Aws::AppMesh::Model::WeightedTarget::WithVirtualNode
WeightedTarget & WithVirtualNode(Aws::String &&value)
Definition: WeightedTarget.h:77
Aws::AppMesh::Model::WeightedTarget::WeightedTarget
WeightedTarget(Aws::Utils::Json::JsonView jsonValue)
AppMesh_EXPORTS.h
Aws::AppMesh::Model::WeightedTarget
Definition: WeightedTarget.h:36
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::AppMesh::Model::WeightedTarget::WeightedTarget
WeightedTarget()
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws
Definition: AccessManagementClient.h:15
Aws::AppMesh::Model::WeightedTarget::SetVirtualNode
void SetVirtualNode(Aws::String &&value)
Definition: WeightedTarget.h:62
Aws::AppMesh::Model::WeightedTarget::SetVirtualNode
void SetVirtualNode(const char *value)
Definition: WeightedTarget.h:67
Aws::AppMesh::Model::WeightedTarget::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::AppMesh::Model::WeightedTarget::WeightHasBeenSet
bool WeightHasBeenSet() const
Definition: WeightedTarget.h:93
Aws::AppMesh::Model::WeightedTarget::VirtualNodeHasBeenSet
bool VirtualNodeHasBeenSet() const
Definition: WeightedTarget.h:52
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::AppMesh::Model::WeightedTarget::GetWeight
int GetWeight() const
Definition: WeightedTarget.h:88
Aws::AppMesh::Model::WeightedTarget::WithVirtualNode
WeightedTarget & WithVirtualNode(const char *value)
Definition: WeightedTarget.h:82
Aws::AppMesh::Model::WeightedTarget::operator=
WeightedTarget & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::AppMesh::Model::WeightedTarget::WithWeight
WeightedTarget & WithWeight(int value)
Definition: WeightedTarget.h:103
AWS_APPMESH_API
#define AWS_APPMESH_API
Definition: AppMesh_EXPORTS.h:28
Aws::AppMesh::Model::WeightedTarget::SetVirtualNode
void SetVirtualNode(const Aws::String &value)
Definition: WeightedTarget.h:57