AWS SDK for C++

AWS SDK for C++ Version 1.11.745

Loading...
Searching...
No Matches
AdvancedConfiguration.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
33 public:
34 AWS_ECS_API AdvancedConfiguration() = default;
38
40
44 inline const Aws::String& GetAlternateTargetGroupArn() const { return m_alternateTargetGroupArn; }
45 inline bool AlternateTargetGroupArnHasBeenSet() const { return m_alternateTargetGroupArnHasBeenSet; }
46 template <typename AlternateTargetGroupArnT = Aws::String>
47 void SetAlternateTargetGroupArn(AlternateTargetGroupArnT&& value) {
48 m_alternateTargetGroupArnHasBeenSet = true;
49 m_alternateTargetGroupArn = std::forward<AlternateTargetGroupArnT>(value);
50 }
51 template <typename AlternateTargetGroupArnT = Aws::String>
52 AdvancedConfiguration& WithAlternateTargetGroupArn(AlternateTargetGroupArnT&& value) {
53 SetAlternateTargetGroupArn(std::forward<AlternateTargetGroupArnT>(value));
54 return *this;
55 }
57
59
64 inline const Aws::String& GetProductionListenerRule() const { return m_productionListenerRule; }
65 inline bool ProductionListenerRuleHasBeenSet() const { return m_productionListenerRuleHasBeenSet; }
66 template <typename ProductionListenerRuleT = Aws::String>
67 void SetProductionListenerRule(ProductionListenerRuleT&& value) {
68 m_productionListenerRuleHasBeenSet = true;
69 m_productionListenerRule = std::forward<ProductionListenerRuleT>(value);
70 }
71 template <typename ProductionListenerRuleT = Aws::String>
72 AdvancedConfiguration& WithProductionListenerRule(ProductionListenerRuleT&& value) {
73 SetProductionListenerRule(std::forward<ProductionListenerRuleT>(value));
74 return *this;
75 }
77
79
84 inline const Aws::String& GetTestListenerRule() const { return m_testListenerRule; }
85 inline bool TestListenerRuleHasBeenSet() const { return m_testListenerRuleHasBeenSet; }
86 template <typename TestListenerRuleT = Aws::String>
87 void SetTestListenerRule(TestListenerRuleT&& value) {
88 m_testListenerRuleHasBeenSet = true;
89 m_testListenerRule = std::forward<TestListenerRuleT>(value);
90 }
91 template <typename TestListenerRuleT = Aws::String>
92 AdvancedConfiguration& WithTestListenerRule(TestListenerRuleT&& value) {
93 SetTestListenerRule(std::forward<TestListenerRuleT>(value));
94 return *this;
95 }
97
99
103 inline const Aws::String& GetRoleArn() const { return m_roleArn; }
104 inline bool RoleArnHasBeenSet() const { return m_roleArnHasBeenSet; }
105 template <typename RoleArnT = Aws::String>
106 void SetRoleArn(RoleArnT&& value) {
107 m_roleArnHasBeenSet = true;
108 m_roleArn = std::forward<RoleArnT>(value);
109 }
110 template <typename RoleArnT = Aws::String>
112 SetRoleArn(std::forward<RoleArnT>(value));
113 return *this;
114 }
116 private:
117 Aws::String m_alternateTargetGroupArn;
118
119 Aws::String m_productionListenerRule;
120
121 Aws::String m_testListenerRule;
122
123 Aws::String m_roleArn;
124 bool m_alternateTargetGroupArnHasBeenSet = false;
125 bool m_productionListenerRuleHasBeenSet = false;
126 bool m_testListenerRuleHasBeenSet = false;
127 bool m_roleArnHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace ECS
132} // namespace Aws
AWS_ECS_API AdvancedConfiguration(Aws::Utils::Json::JsonView jsonValue)
void SetProductionListenerRule(ProductionListenerRuleT &&value)
AdvancedConfiguration & WithAlternateTargetGroupArn(AlternateTargetGroupArnT &&value)
AWS_ECS_API Aws::Utils::Json::JsonValue Jsonize() const
AdvancedConfiguration & WithProductionListenerRule(ProductionListenerRuleT &&value)
AdvancedConfiguration & WithTestListenerRule(TestListenerRuleT &&value)
const Aws::String & GetProductionListenerRule() const
void SetTestListenerRule(TestListenerRuleT &&value)
AWS_ECS_API AdvancedConfiguration & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetAlternateTargetGroupArn() const
void SetAlternateTargetGroupArn(AlternateTargetGroupArnT &&value)
AdvancedConfiguration & WithRoleArn(RoleArnT &&value)
AWS_ECS_API AdvancedConfiguration()=default
const Aws::String & GetTestListenerRule() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue