AWS SDK for C++  1.9.65
AWS SDK for C++
SlotDateTimeRangeRequest.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace EC2
22 {
23 namespace Model
24 {
25 
34  {
35  public:
39 
40  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41  void OutputToStream(Aws::OStream& oStream, const char* location) const;
42 
43 
47  inline const Aws::Utils::DateTime& GetEarliestTime() const{ return m_earliestTime; }
48 
52  inline bool EarliestTimeHasBeenSet() const { return m_earliestTimeHasBeenSet; }
53 
57  inline void SetEarliestTime(const Aws::Utils::DateTime& value) { m_earliestTimeHasBeenSet = true; m_earliestTime = value; }
58 
62  inline void SetEarliestTime(Aws::Utils::DateTime&& value) { m_earliestTimeHasBeenSet = true; m_earliestTime = std::move(value); }
63 
67  inline SlotDateTimeRangeRequest& WithEarliestTime(const Aws::Utils::DateTime& value) { SetEarliestTime(value); return *this;}
68 
72  inline SlotDateTimeRangeRequest& WithEarliestTime(Aws::Utils::DateTime&& value) { SetEarliestTime(std::move(value)); return *this;}
73 
74 
80  inline const Aws::Utils::DateTime& GetLatestTime() const{ return m_latestTime; }
81 
87  inline bool LatestTimeHasBeenSet() const { return m_latestTimeHasBeenSet; }
88 
94  inline void SetLatestTime(const Aws::Utils::DateTime& value) { m_latestTimeHasBeenSet = true; m_latestTime = value; }
95 
101  inline void SetLatestTime(Aws::Utils::DateTime&& value) { m_latestTimeHasBeenSet = true; m_latestTime = std::move(value); }
102 
108  inline SlotDateTimeRangeRequest& WithLatestTime(const Aws::Utils::DateTime& value) { SetLatestTime(value); return *this;}
109 
115  inline SlotDateTimeRangeRequest& WithLatestTime(Aws::Utils::DateTime&& value) { SetLatestTime(std::move(value)); return *this;}
116 
117  private:
118 
119  Aws::Utils::DateTime m_earliestTime;
120  bool m_earliestTimeHasBeenSet;
121 
122  Aws::Utils::DateTime m_latestTime;
123  bool m_latestTimeHasBeenSet;
124  };
125 
126 } // namespace Model
127 } // namespace EC2
128 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::SlotDateTimeRangeRequest::SlotDateTimeRangeRequest
SlotDateTimeRangeRequest(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SlotDateTimeRangeRequest::SetLatestTime
void SetLatestTime(Aws::Utils::DateTime &&value)
Definition: SlotDateTimeRangeRequest.h:101
Aws::EC2::Model::SlotDateTimeRangeRequest::EarliestTimeHasBeenSet
bool EarliestTimeHasBeenSet() const
Definition: SlotDateTimeRangeRequest.h:52
DateTime.h
Aws::EC2::Model::SlotDateTimeRangeRequest::SetEarliestTime
void SetEarliestTime(const Aws::Utils::DateTime &value)
Definition: SlotDateTimeRangeRequest.h:57
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::SlotDateTimeRangeRequest::LatestTimeHasBeenSet
bool LatestTimeHasBeenSet() const
Definition: SlotDateTimeRangeRequest.h:87
Aws::EC2::Model::SlotDateTimeRangeRequest::SetLatestTime
void SetLatestTime(const Aws::Utils::DateTime &value)
Definition: SlotDateTimeRangeRequest.h:94
Aws::EC2::Model::SlotDateTimeRangeRequest::SetEarliestTime
void SetEarliestTime(Aws::Utils::DateTime &&value)
Definition: SlotDateTimeRangeRequest.h:62
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::SlotDateTimeRangeRequest::WithLatestTime
SlotDateTimeRangeRequest & WithLatestTime(Aws::Utils::DateTime &&value)
Definition: SlotDateTimeRangeRequest.h:115
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SlotDateTimeRangeRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::SlotDateTimeRangeRequest::operator=
SlotDateTimeRangeRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SlotDateTimeRangeRequest::GetLatestTime
const Aws::Utils::DateTime & GetLatestTime() const
Definition: SlotDateTimeRangeRequest.h:80
Aws::EC2::Model::SlotDateTimeRangeRequest::WithEarliestTime
SlotDateTimeRangeRequest & WithEarliestTime(const Aws::Utils::DateTime &value)
Definition: SlotDateTimeRangeRequest.h:67
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::SlotDateTimeRangeRequest::WithEarliestTime
SlotDateTimeRangeRequest & WithEarliestTime(Aws::Utils::DateTime &&value)
Definition: SlotDateTimeRangeRequest.h:72
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::SlotDateTimeRangeRequest
Definition: SlotDateTimeRangeRequest.h:34
EC2_EXPORTS.h
Aws::EC2::Model::SlotDateTimeRangeRequest::WithLatestTime
SlotDateTimeRangeRequest & WithLatestTime(const Aws::Utils::DateTime &value)
Definition: SlotDateTimeRangeRequest.h:108
Aws::EC2::Model::SlotDateTimeRangeRequest::GetEarliestTime
const Aws::Utils::DateTime & GetEarliestTime() const
Definition: SlotDateTimeRangeRequest.h:47
Aws::EC2::Model::SlotDateTimeRangeRequest::SlotDateTimeRangeRequest
SlotDateTimeRangeRequest()
Aws::EC2::Model::SlotDateTimeRangeRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const