AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
Action.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/elasticloadbalancingv2/model/ActionTypeEnum.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/elasticloadbalancingv2/model/AuthenticateOidcActionConfig.h>
12#include <aws/elasticloadbalancingv2/model/AuthenticateCognitoActionConfig.h>
13#include <aws/elasticloadbalancingv2/model/RedirectActionConfig.h>
14#include <aws/elasticloadbalancingv2/model/FixedResponseActionConfig.h>
15#include <aws/elasticloadbalancingv2/model/ForwardActionConfig.h>
16#include <utility>
17
18namespace Aws
19{
20namespace Utils
21{
22namespace Xml
23{
24 class XmlNode;
25} // namespace Xml
26} // namespace Utils
27namespace ElasticLoadBalancingv2
28{
29namespace Model
30{
31
40 class Action
41 {
42 public:
43 AWS_ELASTICLOADBALANCINGV2_API Action();
44 AWS_ELASTICLOADBALANCINGV2_API Action(const Aws::Utils::Xml::XmlNode& xmlNode);
45 AWS_ELASTICLOADBALANCINGV2_API Action& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
46
47 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
49
50
52
55 inline const ActionTypeEnum& GetType() const{ return m_type; }
56 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
57 inline void SetType(const ActionTypeEnum& value) { m_typeHasBeenSet = true; m_type = value; }
58 inline void SetType(ActionTypeEnum&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
59 inline Action& WithType(const ActionTypeEnum& value) { SetType(value); return *this;}
60 inline Action& WithType(ActionTypeEnum&& value) { SetType(std::move(value)); return *this;}
62
64
70 inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; }
71 inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
72 inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
73 inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::move(value); }
74 inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); }
75 inline Action& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;}
76 inline Action& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(std::move(value)); return *this;}
77 inline Action& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;}
79
81
86 inline const AuthenticateOidcActionConfig& GetAuthenticateOidcConfig() const{ return m_authenticateOidcConfig; }
87 inline bool AuthenticateOidcConfigHasBeenSet() const { return m_authenticateOidcConfigHasBeenSet; }
88 inline void SetAuthenticateOidcConfig(const AuthenticateOidcActionConfig& value) { m_authenticateOidcConfigHasBeenSet = true; m_authenticateOidcConfig = value; }
89 inline void SetAuthenticateOidcConfig(AuthenticateOidcActionConfig&& value) { m_authenticateOidcConfigHasBeenSet = true; m_authenticateOidcConfig = std::move(value); }
93
95
99 inline const AuthenticateCognitoActionConfig& GetAuthenticateCognitoConfig() const{ return m_authenticateCognitoConfig; }
100 inline bool AuthenticateCognitoConfigHasBeenSet() const { return m_authenticateCognitoConfigHasBeenSet; }
101 inline void SetAuthenticateCognitoConfig(const AuthenticateCognitoActionConfig& value) { m_authenticateCognitoConfigHasBeenSet = true; m_authenticateCognitoConfig = value; }
102 inline void SetAuthenticateCognitoConfig(AuthenticateCognitoActionConfig&& value) { m_authenticateCognitoConfigHasBeenSet = true; m_authenticateCognitoConfig = std::move(value); }
106
108
112 inline int GetOrder() const{ return m_order; }
113 inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
114 inline void SetOrder(int value) { m_orderHasBeenSet = true; m_order = value; }
115 inline Action& WithOrder(int value) { SetOrder(value); return *this;}
117
119
123 inline const RedirectActionConfig& GetRedirectConfig() const{ return m_redirectConfig; }
124 inline bool RedirectConfigHasBeenSet() const { return m_redirectConfigHasBeenSet; }
125 inline void SetRedirectConfig(const RedirectActionConfig& value) { m_redirectConfigHasBeenSet = true; m_redirectConfig = value; }
126 inline void SetRedirectConfig(RedirectActionConfig&& value) { m_redirectConfigHasBeenSet = true; m_redirectConfig = std::move(value); }
127 inline Action& WithRedirectConfig(const RedirectActionConfig& value) { SetRedirectConfig(value); return *this;}
128 inline Action& WithRedirectConfig(RedirectActionConfig&& value) { SetRedirectConfig(std::move(value)); return *this;}
130
132
137 inline const FixedResponseActionConfig& GetFixedResponseConfig() const{ return m_fixedResponseConfig; }
138 inline bool FixedResponseConfigHasBeenSet() const { return m_fixedResponseConfigHasBeenSet; }
139 inline void SetFixedResponseConfig(const FixedResponseActionConfig& value) { m_fixedResponseConfigHasBeenSet = true; m_fixedResponseConfig = value; }
140 inline void SetFixedResponseConfig(FixedResponseActionConfig&& value) { m_fixedResponseConfigHasBeenSet = true; m_fixedResponseConfig = std::move(value); }
142 inline Action& WithFixedResponseConfig(FixedResponseActionConfig&& value) { SetFixedResponseConfig(std::move(value)); return *this;}
144
146
154 inline const ForwardActionConfig& GetForwardConfig() const{ return m_forwardConfig; }
155 inline bool ForwardConfigHasBeenSet() const { return m_forwardConfigHasBeenSet; }
156 inline void SetForwardConfig(const ForwardActionConfig& value) { m_forwardConfigHasBeenSet = true; m_forwardConfig = value; }
157 inline void SetForwardConfig(ForwardActionConfig&& value) { m_forwardConfigHasBeenSet = true; m_forwardConfig = std::move(value); }
158 inline Action& WithForwardConfig(const ForwardActionConfig& value) { SetForwardConfig(value); return *this;}
159 inline Action& WithForwardConfig(ForwardActionConfig&& value) { SetForwardConfig(std::move(value)); return *this;}
161 private:
162
163 ActionTypeEnum m_type;
164 bool m_typeHasBeenSet = false;
165
166 Aws::String m_targetGroupArn;
167 bool m_targetGroupArnHasBeenSet = false;
168
169 AuthenticateOidcActionConfig m_authenticateOidcConfig;
170 bool m_authenticateOidcConfigHasBeenSet = false;
171
172 AuthenticateCognitoActionConfig m_authenticateCognitoConfig;
173 bool m_authenticateCognitoConfigHasBeenSet = false;
174
175 int m_order;
176 bool m_orderHasBeenSet = false;
177
178 RedirectActionConfig m_redirectConfig;
179 bool m_redirectConfigHasBeenSet = false;
180
181 FixedResponseActionConfig m_fixedResponseConfig;
182 bool m_fixedResponseConfigHasBeenSet = false;
183
184 ForwardActionConfig m_forwardConfig;
185 bool m_forwardConfigHasBeenSet = false;
186 };
187
188} // namespace Model
189} // namespace ElasticLoadBalancingv2
190} // namespace Aws
void SetType(const ActionTypeEnum &value)
Definition Action.h:57
Action & WithRedirectConfig(RedirectActionConfig &&value)
Definition Action.h:128
void SetTargetGroupArn(Aws::String &&value)
Definition Action.h:73
const ActionTypeEnum & GetType() const
Definition Action.h:55
void SetType(ActionTypeEnum &&value)
Definition Action.h:58
void SetAuthenticateCognitoConfig(const AuthenticateCognitoActionConfig &value)
Definition Action.h:101
void SetTargetGroupArn(const Aws::String &value)
Definition Action.h:72
Action & WithType(ActionTypeEnum &&value)
Definition Action.h:60
AWS_ELASTICLOADBALANCINGV2_API Action()
Action & WithRedirectConfig(const RedirectActionConfig &value)
Definition Action.h:127
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const AuthenticateOidcActionConfig & GetAuthenticateOidcConfig() const
Definition Action.h:86
Action & WithFixedResponseConfig(FixedResponseActionConfig &&value)
Definition Action.h:142
AWS_ELASTICLOADBALANCINGV2_API Action & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Action & WithAuthenticateCognitoConfig(AuthenticateCognitoActionConfig &&value)
Definition Action.h:104
Action & WithTargetGroupArn(const Aws::String &value)
Definition Action.h:75
void SetAuthenticateOidcConfig(const AuthenticateOidcActionConfig &value)
Definition Action.h:88
Action & WithTargetGroupArn(const char *value)
Definition Action.h:77
Action & WithTargetGroupArn(Aws::String &&value)
Definition Action.h:76
Action & WithFixedResponseConfig(const FixedResponseActionConfig &value)
Definition Action.h:141
const Aws::String & GetTargetGroupArn() const
Definition Action.h:70
void SetForwardConfig(const ForwardActionConfig &value)
Definition Action.h:156
Action & WithType(const ActionTypeEnum &value)
Definition Action.h:59
void SetAuthenticateCognitoConfig(AuthenticateCognitoActionConfig &&value)
Definition Action.h:102
Action & WithForwardConfig(const ForwardActionConfig &value)
Definition Action.h:158
Action & WithAuthenticateCognitoConfig(const AuthenticateCognitoActionConfig &value)
Definition Action.h:103
void SetRedirectConfig(RedirectActionConfig &&value)
Definition Action.h:126
void SetForwardConfig(ForwardActionConfig &&value)
Definition Action.h:157
Action & WithAuthenticateOidcConfig(AuthenticateOidcActionConfig &&value)
Definition Action.h:91
const RedirectActionConfig & GetRedirectConfig() const
Definition Action.h:123
void SetFixedResponseConfig(FixedResponseActionConfig &&value)
Definition Action.h:140
Action & WithForwardConfig(ForwardActionConfig &&value)
Definition Action.h:159
void SetRedirectConfig(const RedirectActionConfig &value)
Definition Action.h:125
const AuthenticateCognitoActionConfig & GetAuthenticateCognitoConfig() const
Definition Action.h:99
void SetAuthenticateOidcConfig(AuthenticateOidcActionConfig &&value)
Definition Action.h:89
void SetFixedResponseConfig(const FixedResponseActionConfig &value)
Definition Action.h:139
const ForwardActionConfig & GetForwardConfig() const
Definition Action.h:154
void SetTargetGroupArn(const char *value)
Definition Action.h:74
const FixedResponseActionConfig & GetFixedResponseConfig() const
Definition Action.h:137
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
Action & WithAuthenticateOidcConfig(const AuthenticateOidcActionConfig &value)
Definition Action.h:90
AWS_ELASTICLOADBALANCINGV2_API Action(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream