AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
RoutingConfigEntry.h
1
6#pragma once
7#include <aws/amplifygen3/AmplifyGen3_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace AmplifyGen3 {
20namespace Model {
21
29 public:
30 AWS_AMPLIFYGEN3_API RoutingConfigEntry() = default;
31 AWS_AMPLIFYGEN3_API RoutingConfigEntry(Aws::Utils::Json::JsonView jsonValue);
33 AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
39 inline const Aws::String& GetDeploymentId() const { return m_deploymentId; }
40 inline bool DeploymentIdHasBeenSet() const { return m_deploymentIdHasBeenSet; }
41 template <typename DeploymentIdT = Aws::String>
42 void SetDeploymentId(DeploymentIdT&& value) {
43 m_deploymentIdHasBeenSet = true;
44 m_deploymentId = std::forward<DeploymentIdT>(value);
45 }
46 template <typename DeploymentIdT = Aws::String>
47 RoutingConfigEntry& WithDeploymentId(DeploymentIdT&& value) {
48 SetDeploymentId(std::forward<DeploymentIdT>(value));
49 return *this;
50 }
52
54
57 inline int GetWeight() const { return m_weight; }
58 inline bool WeightHasBeenSet() const { return m_weightHasBeenSet; }
59 inline void SetWeight(int value) {
60 m_weightHasBeenSet = true;
61 m_weight = value;
62 }
63 inline RoutingConfigEntry& WithWeight(int value) {
64 SetWeight(value);
65 return *this;
66 }
68 private:
69 Aws::String m_deploymentId;
70
71 int m_weight{0};
72 bool m_deploymentIdHasBeenSet = false;
73 bool m_weightHasBeenSet = false;
74};
75
76} // namespace Model
77} // namespace AmplifyGen3
78} // namespace Aws
AWS_AMPLIFYGEN3_API RoutingConfigEntry()=default
AWS_AMPLIFYGEN3_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetDeploymentId() const
RoutingConfigEntry & WithDeploymentId(DeploymentIdT &&value)
RoutingConfigEntry & WithWeight(int value)
AWS_AMPLIFYGEN3_API RoutingConfigEntry(Aws::Utils::Json::JsonView jsonValue)
void SetWeight(int value)
bool DeploymentIdHasBeenSet() const
int GetWeight() const
void SetDeploymentId(DeploymentIdT &&value)
AWS_AMPLIFYGEN3_API RoutingConfigEntry & operator=(Aws::Utils::Json::JsonView jsonValue)
bool WeightHasBeenSet() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue