AWS SDK for C++  1.9.71
AWS SDK for C++
ClientData.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
38 
39  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40  void OutputToStream(Aws::OStream& oStream, const char* location) const;
41 
42 
46  inline const Aws::String& GetComment() const{ return m_comment; }
47 
51  inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
52 
56  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
57 
61  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
62 
66  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
67 
71  inline ClientData& WithComment(const Aws::String& value) { SetComment(value); return *this;}
72 
76  inline ClientData& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
77 
81  inline ClientData& WithComment(const char* value) { SetComment(value); return *this;}
82 
83 
87  inline const Aws::Utils::DateTime& GetUploadEnd() const{ return m_uploadEnd; }
88 
92  inline bool UploadEndHasBeenSet() const { return m_uploadEndHasBeenSet; }
93 
97  inline void SetUploadEnd(const Aws::Utils::DateTime& value) { m_uploadEndHasBeenSet = true; m_uploadEnd = value; }
98 
102  inline void SetUploadEnd(Aws::Utils::DateTime&& value) { m_uploadEndHasBeenSet = true; m_uploadEnd = std::move(value); }
103 
107  inline ClientData& WithUploadEnd(const Aws::Utils::DateTime& value) { SetUploadEnd(value); return *this;}
108 
112  inline ClientData& WithUploadEnd(Aws::Utils::DateTime&& value) { SetUploadEnd(std::move(value)); return *this;}
113 
114 
118  inline double GetUploadSize() const{ return m_uploadSize; }
119 
123  inline bool UploadSizeHasBeenSet() const { return m_uploadSizeHasBeenSet; }
124 
128  inline void SetUploadSize(double value) { m_uploadSizeHasBeenSet = true; m_uploadSize = value; }
129 
133  inline ClientData& WithUploadSize(double value) { SetUploadSize(value); return *this;}
134 
135 
139  inline const Aws::Utils::DateTime& GetUploadStart() const{ return m_uploadStart; }
140 
144  inline bool UploadStartHasBeenSet() const { return m_uploadStartHasBeenSet; }
145 
149  inline void SetUploadStart(const Aws::Utils::DateTime& value) { m_uploadStartHasBeenSet = true; m_uploadStart = value; }
150 
154  inline void SetUploadStart(Aws::Utils::DateTime&& value) { m_uploadStartHasBeenSet = true; m_uploadStart = std::move(value); }
155 
159  inline ClientData& WithUploadStart(const Aws::Utils::DateTime& value) { SetUploadStart(value); return *this;}
160 
164  inline ClientData& WithUploadStart(Aws::Utils::DateTime&& value) { SetUploadStart(std::move(value)); return *this;}
165 
166  private:
167 
168  Aws::String m_comment;
169  bool m_commentHasBeenSet;
170 
171  Aws::Utils::DateTime m_uploadEnd;
172  bool m_uploadEndHasBeenSet;
173 
174  double m_uploadSize;
175  bool m_uploadSizeHasBeenSet;
176 
177  Aws::Utils::DateTime m_uploadStart;
178  bool m_uploadStartHasBeenSet;
179  };
180 
181 } // namespace Model
182 } // namespace EC2
183 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::ClientData::WithComment
ClientData & WithComment(const Aws::String &value)
Definition: ClientData.h:71
Aws::EC2::Model::ClientData::SetUploadStart
void SetUploadStart(Aws::Utils::DateTime &&value)
Definition: ClientData.h:154
Aws::EC2::Model::ClientData::SetUploadSize
void SetUploadSize(double value)
Definition: ClientData.h:128
Aws::EC2::Model::ClientData::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::ClientData::GetUploadEnd
const Aws::Utils::DateTime & GetUploadEnd() const
Definition: ClientData.h:87
DateTime.h
Aws::EC2::Model::ClientData::SetUploadStart
void SetUploadStart(const Aws::Utils::DateTime &value)
Definition: ClientData.h:149
Aws::EC2::Model::ClientData::WithUploadStart
ClientData & WithUploadStart(const Aws::Utils::DateTime &value)
Definition: ClientData.h:159
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::ClientData::WithUploadEnd
ClientData & WithUploadEnd(Aws::Utils::DateTime &&value)
Definition: ClientData.h:112
Aws::EC2::Model::ClientData::CommentHasBeenSet
bool CommentHasBeenSet() const
Definition: ClientData.h:51
AWSStreamFwd.h
Aws::EC2::Model::ClientData::WithUploadEnd
ClientData & WithUploadEnd(const Aws::Utils::DateTime &value)
Definition: ClientData.h:107
Aws::EC2::Model::ClientData::WithUploadStart
ClientData & WithUploadStart(Aws::Utils::DateTime &&value)
Definition: ClientData.h:164
Aws::EC2::Model::ClientData::SetComment
void SetComment(Aws::String &&value)
Definition: ClientData.h:61
Aws::EC2::Model::ClientData::SetComment
void SetComment(const char *value)
Definition: ClientData.h:66
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::ClientData::SetUploadEnd
void SetUploadEnd(const Aws::Utils::DateTime &value)
Definition: ClientData.h:97
Aws::EC2::Model::ClientData::GetUploadStart
const Aws::Utils::DateTime & GetUploadStart() const
Definition: ClientData.h:139
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::ClientData::UploadSizeHasBeenSet
bool UploadSizeHasBeenSet() const
Definition: ClientData.h:123
AWSString.h
Aws::EC2::Model::ClientData::WithComment
ClientData & WithComment(Aws::String &&value)
Definition: ClientData.h:76
Aws::EC2::Model::ClientData::GetUploadSize
double GetUploadSize() const
Definition: ClientData.h:118
Aws::EC2::Model::ClientData::ClientData
ClientData()
Aws::EC2::Model::ClientData::WithUploadSize
ClientData & WithUploadSize(double value)
Definition: ClientData.h:133
Aws::EC2::Model::ClientData::GetComment
const Aws::String & GetComment() const
Definition: ClientData.h:46
Aws::EC2::Model::ClientData::ClientData
ClientData(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::ClientData::UploadEndHasBeenSet
bool UploadEndHasBeenSet() const
Definition: ClientData.h:92
Aws::EC2::Model::ClientData
Definition: ClientData.h:33
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::ClientData::UploadStartHasBeenSet
bool UploadStartHasBeenSet() const
Definition: ClientData.h:144
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::ClientData::SetUploadEnd
void SetUploadEnd(Aws::Utils::DateTime &&value)
Definition: ClientData.h:102
Aws::EC2::Model::ClientData::WithComment
ClientData & WithComment(const char *value)
Definition: ClientData.h:81
EC2_EXPORTS.h
Aws::EC2::Model::ClientData::SetComment
void SetComment(const Aws::String &value)
Definition: ClientData.h:56
Aws::EC2::Model::ClientData::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::ClientData::operator=
ClientData & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)