AWS SDK for C++  0.14.3
AWS SDK for C++
ListInstanceProfilesResult.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
16 #include <aws/iam/IAM_EXPORTS.h>
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 IAM
35 {
36 namespace Model
37 {
43  {
44  public:
48 
52  inline const Aws::Vector<InstanceProfile>& GetInstanceProfiles() const{ return m_instanceProfiles; }
53 
57  inline void SetInstanceProfiles(const Aws::Vector<InstanceProfile>& value) { m_instanceProfiles = value; }
58 
62  inline void SetInstanceProfiles(Aws::Vector<InstanceProfile>&& value) { m_instanceProfiles = value; }
63 
67  inline ListInstanceProfilesResult& WithInstanceProfiles(const Aws::Vector<InstanceProfile>& value) { SetInstanceProfiles(value); return *this;}
68 
72  inline ListInstanceProfilesResult& WithInstanceProfiles(Aws::Vector<InstanceProfile>&& value) { SetInstanceProfiles(value); return *this;}
73 
77  inline ListInstanceProfilesResult& AddInstanceProfiles(const InstanceProfile& value) { m_instanceProfiles.push_back(value); return *this; }
78 
82  inline ListInstanceProfilesResult& AddInstanceProfiles(InstanceProfile&& value) { m_instanceProfiles.push_back(value); return *this; }
83 
93  inline bool GetIsTruncated() const{ return m_isTruncated; }
94 
104  inline void SetIsTruncated(bool value) { m_isTruncated = value; }
105 
115  inline ListInstanceProfilesResult& WithIsTruncated(bool value) { SetIsTruncated(value); return *this;}
116 
122  inline const Aws::String& GetMarker() const{ return m_marker; }
123 
129  inline void SetMarker(const Aws::String& value) { m_marker = value; }
130 
136  inline void SetMarker(Aws::String&& value) { m_marker = value; }
137 
143  inline void SetMarker(const char* value) { m_marker.assign(value); }
144 
150  inline ListInstanceProfilesResult& WithMarker(const Aws::String& value) { SetMarker(value); return *this;}
151 
157  inline ListInstanceProfilesResult& WithMarker(Aws::String&& value) { SetMarker(value); return *this;}
158 
164  inline ListInstanceProfilesResult& WithMarker(const char* value) { SetMarker(value); return *this;}
165 
166 
167  inline const ResponseMetadata& GetResponseMetadata() const{ return m_responseMetadata; }
168 
169 
170  inline void SetResponseMetadata(const ResponseMetadata& value) { m_responseMetadata = value; }
171 
172 
173  inline void SetResponseMetadata(ResponseMetadata&& value) { m_responseMetadata = value; }
174 
175 
176  inline ListInstanceProfilesResult& WithResponseMetadata(const ResponseMetadata& value) { SetResponseMetadata(value); return *this;}
177 
178 
179  inline ListInstanceProfilesResult& WithResponseMetadata(ResponseMetadata&& value) { SetResponseMetadata(value); return *this;}
180 
181  private:
182  Aws::Vector<InstanceProfile> m_instanceProfiles;
183  bool m_isTruncated;
184  Aws::String m_marker;
185  ResponseMetadata m_responseMetadata;
186  };
187 
188 } // namespace Model
189 } // namespace IAM
190 } // namespace Aws
ListInstanceProfilesResult & WithInstanceProfiles(const Aws::Vector< InstanceProfile > &value)
ListInstanceProfilesResult & WithMarker(const Aws::String &value)
void SetInstanceProfiles(Aws::Vector< InstanceProfile > &&value)
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:27
ListInstanceProfilesResult & AddInstanceProfiles(InstanceProfile &&value)
ListInstanceProfilesResult & WithIsTruncated(bool value)
void SetResponseMetadata(const ResponseMetadata &value)
const ResponseMetadata & GetResponseMetadata() const
ListInstanceProfilesResult & WithMarker(const char *value)
ListInstanceProfilesResult & WithResponseMetadata(const ResponseMetadata &value)
void SetInstanceProfiles(const Aws::Vector< InstanceProfile > &value)
ListInstanceProfilesResult & WithInstanceProfiles(Aws::Vector< InstanceProfile > &&value)
ListInstanceProfilesResult & AddInstanceProfiles(const InstanceProfile &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
ListInstanceProfilesResult & WithMarker(Aws::String &&value)
const Aws::Vector< InstanceProfile > & GetInstanceProfiles() const
#define AWS_IAM_API
Definition: IAM_EXPORTS.h:37
ListInstanceProfilesResult & WithResponseMetadata(ResponseMetadata &&value)
JSON (JavaScript Object Notation).