AWS SDK for C++  1.8.95
AWS SDK for C++
VersionInformation.h
Go to the documentation of this file.
1 
6 #pragma once
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 Greengrass
22 {
23 namespace Model
24 {
25 
32  {
33  public:
36  VersionInformation& operator=(Aws::Utils::Json::JsonView jsonValue);
37  Aws::Utils::Json::JsonValue Jsonize() const;
38 
39 
43  inline const Aws::String& GetArn() const{ return m_arn; }
44 
48  inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
49 
53  inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; }
54 
58  inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); }
59 
63  inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); }
64 
68  inline VersionInformation& WithArn(const Aws::String& value) { SetArn(value); return *this;}
69 
73  inline VersionInformation& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;}
74 
78  inline VersionInformation& WithArn(const char* value) { SetArn(value); return *this;}
79 
80 
84  inline const Aws::String& GetCreationTimestamp() const{ return m_creationTimestamp; }
85 
89  inline bool CreationTimestampHasBeenSet() const { return m_creationTimestampHasBeenSet; }
90 
94  inline void SetCreationTimestamp(const Aws::String& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = value; }
95 
99  inline void SetCreationTimestamp(Aws::String&& value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp = std::move(value); }
100 
104  inline void SetCreationTimestamp(const char* value) { m_creationTimestampHasBeenSet = true; m_creationTimestamp.assign(value); }
105 
109  inline VersionInformation& WithCreationTimestamp(const Aws::String& value) { SetCreationTimestamp(value); return *this;}
110 
114  inline VersionInformation& WithCreationTimestamp(Aws::String&& value) { SetCreationTimestamp(std::move(value)); return *this;}
115 
119  inline VersionInformation& WithCreationTimestamp(const char* value) { SetCreationTimestamp(value); return *this;}
120 
121 
125  inline const Aws::String& GetId() const{ return m_id; }
126 
130  inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
131 
135  inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
136 
140  inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
141 
145  inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
146 
150  inline VersionInformation& WithId(const Aws::String& value) { SetId(value); return *this;}
151 
155  inline VersionInformation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
156 
160  inline VersionInformation& WithId(const char* value) { SetId(value); return *this;}
161 
162 
166  inline const Aws::String& GetVersion() const{ return m_version; }
167 
171  inline bool VersionHasBeenSet() const { return m_versionHasBeenSet; }
172 
176  inline void SetVersion(const Aws::String& value) { m_versionHasBeenSet = true; m_version = value; }
177 
181  inline void SetVersion(Aws::String&& value) { m_versionHasBeenSet = true; m_version = std::move(value); }
182 
186  inline void SetVersion(const char* value) { m_versionHasBeenSet = true; m_version.assign(value); }
187 
191  inline VersionInformation& WithVersion(const Aws::String& value) { SetVersion(value); return *this;}
192 
196  inline VersionInformation& WithVersion(Aws::String&& value) { SetVersion(std::move(value)); return *this;}
197 
201  inline VersionInformation& WithVersion(const char* value) { SetVersion(value); return *this;}
202 
203  private:
204 
205  Aws::String m_arn;
206  bool m_arnHasBeenSet;
207 
208  Aws::String m_creationTimestamp;
209  bool m_creationTimestampHasBeenSet;
210 
211  Aws::String m_id;
212  bool m_idHasBeenSet;
213 
214  Aws::String m_version;
215  bool m_versionHasBeenSet;
216  };
217 
218 } // namespace Model
219 } // namespace Greengrass
220 } // namespace Aws
void SetCreationTimestamp(Aws::String &&value)
VersionInformation & WithId(Aws::String &&value)
VersionInformation & WithId(const Aws::String &value)
VersionInformation & WithCreationTimestamp(const char *value)
VersionInformation & WithId(const char *value)
VersionInformation & WithVersion(const Aws::String &value)
VersionInformation & WithArn(Aws::String &&value)
VersionInformation & WithArn(const Aws::String &value)
#define AWS_GREENGRASS_API
void SetCreationTimestamp(const Aws::String &value)
const Aws::String & GetCreationTimestamp() const
VersionInformation & WithVersion(const char *value)
VersionInformation & WithArn(const char *value)
VersionInformation & WithCreationTimestamp(const Aws::String &value)
void SetVersion(const Aws::String &value)
VersionInformation & WithVersion(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
VersionInformation & WithCreationTimestamp(Aws::String &&value)
void SetArn(const Aws::String &value)