AWS SDK for C++  1.9.123
AWS SDK for C++
SlotStartTimeRangeRequest.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 
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::Utils::DateTime& GetEarliestTime() const{ return m_earliestTime; }
47 
51  inline bool EarliestTimeHasBeenSet() const { return m_earliestTimeHasBeenSet; }
52 
56  inline void SetEarliestTime(const Aws::Utils::DateTime& value) { m_earliestTimeHasBeenSet = true; m_earliestTime = value; }
57 
61  inline void SetEarliestTime(Aws::Utils::DateTime&& value) { m_earliestTimeHasBeenSet = true; m_earliestTime = std::move(value); }
62 
66  inline SlotStartTimeRangeRequest& WithEarliestTime(const Aws::Utils::DateTime& value) { SetEarliestTime(value); return *this;}
67 
71  inline SlotStartTimeRangeRequest& WithEarliestTime(Aws::Utils::DateTime&& value) { SetEarliestTime(std::move(value)); return *this;}
72 
73 
77  inline const Aws::Utils::DateTime& GetLatestTime() const{ return m_latestTime; }
78 
82  inline bool LatestTimeHasBeenSet() const { return m_latestTimeHasBeenSet; }
83 
87  inline void SetLatestTime(const Aws::Utils::DateTime& value) { m_latestTimeHasBeenSet = true; m_latestTime = value; }
88 
92  inline void SetLatestTime(Aws::Utils::DateTime&& value) { m_latestTimeHasBeenSet = true; m_latestTime = std::move(value); }
93 
97  inline SlotStartTimeRangeRequest& WithLatestTime(const Aws::Utils::DateTime& value) { SetLatestTime(value); return *this;}
98 
102  inline SlotStartTimeRangeRequest& WithLatestTime(Aws::Utils::DateTime&& value) { SetLatestTime(std::move(value)); return *this;}
103 
104  private:
105 
106  Aws::Utils::DateTime m_earliestTime;
107  bool m_earliestTimeHasBeenSet;
108 
109  Aws::Utils::DateTime m_latestTime;
110  bool m_latestTimeHasBeenSet;
111  };
112 
113 } // namespace Model
114 } // namespace EC2
115 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::SlotStartTimeRangeRequest::GetLatestTime
const Aws::Utils::DateTime & GetLatestTime() const
Definition: SlotStartTimeRangeRequest.h:77
DateTime.h
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
AWSStreamFwd.h
Aws::EC2::Model::SlotStartTimeRangeRequest::WithLatestTime
SlotStartTimeRangeRequest & WithLatestTime(Aws::Utils::DateTime &&value)
Definition: SlotStartTimeRangeRequest.h:102
Aws::EC2::Model::SlotStartTimeRangeRequest::SetEarliestTime
void SetEarliestTime(const Aws::Utils::DateTime &value)
Definition: SlotStartTimeRangeRequest.h:56
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::SlotStartTimeRangeRequest::operator=
SlotStartTimeRangeRequest & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::SlotStartTimeRangeRequest::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::SlotStartTimeRangeRequest::GetEarliestTime
const Aws::Utils::DateTime & GetEarliestTime() const
Definition: SlotStartTimeRangeRequest.h:46
Aws::EC2::Model::SlotStartTimeRangeRequest::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::EC2::Model::SlotStartTimeRangeRequest::WithEarliestTime
SlotStartTimeRangeRequest & WithEarliestTime(Aws::Utils::DateTime &&value)
Definition: SlotStartTimeRangeRequest.h:71
Aws::EC2::Model::SlotStartTimeRangeRequest::SetEarliestTime
void SetEarliestTime(Aws::Utils::DateTime &&value)
Definition: SlotStartTimeRangeRequest.h:61
Aws
Definition: AccessManagementClient.h:15
Aws::EC2::Model::SlotStartTimeRangeRequest::SetLatestTime
void SetLatestTime(const Aws::Utils::DateTime &value)
Definition: SlotStartTimeRangeRequest.h:87
Aws::EC2::Model::SlotStartTimeRangeRequest::SetLatestTime
void SetLatestTime(Aws::Utils::DateTime &&value)
Definition: SlotStartTimeRangeRequest.h:92
Aws::EC2::Model::SlotStartTimeRangeRequest::SlotStartTimeRangeRequest
SlotStartTimeRangeRequest()
Aws::EC2::Model::SlotStartTimeRangeRequest::EarliestTimeHasBeenSet
bool EarliestTimeHasBeenSet() const
Definition: SlotStartTimeRangeRequest.h:51
Aws::EC2::Model::SlotStartTimeRangeRequest::WithLatestTime
SlotStartTimeRangeRequest & WithLatestTime(const Aws::Utils::DateTime &value)
Definition: SlotStartTimeRangeRequest.h:97
index
int index
Definition: cJSON.h:181
Aws::EC2::Model::SlotStartTimeRangeRequest
Definition: SlotStartTimeRangeRequest.h:33
Aws::EC2::Model::SlotStartTimeRangeRequest::WithEarliestTime
SlotStartTimeRangeRequest & WithEarliestTime(const Aws::Utils::DateTime &value)
Definition: SlotStartTimeRangeRequest.h:66
Aws::EC2::Model::SlotStartTimeRangeRequest::LatestTimeHasBeenSet
bool LatestTimeHasBeenSet() const
Definition: SlotStartTimeRangeRequest.h:82
EC2_EXPORTS.h
Aws::EC2::Model::SlotStartTimeRangeRequest::SlotStartTimeRangeRequest
SlotStartTimeRangeRequest(const Aws::Utils::Xml::XmlNode &xmlNode)