AWS SDK for C++  0.14.3
AWS SDK for C++
Action.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace ElasticLoadBalancingv2
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  Action();
42  Action(const Aws::Utils::Xml::XmlNode& xmlNode);
43  Action& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const ActionTypeEnum& GetType() const{ return m_type; }
52 
56  inline void SetType(const ActionTypeEnum& value) { m_typeHasBeenSet = true; m_type = value; }
57 
61  inline void SetType(ActionTypeEnum&& value) { m_typeHasBeenSet = true; m_type = value; }
62 
66  inline Action& WithType(const ActionTypeEnum& value) { SetType(value); return *this;}
67 
71  inline Action& WithType(ActionTypeEnum&& value) { SetType(value); return *this;}
72 
76  inline const Aws::String& GetTargetGroupArn() const{ return m_targetGroupArn; }
77 
81  inline void SetTargetGroupArn(const Aws::String& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
82 
86  inline void SetTargetGroupArn(Aws::String&& value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn = value; }
87 
91  inline void SetTargetGroupArn(const char* value) { m_targetGroupArnHasBeenSet = true; m_targetGroupArn.assign(value); }
92 
96  inline Action& WithTargetGroupArn(const Aws::String& value) { SetTargetGroupArn(value); return *this;}
97 
101  inline Action& WithTargetGroupArn(Aws::String&& value) { SetTargetGroupArn(value); return *this;}
102 
106  inline Action& WithTargetGroupArn(const char* value) { SetTargetGroupArn(value); return *this;}
107 
108  private:
109  ActionTypeEnum m_type;
110  bool m_typeHasBeenSet;
111  Aws::String m_targetGroupArn;
112  bool m_targetGroupArnHasBeenSet;
113  };
114 
115 } // namespace Model
116 } // namespace ElasticLoadBalancingv2
117 } // namespace Aws
void SetTargetGroupArn(const char *value)
Definition: Action.h:91
const Aws::String & GetTargetGroupArn() const
Definition: Action.h:76
Action & WithTargetGroupArn(const Aws::String &value)
Definition: Action.h:96
Action & WithType(const ActionTypeEnum &value)
Definition: Action.h:66
void SetTargetGroupArn(Aws::String &&value)
Definition: Action.h:86
const ActionTypeEnum & GetType() const
Definition: Action.h:51
void SetType(const ActionTypeEnum &value)
Definition: Action.h:56
void SetTargetGroupArn(const Aws::String &value)
Definition: Action.h:81
Action & WithTargetGroupArn(const char *value)
Definition: Action.h:106
Action & WithType(ActionTypeEnum &&value)
Definition: Action.h:71
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
void SetType(ActionTypeEnum &&value)
Definition: Action.h:61
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICLOADBALANCINGV2_API
Action & WithTargetGroupArn(Aws::String &&value)
Definition: Action.h:101
JSON (JavaScript Object Notation).