AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListPublicKeysResult.h
1
6#pragma once
7#include <aws/cloudtrail/CloudTrail_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/cloudtrail/model/PublicKey.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 CloudTrail
26{
27namespace Model
28{
36 {
37 public:
38 AWS_CLOUDTRAIL_API ListPublicKeysResult() = default;
41
42
44
48 inline const Aws::Vector<PublicKey>& GetPublicKeyList() const { return m_publicKeyList; }
49 template<typename PublicKeyListT = Aws::Vector<PublicKey>>
50 void SetPublicKeyList(PublicKeyListT&& value) { m_publicKeyListHasBeenSet = true; m_publicKeyList = std::forward<PublicKeyListT>(value); }
51 template<typename PublicKeyListT = Aws::Vector<PublicKey>>
52 ListPublicKeysResult& WithPublicKeyList(PublicKeyListT&& value) { SetPublicKeyList(std::forward<PublicKeyListT>(value)); return *this;}
53 template<typename PublicKeyListT = PublicKey>
54 ListPublicKeysResult& AddPublicKeyList(PublicKeyListT&& value) { m_publicKeyListHasBeenSet = true; m_publicKeyList.emplace_back(std::forward<PublicKeyListT>(value)); return *this; }
56
58
61 inline const Aws::String& GetNextToken() const { return m_nextToken; }
62 template<typename NextTokenT = Aws::String>
63 void SetNextToken(NextTokenT&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::forward<NextTokenT>(value); }
64 template<typename NextTokenT = Aws::String>
65 ListPublicKeysResult& WithNextToken(NextTokenT&& value) { SetNextToken(std::forward<NextTokenT>(value)); return *this;}
67
69
70 inline const Aws::String& GetRequestId() const { return m_requestId; }
71 template<typename RequestIdT = Aws::String>
72 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
73 template<typename RequestIdT = Aws::String>
74 ListPublicKeysResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
76 private:
77
78 Aws::Vector<PublicKey> m_publicKeyList;
79 bool m_publicKeyListHasBeenSet = false;
80
81 Aws::String m_nextToken;
82 bool m_nextTokenHasBeenSet = false;
83
84 Aws::String m_requestId;
85 bool m_requestIdHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace CloudTrail
90} // namespace Aws
const Aws::Vector< PublicKey > & GetPublicKeyList() const
ListPublicKeysResult & AddPublicKeyList(PublicKeyListT &&value)
AWS_CLOUDTRAIL_API ListPublicKeysResult()=default
AWS_CLOUDTRAIL_API ListPublicKeysResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListPublicKeysResult & WithRequestId(RequestIdT &&value)
ListPublicKeysResult & WithPublicKeyList(PublicKeyListT &&value)
ListPublicKeysResult & WithNextToken(NextTokenT &&value)
AWS_CLOUDTRAIL_API ListPublicKeysResult & 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