AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ListAssociationsRequest.h
1
6#pragma once
7#include <aws/ssm/SSM_EXPORTS.h>
8#include <aws/ssm/SSMRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/ssm/model/AssociationFilter.h>
12#include <utility>
13
14namespace Aws
15{
16namespace SSM
17{
18namespace 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 "ListAssociations"; }
33
34 AWS_SSM_API Aws::String SerializePayload() const override;
35
37
38
40
48 inline const Aws::Vector<AssociationFilter>& GetAssociationFilterList() const{ return m_associationFilterList; }
49 inline bool AssociationFilterListHasBeenSet() const { return m_associationFilterListHasBeenSet; }
50 inline void SetAssociationFilterList(const Aws::Vector<AssociationFilter>& value) { m_associationFilterListHasBeenSet = true; m_associationFilterList = value; }
51 inline void SetAssociationFilterList(Aws::Vector<AssociationFilter>&& value) { m_associationFilterListHasBeenSet = true; m_associationFilterList = std::move(value); }
54 inline ListAssociationsRequest& AddAssociationFilterList(const AssociationFilter& value) { m_associationFilterListHasBeenSet = true; m_associationFilterList.push_back(value); return *this; }
55 inline ListAssociationsRequest& AddAssociationFilterList(AssociationFilter&& value) { m_associationFilterListHasBeenSet = true; m_associationFilterList.push_back(std::move(value)); return *this; }
57
59
64 inline int GetMaxResults() const{ return m_maxResults; }
65 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
66 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
67 inline ListAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
69
71
75 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
76 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
77 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
78 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
79 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
80 inline ListAssociationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
81 inline ListAssociationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
82 inline ListAssociationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
84 private:
85
86 Aws::Vector<AssociationFilter> m_associationFilterList;
87 bool m_associationFilterListHasBeenSet = false;
88
89 int m_maxResults;
90 bool m_maxResultsHasBeenSet = false;
91
92 Aws::String m_nextToken;
93 bool m_nextTokenHasBeenSet = false;
94 };
95
96} // namespace Model
97} // namespace SSM
98} // namespace Aws
void SetAssociationFilterList(Aws::Vector< AssociationFilter > &&value)
ListAssociationsRequest & WithNextToken(const Aws::String &value)
ListAssociationsRequest & WithAssociationFilterList(Aws::Vector< AssociationFilter > &&value)
ListAssociationsRequest & WithMaxResults(int value)
virtual const char * GetServiceRequestName() const override
ListAssociationsRequest & WithNextToken(Aws::String &&value)
ListAssociationsRequest & WithNextToken(const char *value)
void SetAssociationFilterList(const Aws::Vector< AssociationFilter > &value)
AWS_SSM_API Aws::String SerializePayload() const override
ListAssociationsRequest & WithAssociationFilterList(const Aws::Vector< AssociationFilter > &value)
ListAssociationsRequest & AddAssociationFilterList(const AssociationFilter &value)
const Aws::Vector< AssociationFilter > & GetAssociationFilterList() const
AWS_SSM_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ListAssociationsRequest & AddAssociationFilterList(AssociationFilter &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector