AWS SDK for C++  0.14.3
AWS SDK for C++
ClientData.h
Go to the documentation of this file.
1 /*
2 * Copyright 2010-2016 Amazon.com, Inc. or its affiliates. All Rights Reserved.
3 *
4 * Licensed under the Apache License, Version 2.0 (the "License").
5 * You may not use this file except in compliance with the License.
6 * A copy of the License is located at
7 *
8 * http://aws.amazon.com/apache2.0
9 *
10 * or in the "license" file accompanying this file. This file is distributed
11 * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
12 * express or implied. See the License for the specific language governing
13 * permissions and limitations under the License.
14 */
15 #pragma once
16 #include <aws/ec2/EC2_EXPORTS.h>
20 
21 namespace Aws
22 {
23 namespace Utils
24 {
25 namespace Xml
26 {
27  class XmlNode;
28 } // namespace Xml
29 } // namespace Utils
30 namespace EC2
31 {
32 namespace Model
33 {
34 
39  {
40  public:
41  ClientData();
42  ClientData(const Aws::Utils::Xml::XmlNode& xmlNode);
43  ClientData& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
44 
45  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
46  void OutputToStream(Aws::OStream& oStream, const char* location) const;
47 
51  inline const Aws::Utils::DateTime& GetUploadStart() const{ return m_uploadStart; }
52 
56  inline void SetUploadStart(const Aws::Utils::DateTime& value) { m_uploadStartHasBeenSet = true; m_uploadStart = value; }
57 
61  inline void SetUploadStart(Aws::Utils::DateTime&& value) { m_uploadStartHasBeenSet = true; m_uploadStart = value; }
62 
66  inline ClientData& WithUploadStart(const Aws::Utils::DateTime& value) { SetUploadStart(value); return *this;}
67 
71  inline ClientData& WithUploadStart(Aws::Utils::DateTime&& value) { SetUploadStart(value); return *this;}
72 
76  inline const Aws::Utils::DateTime& GetUploadEnd() const{ return m_uploadEnd; }
77 
81  inline void SetUploadEnd(const Aws::Utils::DateTime& value) { m_uploadEndHasBeenSet = true; m_uploadEnd = value; }
82 
86  inline void SetUploadEnd(Aws::Utils::DateTime&& value) { m_uploadEndHasBeenSet = true; m_uploadEnd = value; }
87 
91  inline ClientData& WithUploadEnd(const Aws::Utils::DateTime& value) { SetUploadEnd(value); return *this;}
92 
96  inline ClientData& WithUploadEnd(Aws::Utils::DateTime&& value) { SetUploadEnd(value); return *this;}
97 
101  inline double GetUploadSize() const{ return m_uploadSize; }
102 
106  inline void SetUploadSize(double value) { m_uploadSizeHasBeenSet = true; m_uploadSize = value; }
107 
111  inline ClientData& WithUploadSize(double value) { SetUploadSize(value); return *this;}
112 
116  inline const Aws::String& GetComment() const{ return m_comment; }
117 
121  inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
122 
126  inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = value; }
127 
131  inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
132 
136  inline ClientData& WithComment(const Aws::String& value) { SetComment(value); return *this;}
137 
141  inline ClientData& WithComment(Aws::String&& value) { SetComment(value); return *this;}
142 
146  inline ClientData& WithComment(const char* value) { SetComment(value); return *this;}
147 
148  private:
149  Aws::Utils::DateTime m_uploadStart;
150  bool m_uploadStartHasBeenSet;
151  Aws::Utils::DateTime m_uploadEnd;
152  bool m_uploadEndHasBeenSet;
153  double m_uploadSize;
154  bool m_uploadSizeHasBeenSet;
155  Aws::String m_comment;
156  bool m_commentHasBeenSet;
157  };
158 
159 } // namespace Model
160 } // namespace EC2
161 } // namespace Aws
ClientData & WithComment(const char *value)
Definition: ClientData.h:146
void SetUploadStart(const Aws::Utils::DateTime &value)
Definition: ClientData.h:56
void SetComment(const char *value)
Definition: ClientData.h:131
void SetUploadSize(double value)
Definition: ClientData.h:106
void SetComment(Aws::String &&value)
Definition: ClientData.h:126
ClientData & WithUploadEnd(Aws::Utils::DateTime &&value)
Definition: ClientData.h:96
const Aws::Utils::DateTime & GetUploadEnd() const
Definition: ClientData.h:76
ClientData & WithUploadStart(Aws::Utils::DateTime &&value)
Definition: ClientData.h:71
void SetUploadStart(Aws::Utils::DateTime &&value)
Definition: ClientData.h:61
ClientData & WithUploadSize(double value)
Definition: ClientData.h:111
void SetComment(const Aws::String &value)
Definition: ClientData.h:121
ClientData & WithUploadStart(const Aws::Utils::DateTime &value)
Definition: ClientData.h:66
ClientData & WithUploadEnd(const Aws::Utils::DateTime &value)
Definition: ClientData.h:91
double GetUploadSize() const
Definition: ClientData.h:101
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:31
const Aws::String & GetComment() const
Definition: ClientData.h:116
const Aws::Utils::DateTime & GetUploadStart() const
Definition: ClientData.h:51
void SetUploadEnd(Aws::Utils::DateTime &&value)
Definition: ClientData.h:86
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
void SetUploadEnd(const Aws::Utils::DateTime &value)
Definition: ClientData.h:81
ClientData & WithComment(Aws::String &&value)
Definition: ClientData.h:141
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:37
ClientData & WithComment(const Aws::String &value)
Definition: ClientData.h:136
JSON (JavaScript Object Notation).