AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListKeyRotationsResult.h
1
6#pragma once
7#include <aws/kms/KMS_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/kms/model/RotationsListEntry.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 KMS
26{
27namespace Model
28{
30 {
31 public:
32 AWS_KMS_API ListKeyRotationsResult() = default;
35
36
38
44 inline const Aws::Vector<RotationsListEntry>& GetRotations() const { return m_rotations; }
45 template<typename RotationsT = Aws::Vector<RotationsListEntry>>
46 void SetRotations(RotationsT&& value) { m_rotationsHasBeenSet = true; m_rotations = std::forward<RotationsT>(value); }
47 template<typename RotationsT = Aws::Vector<RotationsListEntry>>
48 ListKeyRotationsResult& WithRotations(RotationsT&& value) { SetRotations(std::forward<RotationsT>(value)); return *this;}
49 template<typename RotationsT = RotationsListEntry>
50 ListKeyRotationsResult& AddRotations(RotationsT&& value) { m_rotationsHasBeenSet = true; m_rotations.emplace_back(std::forward<RotationsT>(value)); return *this; }
52
54
58 inline const Aws::String& GetNextMarker() const { return m_nextMarker; }
59 template<typename NextMarkerT = Aws::String>
60 void SetNextMarker(NextMarkerT&& value) { m_nextMarkerHasBeenSet = true; m_nextMarker = std::forward<NextMarkerT>(value); }
61 template<typename NextMarkerT = Aws::String>
62 ListKeyRotationsResult& WithNextMarker(NextMarkerT&& value) { SetNextMarker(std::forward<NextMarkerT>(value)); return *this;}
64
66
72 inline bool GetTruncated() const { return m_truncated; }
73 inline void SetTruncated(bool value) { m_truncatedHasBeenSet = true; m_truncated = value; }
74 inline ListKeyRotationsResult& WithTruncated(bool value) { SetTruncated(value); return *this;}
76
78
79 inline const Aws::String& GetRequestId() const { return m_requestId; }
80 template<typename RequestIdT = Aws::String>
81 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
82 template<typename RequestIdT = Aws::String>
83 ListKeyRotationsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
85 private:
86
88 bool m_rotationsHasBeenSet = false;
89
90 Aws::String m_nextMarker;
91 bool m_nextMarkerHasBeenSet = false;
92
93 bool m_truncated{false};
94 bool m_truncatedHasBeenSet = false;
95
96 Aws::String m_requestId;
97 bool m_requestIdHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace KMS
102} // namespace Aws
ListKeyRotationsResult & WithTruncated(bool value)
AWS_KMS_API ListKeyRotationsResult(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
const Aws::Vector< RotationsListEntry > & GetRotations() const
ListKeyRotationsResult & WithNextMarker(NextMarkerT &&value)
AWS_KMS_API ListKeyRotationsResult()=default
ListKeyRotationsResult & WithRequestId(RequestIdT &&value)
ListKeyRotationsResult & AddRotations(RotationsT &&value)
ListKeyRotationsResult & WithRotations(RotationsT &&value)
AWS_KMS_API ListKeyRotationsResult & 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