AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WeightedTargetGroup.h
1
6#pragma once
7#include <aws/vpc-lattice/VPCLattice_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 VPCLattice
22{
23namespace Model
24{
25
32 {
33 public:
34 AWS_VPCLATTICE_API WeightedTargetGroup();
35 AWS_VPCLATTICE_API WeightedTargetGroup(Aws::Utils::Json::JsonView jsonValue);
37 AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const;
38
39
41
44 inline const Aws::String& GetTargetGroupIdentifier() const{ return m_targetGroupIdentifier; }
45 inline bool TargetGroupIdentifierHasBeenSet() const { return m_targetGroupIdentifierHasBeenSet; }
46 inline void SetTargetGroupIdentifier(const Aws::String& value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier = value; }
47 inline void SetTargetGroupIdentifier(Aws::String&& value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier = std::move(value); }
48 inline void SetTargetGroupIdentifier(const char* value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier.assign(value); }
50 inline WeightedTargetGroup& WithTargetGroupIdentifier(Aws::String&& value) { SetTargetGroupIdentifier(std::move(value)); return *this;}
51 inline WeightedTargetGroup& WithTargetGroupIdentifier(const char* value) { SetTargetGroupIdentifier(value); return *this;}
53
55
64 inline int GetWeight() const{ return m_weight; }
65 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
66 inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
67 inline WeightedTargetGroup& WithWeight(int value) { SetWeight(value); return *this;}
69 private:
70
71 Aws::String m_targetGroupIdentifier;
72 bool m_targetGroupIdentifierHasBeenSet = false;
73
74 int m_weight;
75 bool m_weightHasBeenSet = false;
76 };
77
78} // namespace Model
79} // namespace VPCLattice
80} // namespace Aws
WeightedTargetGroup & WithWeight(int value)
WeightedTargetGroup & WithTargetGroupIdentifier(const char *value)
WeightedTargetGroup & WithTargetGroupIdentifier(Aws::String &&value)
const Aws::String & GetTargetGroupIdentifier() const
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
WeightedTargetGroup & WithTargetGroupIdentifier(const Aws::String &value)
AWS_VPCLATTICE_API WeightedTargetGroup(Aws::Utils::Json::JsonView jsonValue)
AWS_VPCLATTICE_API WeightedTargetGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetTargetGroupIdentifier(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue