AWS SDK for C++

AWS SDK for C++ Version 1.11.827

Loading...
Searching...
No Matches
ListContactsResult.h
1
6#pragma once
7#include <aws/core/http/HttpResponse.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/groundstation/GroundStation_EXPORTS.h>
11#include <aws/groundstation/model/ContactData.h>
12
13#include <utility>
14
15namespace Aws {
16template <typename RESULT_TYPE>
17class AmazonWebServiceResult;
18
19namespace Utils {
20namespace Json {
21class JsonValue;
22} // namespace Json
23} // namespace Utils
24namespace GroundStation {
25namespace Model {
33 public:
34 AWS_GROUNDSTATION_API ListContactsResult() = default;
37
39
43 inline const Aws::String& GetNextToken() const { return m_nextToken; }
44 template <typename NextTokenT = Aws::String>
45 void SetNextToken(NextTokenT&& value) {
46 m_nextTokenHasBeenSet = true;
47 m_nextToken = std::forward<NextTokenT>(value);
48 }
49 template <typename NextTokenT = Aws::String>
50 ListContactsResult& WithNextToken(NextTokenT&& value) {
51 SetNextToken(std::forward<NextTokenT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::Vector<ContactData>& GetContactList() const { return m_contactList; }
61 template <typename ContactListT = Aws::Vector<ContactData>>
62 void SetContactList(ContactListT&& value) {
63 m_contactListHasBeenSet = true;
64 m_contactList = std::forward<ContactListT>(value);
65 }
66 template <typename ContactListT = Aws::Vector<ContactData>>
67 ListContactsResult& WithContactList(ContactListT&& value) {
68 SetContactList(std::forward<ContactListT>(value));
69 return *this;
70 }
71 template <typename ContactListT = ContactData>
72 ListContactsResult& AddContactList(ContactListT&& value) {
73 m_contactListHasBeenSet = true;
74 m_contactList.emplace_back(std::forward<ContactListT>(value));
75 return *this;
76 }
78
80
81 inline const Aws::String& GetRequestId() const { return m_requestId; }
82 template <typename RequestIdT = Aws::String>
83 void SetRequestId(RequestIdT&& value) {
84 m_requestIdHasBeenSet = true;
85 m_requestId = std::forward<RequestIdT>(value);
86 }
87 template <typename RequestIdT = Aws::String>
88 ListContactsResult& WithRequestId(RequestIdT&& value) {
89 SetRequestId(std::forward<RequestIdT>(value));
90 return *this;
91 }
93 inline Aws::Http::HttpResponseCode GetHttpResponseCode() const { return m_HttpResponseCode; }
94
95 private:
96 Aws::String m_nextToken;
97
98 Aws::Vector<ContactData> m_contactList;
99
100 Aws::String m_requestId;
101 Aws::Http::HttpResponseCode m_HttpResponseCode;
102 bool m_nextTokenHasBeenSet = false;
103 bool m_contactListHasBeenSet = false;
104 bool m_requestIdHasBeenSet = false;
105};
106
107} // namespace Model
108} // namespace GroundStation
109} // namespace Aws
ListContactsResult & WithNextToken(NextTokenT &&value)
AWS_GROUNDSTATION_API ListContactsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListContactsResult & WithContactList(ContactListT &&value)
AWS_GROUNDSTATION_API ListContactsResult()=default
ListContactsResult & AddContactList(ContactListT &&value)
const Aws::Vector< ContactData > & GetContactList() const
AWS_GROUNDSTATION_API ListContactsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ListContactsResult & WithRequestId(RequestIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue