AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
39
40
42
45 inline const Aws::String& GetVersionId() const{ return m_versionId; }
46 inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
47 inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
48 inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
49 inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
50 inline PolicyVersion& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
51 inline PolicyVersion& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
52 inline PolicyVersion& WithVersionId(const char* value) { SetVersionId(value); return *this;}
54
56
59 inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; }
60 inline bool IsDefaultVersionHasBeenSet() const { return m_isDefaultVersionHasBeenSet; }
61 inline void SetIsDefaultVersion(bool value) { m_isDefaultVersionHasBeenSet = true; m_isDefaultVersion = value; }
62 inline PolicyVersion& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;}
64
66
69 inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
70 inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
71 inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
72 inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
73 inline PolicyVersion& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
74 inline PolicyVersion& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
76 private:
77
78 Aws::String m_versionId;
79 bool m_versionIdHasBeenSet = false;
80
81 bool m_isDefaultVersion;
82 bool m_isDefaultVersionHasBeenSet = false;
83
84 Aws::Utils::DateTime m_createDate;
85 bool m_createDateHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace IoT
90} // namespace Aws
PolicyVersion & WithCreateDate(Aws::Utils::DateTime &&value)
void SetIsDefaultVersion(bool value)
AWS_IOT_API PolicyVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetVersionId() const
void SetVersionId(Aws::String &&value)
void SetCreateDate(const Aws::Utils::DateTime &value)
PolicyVersion & WithVersionId(Aws::String &&value)
const Aws::Utils::DateTime & GetCreateDate() const
void SetVersionId(const Aws::String &value)
PolicyVersion & WithIsDefaultVersion(bool value)
PolicyVersion & WithVersionId(const Aws::String &value)
AWS_IOT_API PolicyVersion(Aws::Utils::Json::JsonView jsonValue)
void SetVersionId(const char *value)
AWS_IOT_API Aws::Utils::Json::JsonValue Jsonize() const
PolicyVersion & WithVersionId(const char *value)
PolicyVersion & WithCreateDate(const Aws::Utils::DateTime &value)
void SetCreateDate(Aws::Utils::DateTime &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue