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/kms/KMS_EXPORTS.h>
11#include <aws/kms/model/GrantListEntry.h>
16template <
typename RESULT_TYPE>
17class AmazonWebServiceResult;
37 template <
typename GrantsT = Aws::Vector<GrantListEntry>>
39 m_grantsHasBeenSet =
true;
40 m_grants = std::forward<GrantsT>(value);
42 template <
typename GrantsT = Aws::Vector<GrantListEntry>>
47 template <
typename GrantsT = GrantListEntry>
49 m_grantsHasBeenSet =
true;
50 m_grants.emplace_back(std::forward<GrantsT>(value));
61 template <
typename NextMarkerT = Aws::String>
63 m_nextMarkerHasBeenSet =
true;
64 m_nextMarker = std::forward<NextMarkerT>(value);
66 template <
typename NextMarkerT = Aws::String>
82 m_truncatedHasBeenSet =
true;
94 template <
typename RequestIdT = Aws::String>
96 m_requestIdHasBeenSet =
true;
97 m_requestId = std::forward<RequestIdT>(value);
99 template <
typename RequestIdT = Aws::String>
112 bool m_truncated{
false};
116 bool m_grantsHasBeenSet =
false;
117 bool m_nextMarkerHasBeenSet =
false;
118 bool m_truncatedHasBeenSet =
false;
119 bool m_requestIdHasBeenSet =
false;
void SetRequestId(RequestIdT &&value)
ListGrantsResult & WithRequestId(RequestIdT &&value)
ListGrantsResult & WithTruncated(bool value)
ListGrantsResult & AddGrants(GrantsT &&value)
void SetGrants(GrantsT &&value)
const Aws::String & GetNextMarker() const
AWS_KMS_API ListGrantsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
AWS_KMS_API ListGrantsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
void SetNextMarker(NextMarkerT &&value)
Aws::Http::HttpResponseCode GetHttpResponseCode() const
ListGrantsResult & WithGrants(GrantsT &&value)
const Aws::Vector< GrantListEntry > & GetGrants() const
AWS_KMS_API ListGrantsResult()=default
void SetTruncated(bool value)
ListGrantsResult & WithNextMarker(NextMarkerT &&value)
bool GetTruncated() const
const Aws::String & GetRequestId() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector
Aws::Utils::Json::JsonValue JsonValue