AWS SDK for C++

AWS SDK for C++ Version 1.11.755

Loading...
Searching...
No Matches
ServiceRevisionLoadBalancer.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/ecs/ECS_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace ECS {
20namespace Model {
21
30 public:
31 AWS_ECS_API ServiceRevisionLoadBalancer() = default;
35
37
41 inline const Aws::String& GetTargetGroupArn() const { return m_targetGroupArn; }
42 inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
43 template <typename TargetGroupArnT = Aws::String>
44 void SetTargetGroupArn(TargetGroupArnT&& value) {
45 m_targetGroupArnHasBeenSet = true;
46 m_targetGroupArn = std::forward<TargetGroupArnT>(value);
47 }
48 template <typename TargetGroupArnT = Aws::String>
50 SetTargetGroupArn(std::forward<TargetGroupArnT>(value));
51 return *this;
52 }
54
56
61 inline const Aws::String& GetProductionListenerRule() const { return m_productionListenerRule; }
62 inline bool ProductionListenerRuleHasBeenSet() const { return m_productionListenerRuleHasBeenSet; }
63 template <typename ProductionListenerRuleT = Aws::String>
64 void SetProductionListenerRule(ProductionListenerRuleT&& value) {
65 m_productionListenerRuleHasBeenSet = true;
66 m_productionListenerRule = std::forward<ProductionListenerRuleT>(value);
67 }
68 template <typename ProductionListenerRuleT = Aws::String>
69 ServiceRevisionLoadBalancer& WithProductionListenerRule(ProductionListenerRuleT&& value) {
70 SetProductionListenerRule(std::forward<ProductionListenerRuleT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_targetGroupArn;
76
77 Aws::String m_productionListenerRule;
78 bool m_targetGroupArnHasBeenSet = false;
79 bool m_productionListenerRuleHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace ECS
84} // namespace Aws
AWS_ECS_API ServiceRevisionLoadBalancer()=default
AWS_ECS_API ServiceRevisionLoadBalancer & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
ServiceRevisionLoadBalancer & WithProductionListenerRule(ProductionListenerRuleT &&value)
void SetProductionListenerRule(ProductionListenerRuleT &&value)
AWS_ECS_API ServiceRevisionLoadBalancer(Aws::Utils::Json::JsonView jsonValue)
ServiceRevisionLoadBalancer & WithTargetGroupArn(TargetGroupArnT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue