AWS SDK for C++

AWS SDK for C++ Version 1.11.764

Loading...
Searching...
No Matches
PolicyVersion.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/iot/IoT_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace IoT {
21namespace Model {
22
29 public:
30 AWS_IOT_API PolicyVersion() = default;
34
36
39 inline const Aws::String& GetVersionId() const { return m_versionId; }
40 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
41 template <typename VersionIdT = Aws::String>
42 void SetVersionId(VersionIdT&& value) {
43 m_versionIdHasBeenSet = true;
44 m_versionId = std::forward<VersionIdT>(value);
45 }
46 template <typename VersionIdT = Aws::String>
47 PolicyVersion& WithVersionId(VersionIdT&& value) {
48 SetVersionId(std::forward<VersionIdT>(value));
49 return *this;
50 }
52
54
57 inline bool GetIsDefaultVersion() const { return m_isDefaultVersion; }
58 inline bool IsDefaultVersionHasBeenSet() const { return m_isDefaultVersionHasBeenSet; }
59 inline void SetIsDefaultVersion(bool value) {
60 m_isDefaultVersionHasBeenSet = true;
61 m_isDefaultVersion = value;
62 }
63 inline PolicyVersion& WithIsDefaultVersion(bool value) {
65 return *this;
66 }
68
70
73 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
74 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
75 template <typename CreateDateT = Aws::Utils::DateTime>
76 void SetCreateDate(CreateDateT&& value) {
77 m_createDateHasBeenSet = true;
78 m_createDate = std::forward<CreateDateT>(value);
79 }
80 template <typename CreateDateT = Aws::Utils::DateTime>
81 PolicyVersion& WithCreateDate(CreateDateT&& value) {
82 SetCreateDate(std::forward<CreateDateT>(value));
83 return *this;
84 }
86 private:
87 Aws::String m_versionId;
88
89 bool m_isDefaultVersion{false};
90
91 Aws::Utils::DateTime m_createDate{};
92 bool m_versionIdHasBeenSet = false;
93 bool m_isDefaultVersionHasBeenSet = false;
94 bool m_createDateHasBeenSet = false;
95};
96
97} // namespace Model
98} // namespace IoT
99} // namespace Aws
void SetVersionId(VersionIdT &&value)
AWS_IOT_API PolicyVersion()=default
void SetIsDefaultVersion(bool value)
AWS_IOT_API PolicyVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVersionId() const
const Aws::Utils::DateTime & GetCreateDate() const
PolicyVersion & WithIsDefaultVersion(bool value)
AWS_IOT_API PolicyVersion(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
PolicyVersion & WithVersionId(VersionIdT &&value)
PolicyVersion & WithCreateDate(CreateDateT &&value)
void SetCreateDate(CreateDateT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue