AWS SDK for C++  1.9.47
AWS SDK for C++
ThingTypeMetadata.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/iot/IoT_EXPORTS.h>
9 #include <utility>
10 
11 namespace Aws
12 {
13 namespace Utils
14 {
15 namespace Json
16 {
17  class JsonValue;
18  class JsonView;
19 } // namespace Json
20 } // namespace Utils
21 namespace IoT
22 {
23 namespace Model
24 {
25 
35  {
36  public:
41 
42 
47  inline bool GetDeprecated() const{ return m_deprecated; }
48 
53  inline bool DeprecatedHasBeenSet() const { return m_deprecatedHasBeenSet; }
54 
59  inline void SetDeprecated(bool value) { m_deprecatedHasBeenSet = true; m_deprecated = value; }
60 
65  inline ThingTypeMetadata& WithDeprecated(bool value) { SetDeprecated(value); return *this;}
66 
67 
71  inline const Aws::Utils::DateTime& GetDeprecationDate() const{ return m_deprecationDate; }
72 
76  inline bool DeprecationDateHasBeenSet() const { return m_deprecationDateHasBeenSet; }
77 
81  inline void SetDeprecationDate(const Aws::Utils::DateTime& value) { m_deprecationDateHasBeenSet = true; m_deprecationDate = value; }
82 
86  inline void SetDeprecationDate(Aws::Utils::DateTime&& value) { m_deprecationDateHasBeenSet = true; m_deprecationDate = std::move(value); }
87 
91  inline ThingTypeMetadata& WithDeprecationDate(const Aws::Utils::DateTime& value) { SetDeprecationDate(value); return *this;}
92 
96  inline ThingTypeMetadata& WithDeprecationDate(Aws::Utils::DateTime&& value) { SetDeprecationDate(std::move(value)); return *this;}
97 
98 
102  inline const Aws::Utils::DateTime& GetCreationDate() const{ return m_creationDate; }
103 
107  inline bool CreationDateHasBeenSet() const { return m_creationDateHasBeenSet; }
108 
112  inline void SetCreationDate(const Aws::Utils::DateTime& value) { m_creationDateHasBeenSet = true; m_creationDate = value; }
113 
117  inline void SetCreationDate(Aws::Utils::DateTime&& value) { m_creationDateHasBeenSet = true; m_creationDate = std::move(value); }
118 
122  inline ThingTypeMetadata& WithCreationDate(const Aws::Utils::DateTime& value) { SetCreationDate(value); return *this;}
123 
127  inline ThingTypeMetadata& WithCreationDate(Aws::Utils::DateTime&& value) { SetCreationDate(std::move(value)); return *this;}
128 
129  private:
130 
131  bool m_deprecated;
132  bool m_deprecatedHasBeenSet;
133 
134  Aws::Utils::DateTime m_deprecationDate;
135  bool m_deprecationDateHasBeenSet;
136 
137  Aws::Utils::DateTime m_creationDate;
138  bool m_creationDateHasBeenSet;
139  };
140 
141 } // namespace Model
142 } // namespace IoT
143 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::IoT::Model::ThingTypeMetadata::SetCreationDate
void SetCreationDate(const Aws::Utils::DateTime &value)
Definition: ThingTypeMetadata.h:112
Aws::IoT::Model::ThingTypeMetadata::WithDeprecationDate
ThingTypeMetadata & WithDeprecationDate(const Aws::Utils::DateTime &value)
Definition: ThingTypeMetadata.h:91
Aws::IoT::Model::ThingTypeMetadata::WithCreationDate
ThingTypeMetadata & WithCreationDate(Aws::Utils::DateTime &&value)
Definition: ThingTypeMetadata.h:127
Aws::IoT::Model::ThingTypeMetadata::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::IoT::Model::ThingTypeMetadata::ThingTypeMetadata
ThingTypeMetadata(Aws::Utils::Json::JsonView jsonValue)
DateTime.h
Aws::IoT::Model::ThingTypeMetadata::DeprecatedHasBeenSet
bool DeprecatedHasBeenSet() const
Definition: ThingTypeMetadata.h:53
Aws::IoT::Model::ThingTypeMetadata::GetCreationDate
const Aws::Utils::DateTime & GetCreationDate() const
Definition: ThingTypeMetadata.h:102
Aws::IoT::Model::ThingTypeMetadata::SetDeprecationDate
void SetDeprecationDate(const Aws::Utils::DateTime &value)
Definition: ThingTypeMetadata.h:81
Aws::IoT::Model::ThingTypeMetadata::ThingTypeMetadata
ThingTypeMetadata()
Aws::IoT::Model::ThingTypeMetadata::WithCreationDate
ThingTypeMetadata & WithCreationDate(const Aws::Utils::DateTime &value)
Definition: ThingTypeMetadata.h:122
Aws::IoT::Model::ThingTypeMetadata::SetDeprecationDate
void SetDeprecationDate(Aws::Utils::DateTime &&value)
Definition: ThingTypeMetadata.h:86
Aws::IoT::Model::ThingTypeMetadata
Definition: ThingTypeMetadata.h:35
Aws::IoT::Model::ThingTypeMetadata::DeprecationDateHasBeenSet
bool DeprecationDateHasBeenSet() const
Definition: ThingTypeMetadata.h:76
Aws::IoT::Model::ThingTypeMetadata::CreationDateHasBeenSet
bool CreationDateHasBeenSet() const
Definition: ThingTypeMetadata.h:107
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:222
Aws::IoT::Model::ThingTypeMetadata::GetDeprecated
bool GetDeprecated() const
Definition: ThingTypeMetadata.h:47
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:30
Aws::IoT::Model::ThingTypeMetadata::SetCreationDate
void SetCreationDate(Aws::Utils::DateTime &&value)
Definition: ThingTypeMetadata.h:117
Aws::IoT::Model::ThingTypeMetadata::SetDeprecated
void SetDeprecated(bool value)
Definition: ThingTypeMetadata.h:59
Aws::IoT::Model::ThingTypeMetadata::operator=
ThingTypeMetadata & operator=(Aws::Utils::Json::JsonView jsonValue)
Aws
Definition: AccessManagementClient.h:15
AWS_IOT_API
#define AWS_IOT_API
Definition: IoT_EXPORTS.h:28
Aws::IoT::Model::ThingTypeMetadata::WithDeprecated
ThingTypeMetadata & WithDeprecated(bool value)
Definition: ThingTypeMetadata.h:65
Aws::IoT::Model::ThingTypeMetadata::GetDeprecationDate
const Aws::Utils::DateTime & GetDeprecationDate() const
Definition: ThingTypeMetadata.h:71
Aws::IoT::Model::ThingTypeMetadata::WithDeprecationDate
ThingTypeMetadata & WithDeprecationDate(Aws::Utils::DateTime &&value)
Definition: ThingTypeMetadata.h:96
IoT_EXPORTS.h