AWS SDK for C++  0.14.3
AWS SDK for C++
DescribeTargetGroupsResult.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 template<typename RESULT_TYPE>
25 class AmazonWebServiceResult;
26 
27 namespace Utils
28 {
29 namespace Xml
30 {
31  class XmlDocument;
32 } // namespace Xml
33 } // namespace Utils
34 namespace ElasticLoadBalancingv2
35 {
36 namespace Model
37 {
42  {
43  public:
47 
51  inline const Aws::Vector<TargetGroup>& GetTargetGroups() const{ return m_targetGroups; }
52 
56  inline void SetTargetGroups(const Aws::Vector<TargetGroup>& value) { m_targetGroups = value; }
57 
61  inline void SetTargetGroups(Aws::Vector<TargetGroup>&& value) { m_targetGroups = value; }
62 
66  inline DescribeTargetGroupsResult& WithTargetGroups(const Aws::Vector<TargetGroup>& value) { SetTargetGroups(value); return *this;}
67 
71  inline DescribeTargetGroupsResult& WithTargetGroups(Aws::Vector<TargetGroup>&& value) { SetTargetGroups(value); return *this;}
72 
76  inline DescribeTargetGroupsResult& AddTargetGroups(const TargetGroup& value) { m_targetGroups.push_back(value); return *this; }
77 
81  inline DescribeTargetGroupsResult& AddTargetGroups(TargetGroup&& value) { m_targetGroups.push_back(value); return *this; }
82 
87  inline const Aws::String& GetNextMarker() const{ return m_nextMarker; }
88 
93  inline void SetNextMarker(const Aws::String& value) { m_nextMarker = value; }
94 
99  inline void SetNextMarker(Aws::String&& value) { m_nextMarker = value; }
100 
105  inline void SetNextMarker(const char* value) { m_nextMarker.assign(value); }
106 
111  inline DescribeTargetGroupsResult& WithNextMarker(const Aws::String& value) { SetNextMarker(value); return *this;}
112 
117  inline DescribeTargetGroupsResult& WithNextMarker(Aws::String&& value) { SetNextMarker(value); return *this;}
118 
123  inline DescribeTargetGroupsResult& WithNextMarker(const char* value) { SetNextMarker(value); return *this;}
124 
125 
126  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
127 
128 
129  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
130 
131 
132  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
133 
134 
135  inline DescribeTargetGroupsResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
136 
137 
138  inline DescribeTargetGroupsResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
139 
140  private:
141  Aws::Vector<TargetGroup> m_targetGroups;
142  Aws::String m_nextMarker;
143  ResponseMetadata m_responseMetadata;
144  };
145 
146 } // namespace Model
147 } // namespace ElasticLoadBalancingv2
148 } // namespace Aws
DescribeTargetGroupsResult & WithNextMarker(Aws::String &&value)
DescribeTargetGroupsResult & WithResponseMetadata(ResponseMetadata &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
DescribeTargetGroupsResult & AddTargetGroups(const TargetGroup &value)
DescribeTargetGroupsResult & AddTargetGroups(TargetGroup &&value)
DescribeTargetGroupsResult & WithTargetGroups(const Aws::Vector< TargetGroup > &value)
DescribeTargetGroupsResult & WithNextMarker(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
DescribeTargetGroupsResult & WithTargetGroups(Aws::Vector< TargetGroup > &&value)
DescribeTargetGroupsResult & WithNextMarker(const char *value)
DescribeTargetGroupsResult & WithResponseMetadata(const ResponseMetadata &value)
#define AWS_ELASTICLOADBALANCINGV2_API
JSON (JavaScript Object Notation).