AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
PolicyVersion.h
1
6#pragma once
7#include <aws/iot/IoT_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/core/utils/DateTime.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace IoT
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_IOT_API PolicyVersion() = default;
39
40
42
45 inline const Aws::String& GetVersionId() const { return m_versionId; }
46 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
47 template<typename VersionIdT = Aws::String>
48 void SetVersionId(VersionIdT&& value) { m_versionIdHasBeenSet = true; m_versionId = std::forward<VersionIdT>(value); }
49 template<typename VersionIdT = Aws::String>
50 PolicyVersion& WithVersionId(VersionIdT&& value) { SetVersionId(std::forward<VersionIdT>(value)); return *this;}
52
54
57 inline bool GetIsDefaultVersion() const { return m_isDefaultVersion; }
58 inline bool IsDefaultVersionHasBeenSet() const { return m_isDefaultVersionHasBeenSet; }
59 inline void SetIsDefaultVersion(bool value) { m_isDefaultVersionHasBeenSet = true; m_isDefaultVersion = value; }
60 inline PolicyVersion& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;}
62
64
67 inline const Aws::Utils::DateTime& GetCreateDate() const { return m_createDate; }
68 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
69 template<typename CreateDateT = Aws::Utils::DateTime>
70 void SetCreateDate(CreateDateT&& value) { m_createDateHasBeenSet = true; m_createDate = std::forward<CreateDateT>(value); }
71 template<typename CreateDateT = Aws::Utils::DateTime>
72 PolicyVersion& WithCreateDate(CreateDateT&& value) { SetCreateDate(std::forward<CreateDateT>(value)); return *this;}
74 private:
75
76 Aws::String m_versionId;
77 bool m_versionIdHasBeenSet = false;
78
79 bool m_isDefaultVersion{false};
80 bool m_isDefaultVersionHasBeenSet = false;
81
82 Aws::Utils::DateTime m_createDate{};
83 bool m_createDateHasBeenSet = false;
84 };
85
86} // namespace Model
87} // namespace IoT
88} // 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