AWS SDK for C++  1.9.71
AWS SDK for C++
Action.h
Go to the documentation of this file.
1 
6 #pragma once
16 #include <utility>
17 
18 namespace Aws
19 {
20 namespace Utils
21 {
22 namespace Xml
23 {
24  class XmlNode;
25 } // namespace Xml
26 } // namespace Utils
27 namespace ElasticLoadBalancingv2
28 {
29 namespace Model
30 {
31 
41  {
42  public:
43  Action();
46 
47  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
48  void OutputToStream(Aws::OStream& oStream, const char* location) const;
49 
50 
54  inline const ActionTypeEnum& GetType() const{ return m_type; }
55 
59  inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
60 
64  inline void SetType(const ActionTypeEnum& value) { m_typeHasBeenSet = true; m_type = value; }
65 
69  inline void SetType(ActionTypeEnum&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
70 
74  inline Action& WithType(const ActionTypeEnum& value) { SetType(value); return *this;}
75 
79  inline Action& WithType(ActionTypeEnum&& value) { SetType(std::move(value)); return *this;}
80 
81 
88  inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; }
89 
96  inline bool TargetGroupArnHasBeenSet() const { return m_targetGroupArnHasBeenSet; }
97 
104  inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
105 
112  inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = std::move(value); }
113 
120  inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); }
121 
128  inline Action& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;}
129 
136  inline Action& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(std::move(value)); return *this;}
137 
144  inline Action& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;}
145 
146 
152  inline const AuthenticateOidcActionConfig& GetAuthenticateOidcConfig() const{ return m_authenticateOidcConfig; }
153 
159  inline bool AuthenticateOidcConfigHasBeenSet() const { return m_authenticateOidcConfigHasBeenSet; }
160 
166  inline void SetAuthenticateOidcConfig(const AuthenticateOidcActionConfig& value) { m_authenticateOidcConfigHasBeenSet = true; m_authenticateOidcConfig = value; }
167 
173  inline void SetAuthenticateOidcConfig(AuthenticateOidcActionConfig&& value) { m_authenticateOidcConfigHasBeenSet = true; m_authenticateOidcConfig = std::move(value); }
174 
180  inline Action& WithAuthenticateOidcConfig(const AuthenticateOidcActionConfig& value) { SetAuthenticateOidcConfig(value); return *this;}
181 
187  inline Action& WithAuthenticateOidcConfig(AuthenticateOidcActionConfig&& value) { SetAuthenticateOidcConfig(std::move(value)); return *this;}
188 
189 
194  inline const AuthenticateCognitoActionConfig& GetAuthenticateCognitoConfig() const{ return m_authenticateCognitoConfig; }
195 
200  inline bool AuthenticateCognitoConfigHasBeenSet() const { return m_authenticateCognitoConfigHasBeenSet; }
201 
206  inline void SetAuthenticateCognitoConfig(const AuthenticateCognitoActionConfig& value) { m_authenticateCognitoConfigHasBeenSet = true; m_authenticateCognitoConfig = value; }
207 
212  inline void SetAuthenticateCognitoConfig(AuthenticateCognitoActionConfig&& value) { m_authenticateCognitoConfigHasBeenSet = true; m_authenticateCognitoConfig = std::move(value); }
213 
218  inline Action& WithAuthenticateCognitoConfig(const AuthenticateCognitoActionConfig& value) { SetAuthenticateCognitoConfig(value); return *this;}
219 
224  inline Action& WithAuthenticateCognitoConfig(AuthenticateCognitoActionConfig&& value) { SetAuthenticateCognitoConfig(std::move(value)); return *this;}
225 
226 
231  inline int GetOrder() const{ return m_order; }
232 
237  inline bool OrderHasBeenSet() const { return m_orderHasBeenSet; }
238 
243  inline void SetOrder(int value) { m_orderHasBeenSet = true; m_order = value; }
244 
249  inline Action& WithOrder(int value) { SetOrder(value); return *this;}
250 
251 
256  inline const RedirectActionConfig& GetRedirectConfig() const{ return m_redirectConfig; }
257 
262  inline bool RedirectConfigHasBeenSet() const { return m_redirectConfigHasBeenSet; }
263 
268  inline void SetRedirectConfig(const RedirectActionConfig& value) { m_redirectConfigHasBeenSet = true; m_redirectConfig = value; }
269 
274  inline void SetRedirectConfig(RedirectActionConfig&& value) { m_redirectConfigHasBeenSet = true; m_redirectConfig = std::move(value); }
275 
280  inline Action& WithRedirectConfig(const RedirectActionConfig& value) { SetRedirectConfig(value); return *this;}
281 
286  inline Action& WithRedirectConfig(RedirectActionConfig&& value) { SetRedirectConfig(std::move(value)); return *this;}
287 
288 
294  inline const FixedResponseActionConfig& GetFixedResponseConfig() const{ return m_fixedResponseConfig; }
295 
301  inline bool FixedResponseConfigHasBeenSet() const { return m_fixedResponseConfigHasBeenSet; }
302 
308  inline void SetFixedResponseConfig(const FixedResponseActionConfig& value) { m_fixedResponseConfigHasBeenSet = true; m_fixedResponseConfig = value; }
309 
315  inline void SetFixedResponseConfig(FixedResponseActionConfig&& value) { m_fixedResponseConfigHasBeenSet = true; m_fixedResponseConfig = std::move(value); }
316 
322  inline Action& WithFixedResponseConfig(const FixedResponseActionConfig& value) { SetFixedResponseConfig(value); return *this;}
323 
329  inline Action& WithFixedResponseConfig(FixedResponseActionConfig&& value) { SetFixedResponseConfig(std::move(value)); return *this;}
330 
331 
340  inline const ForwardActionConfig& GetForwardConfig() const{ return m_forwardConfig; }
341 
350  inline bool ForwardConfigHasBeenSet() const { return m_forwardConfigHasBeenSet; }
351 
360  inline void SetForwardConfig(const ForwardActionConfig& value) { m_forwardConfigHasBeenSet = true; m_forwardConfig = value; }
361 
370  inline void SetForwardConfig(ForwardActionConfig&& value) { m_forwardConfigHasBeenSet = true; m_forwardConfig = std::move(value); }
371 
380  inline Action& WithForwardConfig(const ForwardActionConfig& value) { SetForwardConfig(value); return *this;}
381 
390  inline Action& WithForwardConfig(ForwardActionConfig&& value) { SetForwardConfig(std::move(value)); return *this;}
391 
392  private:
393 
394  ActionTypeEnum m_type;
395  bool m_typeHasBeenSet;
396 
397  Aws::String m_targetGroupArn;
398  bool m_targetGroupArnHasBeenSet;
399 
400  AuthenticateOidcActionConfig m_authenticateOidcConfig;
401  bool m_authenticateOidcConfigHasBeenSet;
402 
403  AuthenticateCognitoActionConfig m_authenticateCognitoConfig;
404  bool m_authenticateCognitoConfigHasBeenSet;
405 
406  int m_order;
407  bool m_orderHasBeenSet;
408 
409  RedirectActionConfig m_redirectConfig;
410  bool m_redirectConfigHasBeenSet;
411 
412  FixedResponseActionConfig m_fixedResponseConfig;
413  bool m_fixedResponseConfigHasBeenSet;
414 
415  ForwardActionConfig m_forwardConfig;
416  bool m_forwardConfigHasBeenSet;
417  };
418 
419 } // namespace Model
420 } // namespace ElasticLoadBalancingv2
421 } // namespace Aws
AuthenticateOidcActionConfig.h
Aws::ElasticLoadBalancingv2::Model::Action::WithForwardConfig
Action & WithForwardConfig(ForwardActionConfig &&value)
Definition: Action.h:390
Aws::ElasticLoadBalancingv2::Model::AuthenticateCognitoActionConfig
Definition: AuthenticateCognitoActionConfig.h:35
AuthenticateCognitoActionConfig.h
Aws::ElasticLoadBalancingv2::Model::Action::TargetGroupArnHasBeenSet
bool TargetGroupArnHasBeenSet() const
Definition: Action.h:96
Aws::ElasticLoadBalancingv2::Model::Action::GetRedirectConfig
const RedirectActionConfig & GetRedirectConfig() const
Definition: Action.h:256
Aws::ElasticLoadBalancingv2::Model::Action::GetAuthenticateCognitoConfig
const AuthenticateCognitoActionConfig & GetAuthenticateCognitoConfig() const
Definition: Action.h:194
Aws::ElasticLoadBalancingv2::Model::Action::WithTargetGroupArn
Action & WithTargetGroupArn(const Aws::String &value)
Definition: Action.h:128
Aws::ElasticLoadBalancingv2::Model::AuthenticateOidcActionConfig
Definition: AuthenticateOidcActionConfig.h:35
Aws::ElasticLoadBalancingv2::Model::Action::SetAuthenticateOidcConfig
void SetAuthenticateOidcConfig(AuthenticateOidcActionConfig &&value)
Definition: Action.h:173
Aws::ElasticLoadBalancingv2::Model::Action::SetType
void SetType(ActionTypeEnum &&value)
Definition: Action.h:69
Aws::ElasticLoadBalancingv2::Model::Action::Action
Action(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::ElasticLoadBalancingv2::Model::Action::GetType
const ActionTypeEnum & GetType() const
Definition: Action.h:54
FixedResponseActionConfig.h
Aws::ElasticLoadBalancingv2::Model::Action::WithAuthenticateCognitoConfig
Action & WithAuthenticateCognitoConfig(const AuthenticateCognitoActionConfig &value)
Definition: Action.h:218
Aws::ElasticLoadBalancingv2::Model::Action::SetFixedResponseConfig
void SetFixedResponseConfig(const FixedResponseActionConfig &value)
Definition: Action.h:308
Aws::ElasticLoadBalancingv2::Model::Action::SetTargetGroupArn
void SetTargetGroupArn(const Aws::String &value)
Definition: Action.h:104
Aws::ElasticLoadBalancingv2::Model::Action
Definition: Action.h:41
Aws::ElasticLoadBalancingv2::Model::Action::FixedResponseConfigHasBeenSet
bool FixedResponseConfigHasBeenSet() const
Definition: Action.h:301
Aws::ElasticLoadBalancingv2::Model::Action::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::ElasticLoadBalancingv2::Model::Action::WithType
Action & WithType(ActionTypeEnum &&value)
Definition: Action.h:79
Aws::ElasticLoadBalancingv2::Model::FixedResponseActionConfig
Definition: FixedResponseActionConfig.h:33
AWSStreamFwd.h
Aws::ElasticLoadBalancingv2::Model::Action::SetAuthenticateCognitoConfig
void SetAuthenticateCognitoConfig(AuthenticateCognitoActionConfig &&value)
Definition: Action.h:212
Aws::ElasticLoadBalancingv2::Model::Action::GetForwardConfig
const ForwardActionConfig & GetForwardConfig() const
Definition: Action.h:340
Aws::ElasticLoadBalancingv2::Model::Action::WithRedirectConfig
Action & WithRedirectConfig(RedirectActionConfig &&value)
Definition: Action.h:286
Aws::ElasticLoadBalancingv2::Model::Action::SetTargetGroupArn
void SetTargetGroupArn(const char *value)
Definition: Action.h:120
Aws::ElasticLoadBalancingv2::Model::Action::WithOrder
Action & WithOrder(int value)
Definition: Action.h:249
Aws::ElasticLoadBalancingv2::Model::Action::Action
Action()
Aws::ElasticLoadBalancingv2::Model::Action::WithFixedResponseConfig
Action & WithFixedResponseConfig(const FixedResponseActionConfig &value)
Definition: Action.h:322
Aws::ElasticLoadBalancingv2::Model::ForwardActionConfig
Definition: ForwardActionConfig.h:34
Aws::ElasticLoadBalancingv2::Model::Action::GetTargetGroupArn
const Aws::String & GetTargetGroupArn() const
Definition: Action.h:88
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::ElasticLoadBalancingv2::Model::Action::AuthenticateCognitoConfigHasBeenSet
bool AuthenticateCognitoConfigHasBeenSet() const
Definition: Action.h:200
Aws::ElasticLoadBalancingv2::Model::Action::GetOrder
int GetOrder() const
Definition: Action.h:231
Aws::ElasticLoadBalancingv2::Model::Action::SetAuthenticateOidcConfig
void SetAuthenticateOidcConfig(const AuthenticateOidcActionConfig &value)
Definition: Action.h:166
Aws::ElasticLoadBalancingv2::Model::Action::WithAuthenticateOidcConfig
Action & WithAuthenticateOidcConfig(AuthenticateOidcActionConfig &&value)
Definition: Action.h:187
Aws::ElasticLoadBalancingv2::Model::Action::SetTargetGroupArn
void SetTargetGroupArn(Aws::String &&value)
Definition: Action.h:112
Aws::ElasticLoadBalancingv2::Model::Action::ForwardConfigHasBeenSet
bool ForwardConfigHasBeenSet() const
Definition: Action.h:350
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::ElasticLoadBalancingv2::Model::Action::WithTargetGroupArn
Action & WithTargetGroupArn(const char *value)
Definition: Action.h:144
Aws::ElasticLoadBalancingv2::Model::Action::SetRedirectConfig
void SetRedirectConfig(RedirectActionConfig &&value)
Definition: Action.h:274
Aws::ElasticLoadBalancingv2::Model::Action::RedirectConfigHasBeenSet
bool RedirectConfigHasBeenSet() const
Definition: Action.h:262
AWSString.h
Aws::ElasticLoadBalancingv2::Model::Action::WithFixedResponseConfig
Action & WithFixedResponseConfig(FixedResponseActionConfig &&value)
Definition: Action.h:329
Aws::ElasticLoadBalancingv2::Model::Action::GetAuthenticateOidcConfig
const AuthenticateOidcActionConfig & GetAuthenticateOidcConfig() const
Definition: Action.h:152
Aws::ElasticLoadBalancingv2::Model::Action::WithForwardConfig
Action & WithForwardConfig(const ForwardActionConfig &value)
Definition: Action.h:380
Aws::ElasticLoadBalancingv2::Model::Action::SetForwardConfig
void SetForwardConfig(const ForwardActionConfig &value)
Definition: Action.h:360
Aws::ElasticLoadBalancingv2::Model::Action::OrderHasBeenSet
bool OrderHasBeenSet() const
Definition: Action.h:237
ElasticLoadBalancingv2_EXPORTS.h
ActionTypeEnum.h
Aws::ElasticLoadBalancingv2::Model::Action::WithTargetGroupArn
Action & WithTargetGroupArn(Aws::String &&value)
Definition: Action.h:136
Aws::ElasticLoadBalancingv2::Model::ActionTypeEnum
ActionTypeEnum
Definition: ActionTypeEnum.h:17
Aws::ElasticLoadBalancingv2::Model::Action::WithAuthenticateCognitoConfig
Action & WithAuthenticateCognitoConfig(AuthenticateCognitoActionConfig &&value)
Definition: Action.h:224
ForwardActionConfig.h
Aws::ElasticLoadBalancingv2::Model::Action::SetType
void SetType(const ActionTypeEnum &value)
Definition: Action.h:64
Aws::ElasticLoadBalancingv2::Model::Action::WithRedirectConfig
Action & WithRedirectConfig(const RedirectActionConfig &value)
Definition: Action.h:280
Aws
Definition: AccessManagementClient.h:15
Aws::ElasticLoadBalancingv2::Model::Action::AuthenticateOidcConfigHasBeenSet
bool AuthenticateOidcConfigHasBeenSet() const
Definition: Action.h:159
AWS_ELASTICLOADBALANCINGV2_API
#define AWS_ELASTICLOADBALANCINGV2_API
Definition: ElasticLoadBalancingv2_EXPORTS.h:28
Aws::ElasticLoadBalancingv2::Model::Action::WithType
Action & WithType(const ActionTypeEnum &value)
Definition: Action.h:74
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
index
int index
Definition: cJSON.h:181
Aws::ElasticLoadBalancingv2::Model::RedirectActionConfig
Definition: RedirectActionConfig.h:42
Aws::ElasticLoadBalancingv2::Model::Action::SetOrder
void SetOrder(int value)
Definition: Action.h:243
Aws::ElasticLoadBalancingv2::Model::Action::SetForwardConfig
void SetForwardConfig(ForwardActionConfig &&value)
Definition: Action.h:370
Aws::ElasticLoadBalancingv2::Model::Action::SetRedirectConfig
void SetRedirectConfig(const RedirectActionConfig &value)
Definition: Action.h:268
Aws::ElasticLoadBalancingv2::Model::Action::operator=
Action & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::ElasticLoadBalancingv2::Model::Action::TypeHasBeenSet
bool TypeHasBeenSet() const
Definition: Action.h:59
RedirectActionConfig.h
Aws::ElasticLoadBalancingv2::Model::Action::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::ElasticLoadBalancingv2::Model::Action::SetFixedResponseConfig
void SetFixedResponseConfig(FixedResponseActionConfig &&value)
Definition: Action.h:315
Aws::ElasticLoadBalancingv2::Model::Action::SetAuthenticateCognitoConfig
void SetAuthenticateCognitoConfig(const AuthenticateCognitoActionConfig &value)
Definition: Action.h:206
Aws::ElasticLoadBalancingv2::Model::Action::WithAuthenticateOidcConfig
Action & WithAuthenticateOidcConfig(const AuthenticateOidcActionConfig &value)
Definition: Action.h:180
Aws::ElasticLoadBalancingv2::Model::Action::GetFixedResponseConfig
const FixedResponseActionConfig & GetFixedResponseConfig() const
Definition: Action.h:294