AWS SDK for C++  0.12.9
AWS SDK for C++
BackendServerDescription.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 ElasticLoadBalancing
31 {
32 namespace Model
33 {
34 
39  {
40  public:
43  BackendServerDescription& 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 long GetInstancePort() const{ return m_instancePort; }
52 
56  inline void SetInstancePort(long value) { m_instancePortHasBeenSet = true; m_instancePort = value; }
57 
61  inline BackendServerDescription& WithInstancePort(long value) { SetInstancePort(value); return *this;}
62 
66  inline const Aws::Vector<Aws::String>& GetPolicyNames() const{ return m_policyNames; }
67 
71  inline void SetPolicyNames(const Aws::Vector<Aws::String>& value) { m_policyNamesHasBeenSet = true; m_policyNames = value; }
72 
76  inline void SetPolicyNames(Aws::Vector<Aws::String>&& value) { m_policyNamesHasBeenSet = true; m_policyNames = value; }
77 
81  inline BackendServerDescription& WithPolicyNames(const Aws::Vector<Aws::String>& value) { SetPolicyNames(value); return *this;}
82 
86  inline BackendServerDescription& WithPolicyNames(Aws::Vector<Aws::String>&& value) { SetPolicyNames(value); return *this;}
87 
91  inline BackendServerDescription& AddPolicyNames(const Aws::String& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
92 
96  inline BackendServerDescription& AddPolicyNames(Aws::String&& value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
97 
101  inline BackendServerDescription& AddPolicyNames(const char* value) { m_policyNamesHasBeenSet = true; m_policyNames.push_back(value); return *this; }
102 
103  private:
104  long m_instancePort;
105  bool m_instancePortHasBeenSet;
106  Aws::Vector<Aws::String> m_policyNames;
107  bool m_policyNamesHasBeenSet;
108  };
109 
110 } // namespace Model
111 } // namespace ElasticLoadBalancing
112 } // namespace Aws
BackendServerDescription & WithPolicyNames(const Aws::Vector< Aws::String > &value)
BackendServerDescription & AddPolicyNames(const char *value)
BackendServerDescription & WithPolicyNames(Aws::Vector< Aws::String > &&value)
void SetPolicyNames(const Aws::Vector< Aws::String > &value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
BackendServerDescription & AddPolicyNames(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_ELASTICLOADBALANCING_API
const Aws::Vector< Aws::String > & GetPolicyNames() const
BackendServerDescription & AddPolicyNames(Aws::String &&value)
JSON (JavaScript Object Notation).