AWS SDK for C++  0.14.3
AWS SDK for C++
GetDeploymentsResult.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 template<typename RESULT_TYPE>
24 class AmazonWebServiceResult;
25 
26 namespace Utils
27 {
28 namespace Json
29 {
30  class JsonValue;
31 } // namespace Json
32 } // namespace Utils
33 namespace APIGateway
34 {
35 namespace Model
36 {
44  {
45  public:
49 
50 
51  inline const Aws::String& GetPosition() const{ return m_position; }
52 
53 
54  inline void SetPosition(const Aws::String& value) { m_position = value; }
55 
56 
57  inline void SetPosition(Aws::String&& value) { m_position = value; }
58 
59 
60  inline void SetPosition(const char* value) { m_position.assign(value); }
61 
62 
63  inline GetDeploymentsResult& WithPosition(const Aws::String& value) { SetPosition(value); return *this;}
64 
65 
66  inline GetDeploymentsResult& WithPosition(Aws::String&& value) { SetPosition(value); return *this;}
67 
68 
69  inline GetDeploymentsResult& WithPosition(const char* value) { SetPosition(value); return *this;}
70 
75  inline const Aws::Vector<Deployment>& GetItems() const{ return m_items; }
76 
81  inline void SetItems(const Aws::Vector<Deployment>& value) { m_items = value; }
82 
87  inline void SetItems(Aws::Vector<Deployment>&& value) { m_items = value; }
88 
93  inline GetDeploymentsResult& WithItems(const Aws::Vector<Deployment>& value) { SetItems(value); return *this;}
94 
99  inline GetDeploymentsResult& WithItems(Aws::Vector<Deployment>&& value) { SetItems(value); return *this;}
100 
105  inline GetDeploymentsResult& AddItems(const Deployment& value) { m_items.push_back(value); return *this; }
106 
111  inline GetDeploymentsResult& AddItems(Deployment&& value) { m_items.push_back(value); return *this; }
112 
113  private:
114  Aws::String m_position;
115  Aws::Vector<Deployment> m_items;
116  };
117 
118 } // namespace Model
119 } // namespace APIGateway
120 } // namespace Aws
void SetItems(Aws::Vector< Deployment > &&value)
GetDeploymentsResult & WithItems(const Aws::Vector< Deployment > &value)
const Aws::Vector< Deployment > & GetItems() const
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
GetDeploymentsResult & WithPosition(const Aws::String &value)
GetDeploymentsResult & AddItems(Deployment &&value)
void SetItems(const Aws::Vector< Deployment > &value)
GetDeploymentsResult & AddItems(const Deployment &value)
GetDeploymentsResult & WithPosition(const char *value)
GetDeploymentsResult & WithPosition(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
#define AWS_APIGATEWAY_API
GetDeploymentsResult & WithItems(Aws::Vector< Deployment > &&value)
JSON (JavaScript Object Notation).