AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ClientData.h
1
6#pragma once
7#include <aws/ec2/EC2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/core/utils/DateTime.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Xml
18{
19 class XmlNode;
20} // namespace Xml
21} // namespace Utils
22namespace EC2
23{
24namespace Model
25{
26
33 {
34 public:
35 AWS_EC2_API ClientData();
36 AWS_EC2_API ClientData(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_EC2_API ClientData& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetComment() const{ return m_comment; }
48 inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
49 inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
50 inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
51 inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
52 inline ClientData& WithComment(const Aws::String& value) { SetComment(value); return *this;}
53 inline ClientData& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
54 inline ClientData& WithComment(const char* value) { SetComment(value); return *this;}
56
58
61 inline const Aws::Utils::DateTime& GetUploadEnd() const{ return m_uploadEnd; }
62 inline bool UploadEndHasBeenSet() const { return m_uploadEndHasBeenSet; }
63 inline void SetUploadEnd(const Aws::Utils::DateTime& value) { m_uploadEndHasBeenSet = true; m_uploadEnd = value; }
64 inline void SetUploadEnd(Aws::Utils::DateTime&& value) { m_uploadEndHasBeenSet = true; m_uploadEnd = std::move(value); }
65 inline ClientData& WithUploadEnd(const Aws::Utils::DateTime& value) { SetUploadEnd(value); return *this;}
66 inline ClientData& WithUploadEnd(Aws::Utils::DateTime&& value) { SetUploadEnd(std::move(value)); return *this;}
68
70
73 inline double GetUploadSize() const{ return m_uploadSize; }
74 inline bool UploadSizeHasBeenSet() const { return m_uploadSizeHasBeenSet; }
75 inline void SetUploadSize(double value) { m_uploadSizeHasBeenSet = true; m_uploadSize = value; }
76 inline ClientData& WithUploadSize(double value) { SetUploadSize(value); return *this;}
78
80
83 inline const Aws::Utils::DateTime& GetUploadStart() const{ return m_uploadStart; }
84 inline bool UploadStartHasBeenSet() const { return m_uploadStartHasBeenSet; }
85 inline void SetUploadStart(const Aws::Utils::DateTime& value) { m_uploadStartHasBeenSet = true; m_uploadStart = value; }
86 inline void SetUploadStart(Aws::Utils::DateTime&& value) { m_uploadStartHasBeenSet = true; m_uploadStart = std::move(value); }
87 inline ClientData& WithUploadStart(const Aws::Utils::DateTime& value) { SetUploadStart(value); return *this;}
88 inline ClientData& WithUploadStart(Aws::Utils::DateTime&& value) { SetUploadStart(std::move(value)); return *this;}
90 private:
91
92 Aws::String m_comment;
93 bool m_commentHasBeenSet = false;
94
95 Aws::Utils::DateTime m_uploadEnd;
96 bool m_uploadEndHasBeenSet = false;
97
98 double m_uploadSize;
99 bool m_uploadSizeHasBeenSet = false;
100
101 Aws::Utils::DateTime m_uploadStart;
102 bool m_uploadStartHasBeenSet = false;
103 };
104
105} // namespace Model
106} // namespace EC2
107} // namespace Aws
void SetUploadSize(double value)
Definition ClientData.h:75
bool UploadSizeHasBeenSet() const
Definition ClientData.h:74
bool CommentHasBeenSet() const
Definition ClientData.h:48
ClientData & WithUploadEnd(const Aws::Utils::DateTime &value)
Definition ClientData.h:65
const Aws::Utils::DateTime & GetUploadEnd() const
Definition ClientData.h:61
bool UploadEndHasBeenSet() const
Definition ClientData.h:62
void SetUploadStart(Aws::Utils::DateTime &&value)
Definition ClientData.h:86
AWS_EC2_API ClientData & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
ClientData & WithUploadSize(double value)
Definition ClientData.h:76
void SetComment(const Aws::String &value)
Definition ClientData.h:49
ClientData & WithComment(Aws::String &&value)
Definition ClientData.h:53
bool UploadStartHasBeenSet() const
Definition ClientData.h:84
ClientData & WithComment(const Aws::String &value)
Definition ClientData.h:52
void SetUploadEnd(const Aws::Utils::DateTime &value)
Definition ClientData.h:63
ClientData & WithUploadEnd(Aws::Utils::DateTime &&value)
Definition ClientData.h:66
void SetUploadEnd(Aws::Utils::DateTime &&value)
Definition ClientData.h:64
AWS_EC2_API ClientData(const Aws::Utils::Xml::XmlNode &xmlNode)
ClientData & WithUploadStart(Aws::Utils::DateTime &&value)
Definition ClientData.h:88
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
const Aws::String & GetComment() const
Definition ClientData.h:47
void SetComment(Aws::String &&value)
Definition ClientData.h:50
double GetUploadSize() const
Definition ClientData.h:73
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
const Aws::Utils::DateTime & GetUploadStart() const
Definition ClientData.h:83
ClientData & WithUploadStart(const Aws::Utils::DateTime &value)
Definition ClientData.h:87
ClientData & WithComment(const char *value)
Definition ClientData.h:54
void SetComment(const char *value)
Definition ClientData.h:51
void SetUploadStart(const Aws::Utils::DateTime &value)
Definition ClientData.h:85
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream