AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListDevicesResult.h
1
6#pragma once
7#include <aws/cognito-idp/CognitoIdentityProvider_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cognito-idp/model/DeviceType.h>
11#include <utility>
12
13namespace Aws
14{
15template<typename RESULT_TYPE>
16class AmazonWebServiceResult;
17
18namespace Utils
19{
20namespace Json
21{
22 class JsonValue;
23} // namespace Json
24} // namespace Utils
25namespace CognitoIdentityProvider
26{
27namespace Model
28{
35 {
36 public:
37 AWS_COGNITOIDENTITYPROVIDER_API ListDevicesResult() = default;
40
41
43
47 inline const Aws::Vector<DeviceType>& GetDevices() const { return m_devices; }
48 template<typename DevicesT = Aws::Vector<DeviceType>>
49 void SetDevices(DevicesT&& value) { m_devicesHasBeenSet = true; m_devices = std::forward<DevicesT>(value); }
50 template<typename DevicesT = Aws::Vector<DeviceType>>
51 ListDevicesResult& WithDevices(DevicesT&& value) { SetDevices(std::forward<DevicesT>(value)); return *this;}
52 template<typename DevicesT = DeviceType>
53 ListDevicesResult& AddDevices(DevicesT&& value) { m_devicesHasBeenSet = true; m_devices.emplace_back(std::forward<DevicesT>(value)); return *this; }
55
57
63 inline const Aws::String& GetPaginationToken() const { return m_paginationToken; }
64 template<typename PaginationTokenT = Aws::String>
65 void SetPaginationToken(PaginationTokenT&& value) { m_paginationTokenHasBeenSet = true; m_paginationToken = std::forward<PaginationTokenT>(value); }
66 template<typename PaginationTokenT = Aws::String>
67 ListDevicesResult& WithPaginationToken(PaginationTokenT&& value) { SetPaginationToken(std::forward<PaginationTokenT>(value)); return *this;}
69
71
72 inline const Aws::String& GetRequestId() const { return m_requestId; }
73 template<typename RequestIdT = Aws::String>
74 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
75 template<typename RequestIdT = Aws::String>
76 ListDevicesResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
78 private:
79
81 bool m_devicesHasBeenSet = false;
82
83 Aws::String m_paginationToken;
84 bool m_paginationTokenHasBeenSet = false;
85
86 Aws::String m_requestId;
87 bool m_requestIdHasBeenSet = false;
88 };
89
90} // namespace Model
91} // namespace CognitoIdentityProvider
92} // namespace Aws
ListDevicesResult & AddDevices(DevicesT &&value)
const Aws::Vector< DeviceType > & GetDevices() const
ListDevicesResult & WithPaginationToken(PaginationTokenT &&value)
AWS_COGNITOIDENTITYPROVIDER_API ListDevicesResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListDevicesResult & WithRequestId(RequestIdT &&value)
ListDevicesResult & WithDevices(DevicesT &&value)
AWS_COGNITOIDENTITYPROVIDER_API ListDevicesResult()=default
AWS_COGNITOIDENTITYPROVIDER_API ListDevicesResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue