AWS SDK for C++  0.14.3
AWS SDK for C++
ListenerDescription.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
21 
22 namespace Aws
23 {
24 namespace Utils
25 {
26 namespace Xml
27 {
28  class XmlNode;
29 } // namespace Xml
30 } // namespace Utils
31 namespace ElasticLoadBalancing
32 {
33 namespace Model
34 {
35 
40  {
41  public:
44  ListenerDescription& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
45 
46  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
47  void OutputToStream(Aws::OStream& oStream, const char* location) const;
48 
49 
50  inline const Listener& GetListener() const{ return m_listener; }
51 
52 
53  inline void SetListener(const Listener& value) { m_listenerHasBeenSet = true; m_listener = value; }
54 
55 
56  inline void SetListener(Listener&& value) { m_listenerHasBeenSet = true; m_listener = value; }
57 
58 
59  inline ListenerDescription& WithListener(const Listener& value) { SetListener(value); return *this;}
60 
61 
62  inline ListenerDescription& WithListener(Listener&& value) { SetListener(value); return *this;}
63 
67  inline const Aws::Vector<Aws::String>& GetPolicyNames() const{ return m_policyNames; }
68 
72  inline void SetPolicyNames(const Aws::Vector<Aws::String>& value) { m_policyNamesHasBeenSet = true; m_policyNames = value; }
73 
77  inline void SetPolicyNames(Aws::Vector<Aws::String>&& value) { m_policyNamesHasBeenSet = true; m_policyNames = value; }
78 
82  inline ListenerDescription& WithPolicyNames(const Aws::Vector<Aws::String>& value) { SetPolicyNames(value); return *this;}
83 
87  inline ListenerDescription& WithPolicyNames(Aws::Vector<Aws::String>&& value) { SetPolicyNames(value); return *this;}
88 
92  inline ListenerDescription& AddPolicyNames(const Aws::String& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
93 
97  inline ListenerDescription& AddPolicyNames(Aws::String&& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
98 
102  inline ListenerDescription& AddPolicyNames(const char* value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
103 
104  private:
105  Listener m_listener;
106  bool m_listenerHasBeenSet;
107  Aws::Vector<Aws::String> m_policyNames;
108  bool m_policyNamesHasBeenSet;
109  };
110 
111 } // namespace Model
112 } // namespace ElasticLoadBalancing
113 } // namespace Aws
void SetPolicyNames(const Aws::Vector< Aws::String > &value)
ListenerDescription & WithPolicyNames(const Aws::Vector< Aws::String > &value)
ListenerDescription & AddPolicyNames(const char *value)
ListenerDescription & WithListener(const Listener &value)
const Aws::Vector< Aws::String > & GetPolicyNames() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ListenerDescription & AddPolicyNames(const Aws::String &value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
ListenerDescription & WithPolicyNames(Aws::Vector< Aws::String > &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListenerDescription & WithListener(Listener &&value)
#define AWS_ELASTICLOADBALANCING_API
void SetPolicyNames(Aws::Vector< Aws::String > &&value)
ListenerDescription & AddPolicyNames(Aws::String &&value)
JSON (JavaScript Object Notation).