AWS SDK for C++  0.14.3
AWS SDK for C++
SetSubnetsRequest.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 ElasticLoadBalancingv2
24 {
25 namespace Model
26 {
27 
32  {
33  public:
35  Aws::String SerializePayload() const override;
36 
40  inline const Aws::String& GetLoadBalancerArn() const{ return m_loadBalancerArn; }
41 
45  inline void SetLoadBalancerArn(const Aws::String& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = value; }
46 
50  inline void SetLoadBalancerArn(Aws::String&& value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn = value; }
51 
55  inline void SetLoadBalancerArn(const char* value) { m_loadBalancerArnHasBeenSet = true; m_loadBalancerArn.assign(value); }
56 
60  inline SetSubnetsRequest& WithLoadBalancerArn(const Aws::String& value) { SetLoadBalancerArn(value); return *this;}
61 
65  inline SetSubnetsRequest& WithLoadBalancerArn(Aws::String&& value) { SetLoadBalancerArn(value); return *this;}
66 
70  inline SetSubnetsRequest& WithLoadBalancerArn(const char* value) { SetLoadBalancerArn(value); return *this;}
71 
76  inline const Aws::Vector<Aws::String>& GetSubnets() const{ return m_subnets; }
77 
82  inline void SetSubnets(const Aws::Vector<Aws::String>& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
83 
88  inline void SetSubnets(Aws::Vector<Aws::String>&& value) { m_subnetsHasBeenSet = true; m_subnets = value; }
89 
94  inline SetSubnetsRequest& WithSubnets(const Aws::Vector<Aws::String>& value) { SetSubnets(value); return *this;}
95 
100  inline SetSubnetsRequest& WithSubnets(Aws::Vector<Aws::String>&& value) { SetSubnets(value); return *this;}
101 
106  inline SetSubnetsRequest& AddSubnets(const Aws::String& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
107 
112  inline SetSubnetsRequest& AddSubnets(Aws::String&& value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
113 
118  inline SetSubnetsRequest& AddSubnets(const char* value) { m_subnetsHasBeenSet = true; m_subnets.push_back(value); return *this; }
119 
120  private:
121  Aws::String m_loadBalancerArn;
122  bool m_loadBalancerArnHasBeenSet;
123  Aws::Vector<Aws::String> m_subnets;
124  bool m_subnetsHasBeenSet;
125  };
126 
127 } // namespace Model
128 } // namespace ElasticLoadBalancingv2
129 } // namespace Aws
SetSubnetsRequest & AddSubnets(Aws::String &&value)
void SetSubnets(Aws::Vector< Aws::String > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
SetSubnetsRequest & AddSubnets(const Aws::String &value)
const Aws::Vector< Aws::String > & GetSubnets() const
SetSubnetsRequest & WithSubnets(const Aws::Vector< Aws::String > &value)
SetSubnetsRequest & WithSubnets(Aws::Vector< Aws::String > &&value)
SetSubnetsRequest & WithLoadBalancerArn(const Aws::String &value)
SetSubnetsRequest & WithLoadBalancerArn(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
SetSubnetsRequest & AddSubnets(const char *value)
SetSubnetsRequest & WithLoadBalancerArn(Aws::String &&value)
#define AWS_ELASTICLOADBALANCINGV2_API
void SetSubnets(const Aws::Vector< Aws::String > &value)
JSON (JavaScript Object Notation).