AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
ListPolicyVersionsResult.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSVector.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/iot/model/PolicyVersion.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 IoT
26{
27namespace Model
28{
36 {
37 public:
38 AWS_IOT_API ListPolicyVersionsResult() = default;
41
42
44
47 inline const Aws::Vector<PolicyVersion>& GetPolicyVersions() const { return m_policyVersions; }
48 template<typename PolicyVersionsT = Aws::Vector<PolicyVersion>>
49 void SetPolicyVersions(PolicyVersionsT&& value) { m_policyVersionsHasBeenSet = true; m_policyVersions = std::forward<PolicyVersionsT>(value); }
50 template<typename PolicyVersionsT = Aws::Vector<PolicyVersion>>
51 ListPolicyVersionsResult& WithPolicyVersions(PolicyVersionsT&& value) { SetPolicyVersions(std::forward<PolicyVersionsT>(value)); return *this;}
52 template<typename PolicyVersionsT = PolicyVersion>
53 ListPolicyVersionsResult& AddPolicyVersions(PolicyVersionsT&& value) { m_policyVersionsHasBeenSet = true; m_policyVersions.emplace_back(std::forward<PolicyVersionsT>(value)); return *this; }
55
57
58 inline const Aws::String& GetRequestId() const { return m_requestId; }
59 template<typename RequestIdT = Aws::String>
60 void SetRequestId(RequestIdT&& value) { m_requestIdHasBeenSet = true; m_requestId = std::forward<RequestIdT>(value); }
61 template<typename RequestIdT = Aws::String>
62 ListPolicyVersionsResult& WithRequestId(RequestIdT&& value) { SetRequestId(std::forward<RequestIdT>(value)); return *this;}
64 private:
65
66 Aws::Vector<PolicyVersion> m_policyVersions;
67 bool m_policyVersionsHasBeenSet = false;
68
69 Aws::String m_requestId;
70 bool m_requestIdHasBeenSet = false;
71 };
72
73} // namespace Model
74} // namespace IoT
75} // namespace Aws
const Aws::Vector< PolicyVersion > & GetPolicyVersions() const
AWS_IOT_API ListPolicyVersionsResult()=default
ListPolicyVersionsResult & WithRequestId(RequestIdT &&value)
ListPolicyVersionsResult & WithPolicyVersions(PolicyVersionsT &&value)
AWS_IOT_API ListPolicyVersionsResult & operator=(const Aws::AmazonWebServiceResult< Aws::Utils::Json::JsonValue > &result)
ListPolicyVersionsResult & AddPolicyVersions(PolicyVersionsT &&value)
AWS_IOT_API ListPolicyVersionsResult(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