AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 template<typename TargetGroupIdentifierT = Aws::String>
47 void SetTargetGroupIdentifier(TargetGroupIdentifierT&& value) { m_targetGroupIdentifierHasBeenSet = true; m_targetGroupIdentifier = std::forward<TargetGroupIdentifierT>(value); }
48 template<typename TargetGroupIdentifierT = Aws::String>
49 WeightedTargetGroup& WithTargetGroupIdentifier(TargetGroupIdentifierT&& value) { SetTargetGroupIdentifier(std::forward<TargetGroupIdentifierT>(value)); return *this;}
51
53
62 inline int GetWeight() const { return m_weight; }
63 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
64 inline void SetWeight(int value) { m_weightHasBeenSet = true; m_weight = value; }
65 inline WeightedTargetGroup& WithWeight(int value) { SetWeight(value); return *this;}
67 private:
68
69 Aws::String m_targetGroupIdentifier;
70 bool m_targetGroupIdentifierHasBeenSet = false;
71
72 int m_weight{0};
73 bool m_weightHasBeenSet = false;
74 };
75
76} // namespace Model
77} // namespace VPCLattice
78} // namespace Aws
WeightedTargetGroup & WithWeight(int value)
const Aws::String & GetTargetGroupIdentifier() const
AWS_VPCLATTICE_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VPCLATTICE_API WeightedTargetGroup()=default
AWS_VPCLATTICE_API WeightedTargetGroup(Aws::Utils::Json::JsonView jsonValue)
AWS_VPCLATTICE_API WeightedTargetGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
WeightedTargetGroup & WithTargetGroupIdentifier(TargetGroupIdentifierT &&value)
void SetTargetGroupIdentifier(TargetGroupIdentifierT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue