AWS SDK for C++  1.9.71
AWS SDK for C++
DescribeIamInstanceProfileAssociationsRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
8 #include <aws/ec2/EC2Request.h>
11 #include <aws/ec2/model/Filter.h>
12 #include <utility>
13 
14 namespace Aws
15 {
16 namespace EC2
17 {
18 namespace Model
19 {
20 
24  {
25  public:
27 
28  // Service request name is the Operation name which will send this request out,
29  // each operation should has unique request name, so that we can get operation's name from this request.
30  // Note: this is not true for response, multiple operations may have the same response name,
31  // so we can not get operation's name from response.
32  inline virtual const char* GetServiceRequestName() const override { return "DescribeIamInstanceProfileAssociations"; }
33 
34  Aws::String SerializePayload() const override;
35 
36  protected:
37  void DumpBodyToUrl(Aws::Http::URI& uri ) const override;
38 
39  public:
40 
44  inline const Aws::Vector<Aws::String>& GetAssociationIds() const{ return m_associationIds; }
45 
49  inline bool AssociationIdsHasBeenSet() const { return m_associationIdsHasBeenSet; }
50 
54  inline void SetAssociationIds(const Aws::Vector<Aws::String>& value) { m_associationIdsHasBeenSet = true; m_associationIds = value; }
55 
59  inline void SetAssociationIds(Aws::Vector<Aws::String>&& value) { m_associationIdsHasBeenSet = true; m_associationIds = std::move(value); }
60 
64  inline DescribeIamInstanceProfileAssociationsRequest& WithAssociationIds(const Aws::Vector<Aws::String>& value) { SetAssociationIds(value); return *this;}
65 
69  inline DescribeIamInstanceProfileAssociationsRequest& WithAssociationIds(Aws::Vector<Aws::String>&& value) { SetAssociationIds(std::move(value)); return *this;}
70 
74  inline DescribeIamInstanceProfileAssociationsRequest& AddAssociationIds(const Aws::String& value) { m_associationIdsHasBeenSet = true; m_associationIds.push_back(value); return *this; }
75 
79  inline DescribeIamInstanceProfileAssociationsRequest& AddAssociationIds(Aws::String&& value) { m_associationIdsHasBeenSet = true; m_associationIds.push_back(std::move(value)); return *this; }
80 
84  inline DescribeIamInstanceProfileAssociationsRequest& AddAssociationIds(const char* value) { m_associationIdsHasBeenSet = true; m_associationIds.push_back(value); return *this; }
85 
86 
93  inline const Aws::Vector<Filter>& GetFilters() const{ return m_filters; }
94 
101  inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
102 
109  inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
110 
117  inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
118 
125  inline DescribeIamInstanceProfileAssociationsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
126 
133  inline DescribeIamInstanceProfileAssociationsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
134 
141  inline DescribeIamInstanceProfileAssociationsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
142 
149  inline DescribeIamInstanceProfileAssociationsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
150 
151 
157  inline int GetMaxResults() const{ return m_maxResults; }
158 
164  inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
165 
171  inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
172 
178  inline DescribeIamInstanceProfileAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
179 
180 
184  inline const Aws::String& GetNextToken() const{ return m_nextToken; }
185 
189  inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
190 
194  inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
195 
199  inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
200 
204  inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
205 
209  inline DescribeIamInstanceProfileAssociationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
210 
214  inline DescribeIamInstanceProfileAssociationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
215 
219  inline DescribeIamInstanceProfileAssociationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
220 
221  private:
222 
223  Aws::Vector<Aws::String> m_associationIds;
224  bool m_associationIdsHasBeenSet;
225 
226  Aws::Vector<Filter> m_filters;
227  bool m_filtersHasBeenSet;
228 
229  int m_maxResults;
230  bool m_maxResultsHasBeenSet;
231 
232  Aws::String m_nextToken;
233  bool m_nextTokenHasBeenSet;
234  };
235 
236 } // namespace Model
237 } // namespace EC2
238 } // namespace Aws
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::GetFilters
const Aws::Vector< Filter > & GetFilters() const
Definition: DescribeIamInstanceProfileAssociationsRequest.h:93
Aws::Http::URI
Definition: URI.h:32
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::SetNextToken
void SetNextToken(const char *value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:204
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::WithNextToken
DescribeIamInstanceProfileAssociationsRequest & WithNextToken(const char *value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:219
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::AddAssociationIds
DescribeIamInstanceProfileAssociationsRequest & AddAssociationIds(const Aws::String &value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:74
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::MaxResultsHasBeenSet
bool MaxResultsHasBeenSet() const
Definition: DescribeIamInstanceProfileAssociationsRequest.h:164
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::SetNextToken
void SetNextToken(Aws::String &&value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:199
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::AssociationIdsHasBeenSet
bool AssociationIdsHasBeenSet() const
Definition: DescribeIamInstanceProfileAssociationsRequest.h:49
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::DumpBodyToUrl
void DumpBodyToUrl(Aws::Http::URI &uri) const override
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::AddAssociationIds
DescribeIamInstanceProfileAssociationsRequest & AddAssociationIds(const char *value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:84
Aws::EC2::Model::Filter
Definition: Filter.h:36
Aws::Vector
std::vector< T, Aws::Allocator< T > > Vector
Definition: AWSVector.h:17
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::WithFilters
DescribeIamInstanceProfileAssociationsRequest & WithFilters(Aws::Vector< Filter > &&value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:133
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::GetServiceRequestName
virtual const char * GetServiceRequestName() const override
Definition: DescribeIamInstanceProfileAssociationsRequest.h:32
AWSVector.h
Filter.h
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest
Definition: DescribeIamInstanceProfileAssociationsRequest.h:24
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::FiltersHasBeenSet
bool FiltersHasBeenSet() const
Definition: DescribeIamInstanceProfileAssociationsRequest.h:101
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::WithNextToken
DescribeIamInstanceProfileAssociationsRequest & WithNextToken(Aws::String &&value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:214
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::WithAssociationIds
DescribeIamInstanceProfileAssociationsRequest & WithAssociationIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:69
EC2Request.h
AWSString.h
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::GetMaxResults
int GetMaxResults() const
Definition: DescribeIamInstanceProfileAssociationsRequest.h:157
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::AddFilters
DescribeIamInstanceProfileAssociationsRequest & AddFilters(Filter &&value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:149
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::WithNextToken
DescribeIamInstanceProfileAssociationsRequest & WithNextToken(const Aws::String &value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:209
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::GetNextToken
const Aws::String & GetNextToken() const
Definition: DescribeIamInstanceProfileAssociationsRequest.h:184
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::SerializePayload
Aws::String SerializePayload() const override
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::WithMaxResults
DescribeIamInstanceProfileAssociationsRequest & WithMaxResults(int value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:178
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::AddAssociationIds
DescribeIamInstanceProfileAssociationsRequest & AddAssociationIds(Aws::String &&value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:79
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::WithFilters
DescribeIamInstanceProfileAssociationsRequest & WithFilters(const Aws::Vector< Filter > &value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:125
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::AddFilters
DescribeIamInstanceProfileAssociationsRequest & AddFilters(const Filter &value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:141
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::SetMaxResults
void SetMaxResults(int value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:171
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::GetAssociationIds
const Aws::Vector< Aws::String > & GetAssociationIds() const
Definition: DescribeIamInstanceProfileAssociationsRequest.h:44
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::SetAssociationIds
void SetAssociationIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:54
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::NextTokenHasBeenSet
bool NextTokenHasBeenSet() const
Definition: DescribeIamInstanceProfileAssociationsRequest.h:189
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::WithAssociationIds
DescribeIamInstanceProfileAssociationsRequest & WithAssociationIds(const Aws::Vector< Aws::String > &value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:64
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::SetAssociationIds
void SetAssociationIds(Aws::Vector< Aws::String > &&value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:59
Aws::EC2::EC2Request
Definition: EC2Request.h:17
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::DescribeIamInstanceProfileAssociationsRequest
DescribeIamInstanceProfileAssociationsRequest()
EC2_EXPORTS.h
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::SetNextToken
void SetNextToken(const Aws::String &value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:194
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::SetFilters
void SetFilters(Aws::Vector< Filter > &&value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:117
Aws::EC2::Model::DescribeIamInstanceProfileAssociationsRequest::SetFilters
void SetFilters(const Aws::Vector< Filter > &value)
Definition: DescribeIamInstanceProfileAssociationsRequest.h:109