AWS SDK for C++  1.8.95
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:
37  SlotStartTimeRangeRequest& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
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
void SetLatestTime(const Aws::Utils::DateTime &value)
SlotStartTimeRangeRequest & WithLatestTime(const Aws::Utils::DateTime &value)
int index
Definition: cJSON.h:171
const Aws::Utils::DateTime & GetEarliestTime() const
SlotStartTimeRangeRequest & WithEarliestTime(Aws::Utils::DateTime &&value)
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
void SetEarliestTime(Aws::Utils::DateTime &&value)
void SetEarliestTime(const Aws::Utils::DateTime &value)
SlotStartTimeRangeRequest & WithLatestTime(Aws::Utils::DateTime &&value)
const Aws::Utils::DateTime & GetLatestTime() const
SlotStartTimeRangeRequest & WithEarliestTime(const Aws::Utils::DateTime &value)
void SetLatestTime(Aws::Utils::DateTime &&value)
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28