AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListUserAssociationsRequest.h
1
6#pragma once
7#include <aws/license-manager-user-subscriptions/LicenseManagerUserSubscriptions_EXPORTS.h>
8#include <aws/license-manager-user-subscriptions/LicenseManagerUserSubscriptionsRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/license-manager-user-subscriptions/model/IdentityProvider.h>
11#include <aws/core/utils/memory/stl/AWSString.h>
12#include <aws/license-manager-user-subscriptions/model/Filter.h>
13#include <utility>
14
15namespace Aws
16{
17namespace LicenseManagerUserSubscriptions
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_LICENSEMANAGERUSERSUBSCRIPTIONS_API ListUserAssociationsRequest() = default;
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "ListUserAssociations"; }
34
35 AWS_LICENSEMANAGERUSERSUBSCRIPTIONS_API Aws::String SerializePayload() const override;
36
37
39
43 inline const Aws::Vector<Filter>& GetFilters() const { return m_filters; }
44 inline bool FiltersHasBeenSet() const { return m_filtersHasBeenSet; }
45 template<typename FiltersT = Aws::Vector<Filter>>
46 void SetFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters = std::forward<FiltersT>(value); }
47 template<typename FiltersT = Aws::Vector<Filter>>
48 ListUserAssociationsRequest& WithFilters(FiltersT&& value) { SetFilters(std::forward<FiltersT>(value)); return *this;}
49 template<typename FiltersT = Filter>
50 ListUserAssociationsRequest& AddFilters(FiltersT&& value) { m_filtersHasBeenSet = true; m_filters.emplace_back(std::forward<FiltersT>(value)); return *this; }
52
54
57 inline const IdentityProvider& GetIdentityProvider() const { return m_identityProvider; }
58 inline bool IdentityProviderHasBeenSet() const { return m_identityProviderHasBeenSet; }
59 template<typename IdentityProviderT = IdentityProvider>
60 void SetIdentityProvider(IdentityProviderT&& value) { m_identityProviderHasBeenSet = true; m_identityProvider = std::forward<IdentityProviderT>(value); }
61 template<typename IdentityProviderT = IdentityProvider>
62 ListUserAssociationsRequest& WithIdentityProvider(IdentityProviderT&& value) { SetIdentityProvider(std::forward<IdentityProviderT>(value)); return *this;}
64
66
69 inline const Aws::String& GetInstanceId() const { return m_instanceId; }
70 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
71 template<typename InstanceIdT = Aws::String>
72 void SetInstanceId(InstanceIdT&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::forward<InstanceIdT>(value); }
73 template<typename InstanceIdT = Aws::String>
74 ListUserAssociationsRequest& WithInstanceId(InstanceIdT&& value) { SetInstanceId(std::forward<InstanceIdT>(value)); return *this;}
76
78
81 inline int GetMaxResults() const { return m_maxResults; }
82 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
83 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
84 inline ListUserAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
86
88
92 inline const Aws::String& GetNextToken() const { return m_nextToken; }
93 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
94 template<typename NextTokenT = Aws::String>
95 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
96 template<typename NextTokenT = Aws::String>
97 ListUserAssociationsRequest& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
99 private:
100
101 Aws::Vector<Filter> m_filters;
102 bool m_filtersHasBeenSet = false;
103
104 IdentityProvider m_identityProvider;
105 bool m_identityProviderHasBeenSet = false;
106
107 Aws::String m_instanceId;
108 bool m_instanceIdHasBeenSet = false;
109
110 int m_maxResults{0};
111 bool m_maxResultsHasBeenSet = false;
112
113 Aws::String m_nextToken;
114 bool m_nextTokenHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace LicenseManagerUserSubscriptions
119} // namespace Aws
ListUserAssociationsRequest & WithIdentityProvider(IdentityProviderT &&value)
AWS_LICENSEMANAGERUSERSUBSCRIPTIONS_API Aws::String SerializePayload() const override
AWS_LICENSEMANAGERUSERSUBSCRIPTIONS_API ListUserAssociationsRequest()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector