AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ServiceRevisionLoadBalancer.h
1
6#pragma once
7#include <aws/ecs/ECS_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 ECS
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_ECS_API ServiceRevisionLoadBalancer() = default;
40
41
43
47 inline const Aws::String& GetTargetGroupArn() const { return m_targetGroupArn; }
48 inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
49 template<typename TargetGroupArnT = Aws::String>
50 void SetTargetGroupArn(TargetGroupArnT&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::forward<TargetGroupArnT>(value); }
51 template<typename TargetGroupArnT = Aws::String>
52 ServiceRevisionLoadBalancer& WithTargetGroupArn(TargetGroupArnT&& value) { SetTargetGroupArn(std::forward<TargetGroupArnT>(value)); return *this;}
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) { m_productionListenerRuleHasBeenSet = true; m_productionListenerRule = std::forward<ProductionListenerRuleT>(value); }
65 template<typename ProductionListenerRuleT = Aws::String>
66 ServiceRevisionLoadBalancer& WithProductionListenerRule(ProductionListenerRuleT&& value) { SetProductionListenerRule(std::forward<ProductionListenerRuleT>(value)); return *this;}
68 private:
69
70 Aws::String m_targetGroupArn;
71 bool m_targetGroupArnHasBeenSet = false;
72
73 Aws::String m_productionListenerRule;
74 bool m_productionListenerRuleHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace ECS
79} // 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