AWS SDK for C++  1.9.132
AWS SDK for C++
PolicyVersion.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Json
17 {
18  class JsonValue;
19  class JsonView;
20 } // namespace Json
21 } // namespace Utils
22 namespace IoT
23 {
24 namespace Model
25 {
26 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetVersionId() const{ return m_versionId; }
45 
49  inline bool VersionIdHasBeenSet() const { return m_versionIdHasBeenSet; }
50 
54  inline void SetVersionId(const Aws::String& value) { m_versionIdHasBeenSet = true; m_versionId = value; }
55 
59  inline void SetVersionId(Aws::String&& value) { m_versionIdHasBeenSet = true; m_versionId = std::move(value); }
60 
64  inline void SetVersionId(const char* value) { m_versionIdHasBeenSet = true; m_versionId.assign(value); }
65 
69  inline PolicyVersion& WithVersionId(const Aws::String& value) { SetVersionId(value); return *this;}
70 
74  inline PolicyVersion& WithVersionId(Aws::String&& value) { SetVersionId(std::move(value)); return *this;}
75 
79  inline PolicyVersion& WithVersionId(const char* value) { SetVersionId(value); return *this;}
80 
81 
85  inline bool GetIsDefaultVersion() const{ return m_isDefaultVersion; }
86 
90  inline bool IsDefaultVersionHasBeenSet() const { return m_isDefaultVersionHasBeenSet; }
91 
95  inline void SetIsDefaultVersion(bool value) { m_isDefaultVersionHasBeenSet = true; m_isDefaultVersion = value; }
96 
100  inline PolicyVersion& WithIsDefaultVersion(bool value) { SetIsDefaultVersion(value); return *this;}
101 
102 
106  inline const Aws::Utils::DateTime& GetCreateDate() const{ return m_createDate; }
107 
111  inline bool CreateDateHasBeenSet() const { return m_createDateHasBeenSet; }
112 
116  inline void SetCreateDate(const Aws::Utils::DateTime& value) { m_createDateHasBeenSet = true; m_createDate = value; }
117 
121  inline void SetCreateDate(Aws::Utils::DateTime&& value) { m_createDateHasBeenSet = true; m_createDate = std::move(value); }
122 
126  inline PolicyVersion& WithCreateDate(const Aws::Utils::DateTime& value) { SetCreateDate(value); return *this;}
127 
131  inline PolicyVersion& WithCreateDate(Aws::Utils::DateTime&& value) { SetCreateDate(std::move(value)); return *this;}
132 
133  private:
134 
135  Aws::String m_versionId;
136  bool m_versionIdHasBeenSet;
137 
138  bool m_isDefaultVersion;
139  bool m_isDefaultVersionHasBeenSet;
140 
141  Aws::Utils::DateTime m_createDate;
142  bool m_createDateHasBeenSet;
143  };
144 
145 } // namespace Model
146 } // namespace IoT
147 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::PolicyVersion::operator=
PolicyVersion & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws::IoT::Model::PolicyVersion::SetVersionId
void SetVersionId(Aws::String &&value)
Definition: PolicyVersion.h:59
Aws::IoT::Model::PolicyVersion::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::PolicyVersion::VersionIdHasBeenSet
bool VersionIdHasBeenSet() const
Definition: PolicyVersion.h:49
Aws::IoT::Model::PolicyVersion::CreateDateHasBeenSet
bool CreateDateHasBeenSet() const
Definition: PolicyVersion.h:111
Aws::IoT::Model::PolicyVersion::WithVersionId
PolicyVersion & WithVersionId(const char *value)
Definition: PolicyVersion.h:79
DateTime.h
Aws::IoT::Model::PolicyVersion::SetIsDefaultVersion
void SetIsDefaultVersion(bool value)
Definition: PolicyVersion.h:95
Aws::IoT::Model::PolicyVersion::WithCreateDate
PolicyVersion & WithCreateDate(const Aws::Utils::DateTime &value)
Definition: PolicyVersion.h:126
Aws::IoT::Model::PolicyVersion::SetVersionId
void SetVersionId(const char *value)
Definition: PolicyVersion.h:64
Aws::IoT::Model::PolicyVersion::GetIsDefaultVersion
bool GetIsDefaultVersion() const
Definition: PolicyVersion.h:85
Aws::IoT::Model::PolicyVersion::WithVersionId
PolicyVersion & WithVersionId(Aws::String &&value)
Definition: PolicyVersion.h:74
Aws::IoT::Model::PolicyVersion::PolicyVersion
PolicyVersion()
Aws::IoT::Model::PolicyVersion::WithCreateDate
PolicyVersion & WithCreateDate(Aws::Utils::DateTime &&value)
Definition: PolicyVersion.h:131
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
Aws::IoT::Model::PolicyVersion
Definition: PolicyVersion.h:33
AWSString.h
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::IoT::Model::PolicyVersion::SetCreateDate
void SetCreateDate(const Aws::Utils::DateTime &value)
Definition: PolicyVersion.h:116
Aws::IoT::Model::PolicyVersion::SetCreateDate
void SetCreateDate(Aws::Utils::DateTime &&value)
Definition: PolicyVersion.h:121
Aws::IoT::Model::PolicyVersion::GetCreateDate
const Aws::Utils::DateTime & GetCreateDate() const
Definition: PolicyVersion.h:106
Aws::IoT::Model::PolicyVersion::GetVersionId
const Aws::String & GetVersionId() const
Definition: PolicyVersion.h:44
Aws
Definition: AccessManagementClient.h:15
Aws::IoT::Model::PolicyVersion::IsDefaultVersionHasBeenSet
bool IsDefaultVersionHasBeenSet() const
Definition: PolicyVersion.h:90
Aws::IoT::Model::PolicyVersion::PolicyVersion
PolicyVersion(Aws::Utils::Json::JsonView jsonValue)
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::IoT::Model::PolicyVersion::WithVersionId
PolicyVersion & WithVersionId(const Aws::String &value)
Definition: PolicyVersion.h:69
Aws::IoT::Model::PolicyVersion::WithIsDefaultVersion
PolicyVersion & WithIsDefaultVersion(bool value)
Definition: PolicyVersion.h:100
Aws::IoT::Model::PolicyVersion::SetVersionId
void SetVersionId(const Aws::String &value)
Definition: PolicyVersion.h:54
IoT_EXPORTS.h