AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetFilters(const Aws::Vector<Filter>& value) { m_filtersHasBeenSet = true; m_filters = value; }
46 inline void SetFilters(Aws::Vector<Filter>&& value) { m_filtersHasBeenSet = true; m_filters = std::move(value); }
47 inline ListUserAssociationsRequest& WithFilters(const Aws::Vector<Filter>& value) { SetFilters(value); return *this;}
48 inline ListUserAssociationsRequest& WithFilters(Aws::Vector<Filter>&& value) { SetFilters(std::move(value)); return *this;}
49 inline ListUserAssociationsRequest& AddFilters(const Filter& value) { m_filtersHasBeenSet = true; m_filters.push_back(value); return *this; }
50 inline ListUserAssociationsRequest& AddFilters(Filter&& value) { m_filtersHasBeenSet = true; m_filters.push_back(std::move(value)); return *this; }
52
54
57 inline const IdentityProvider& GetIdentityProvider() const{ return m_identityProvider; }
58 inline bool IdentityProviderHasBeenSet() const { return m_identityProviderHasBeenSet; }
59 inline void SetIdentityProvider(const IdentityProvider& value) { m_identityProviderHasBeenSet = true; m_identityProvider = value; }
60 inline void SetIdentityProvider(IdentityProvider&& value) { m_identityProviderHasBeenSet = true; m_identityProvider = std::move(value); }
62 inline ListUserAssociationsRequest& WithIdentityProvider(IdentityProvider&& value) { SetIdentityProvider(std::move(value)); return *this;}
64
66
69 inline const Aws::String& GetInstanceId() const{ return m_instanceId; }
70 inline bool InstanceIdHasBeenSet() const { return m_instanceIdHasBeenSet; }
71 inline void SetInstanceId(const Aws::String& value) { m_instanceIdHasBeenSet = true; m_instanceId = value; }
72 inline void SetInstanceId(Aws::String&& value) { m_instanceIdHasBeenSet = true; m_instanceId = std::move(value); }
73 inline void SetInstanceId(const char* value) { m_instanceIdHasBeenSet = true; m_instanceId.assign(value); }
74 inline ListUserAssociationsRequest& WithInstanceId(const Aws::String& value) { SetInstanceId(value); return *this;}
75 inline ListUserAssociationsRequest& WithInstanceId(Aws::String&& value) { SetInstanceId(std::move(value)); return *this;}
76 inline ListUserAssociationsRequest& WithInstanceId(const char* value) { SetInstanceId(value); return *this;}
78
80
83 inline int GetMaxResults() const{ return m_maxResults; }
84 inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; }
85 inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; }
86 inline ListUserAssociationsRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;}
88
90
93 inline const Aws::String& GetNextToken() const{ return m_nextToken; }
94 inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; }
95 inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; }
96 inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); }
97 inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); }
98 inline ListUserAssociationsRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;}
99 inline ListUserAssociationsRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;}
100 inline ListUserAssociationsRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;}
102 private:
103
104 Aws::Vector<Filter> m_filters;
105 bool m_filtersHasBeenSet = false;
106
107 IdentityProvider m_identityProvider;
108 bool m_identityProviderHasBeenSet = false;
109
110 Aws::String m_instanceId;
111 bool m_instanceIdHasBeenSet = false;
112
113 int m_maxResults;
114 bool m_maxResultsHasBeenSet = false;
115
116 Aws::String m_nextToken;
117 bool m_nextTokenHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace LicenseManagerUserSubscriptions
122} // namespace Aws
ListUserAssociationsRequest & WithInstanceId(const Aws::String &value)
AWS_LICENSEMANAGERUSERSUBSCRIPTIONS_API Aws::String SerializePayload() const override
ListUserAssociationsRequest & WithFilters(Aws::Vector< Filter > &&value)
ListUserAssociationsRequest & WithFilters(const Aws::Vector< Filter > &value)
ListUserAssociationsRequest & WithIdentityProvider(const IdentityProvider &value)
AWS_LICENSEMANAGERUSERSUBSCRIPTIONS_API ListUserAssociationsRequest()
ListUserAssociationsRequest & WithNextToken(const Aws::String &value)
ListUserAssociationsRequest & WithIdentityProvider(IdentityProvider &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector