AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
MaintenanceDetails.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
34 {
35 public:
36 AWS_EC2_API MaintenanceDetails();
37 AWS_EC2_API MaintenanceDetails(const Aws::Utils::Xml::XmlNode& xmlNode);
39
40 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
41 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
42
43
45
48 inline const Aws::String& GetPendingMaintenance() const{ return m_pendingMaintenance; }
49 inline bool PendingMaintenanceHasBeenSet() const { return m_pendingMaintenanceHasBeenSet; }
50 inline void SetPendingMaintenance(const Aws::String& value) { m_pendingMaintenanceHasBeenSet = true; m_pendingMaintenance = value; }
51 inline void SetPendingMaintenance(Aws::String&& value) { m_pendingMaintenanceHasBeenSet = true; m_pendingMaintenance = std::move(value); }
52 inline void SetPendingMaintenance(const char* value) { m_pendingMaintenanceHasBeenSet = true; m_pendingMaintenance.assign(value); }
53 inline MaintenanceDetails& WithPendingMaintenance(const Aws::String& value) { SetPendingMaintenance(value); return *this;}
54 inline MaintenanceDetails& WithPendingMaintenance(Aws::String&& value) { SetPendingMaintenance(std::move(value)); return *this;}
55 inline MaintenanceDetails& WithPendingMaintenance(const char* value) { SetPendingMaintenance(value); return *this;}
57
59
63 inline const Aws::Utils::DateTime& GetMaintenanceAutoAppliedAfter() const{ return m_maintenanceAutoAppliedAfter; }
64 inline bool MaintenanceAutoAppliedAfterHasBeenSet() const { return m_maintenanceAutoAppliedAfterHasBeenSet; }
65 inline void SetMaintenanceAutoAppliedAfter(const Aws::Utils::DateTime& value) { m_maintenanceAutoAppliedAfterHasBeenSet = true; m_maintenanceAutoAppliedAfter = value; }
66 inline void SetMaintenanceAutoAppliedAfter(Aws::Utils::DateTime&& value) { m_maintenanceAutoAppliedAfterHasBeenSet = true; m_maintenanceAutoAppliedAfter = std::move(value); }
70
72
75 inline const Aws::Utils::DateTime& GetLastMaintenanceApplied() const{ return m_lastMaintenanceApplied; }
76 inline bool LastMaintenanceAppliedHasBeenSet() const { return m_lastMaintenanceAppliedHasBeenSet; }
77 inline void SetLastMaintenanceApplied(const Aws::Utils::DateTime& value) { m_lastMaintenanceAppliedHasBeenSet = true; m_lastMaintenanceApplied = value; }
78 inline void SetLastMaintenanceApplied(Aws::Utils::DateTime&& value) { m_lastMaintenanceAppliedHasBeenSet = true; m_lastMaintenanceApplied = std::move(value); }
82 private:
83
84 Aws::String m_pendingMaintenance;
85 bool m_pendingMaintenanceHasBeenSet = false;
86
87 Aws::Utils::DateTime m_maintenanceAutoAppliedAfter;
88 bool m_maintenanceAutoAppliedAfterHasBeenSet = false;
89
90 Aws::Utils::DateTime m_lastMaintenanceApplied;
91 bool m_lastMaintenanceAppliedHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace EC2
96} // namespace Aws
const Aws::Utils::DateTime & GetLastMaintenanceApplied() const
void SetPendingMaintenance(Aws::String &&value)
void SetLastMaintenanceApplied(const Aws::Utils::DateTime &value)
const Aws::Utils::DateTime & GetMaintenanceAutoAppliedAfter() const
MaintenanceDetails & WithPendingMaintenance(Aws::String &&value)
MaintenanceDetails & WithMaintenanceAutoAppliedAfter(const Aws::Utils::DateTime &value)
MaintenanceDetails & WithPendingMaintenance(const char *value)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
void SetLastMaintenanceApplied(Aws::Utils::DateTime &&value)
MaintenanceDetails & WithMaintenanceAutoAppliedAfter(Aws::Utils::DateTime &&value)
MaintenanceDetails & WithLastMaintenanceApplied(Aws::Utils::DateTime &&value)
void SetMaintenanceAutoAppliedAfter(const Aws::Utils::DateTime &value)
MaintenanceDetails & WithPendingMaintenance(const Aws::String &value)
AWS_EC2_API MaintenanceDetails & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetMaintenanceAutoAppliedAfter(Aws::Utils::DateTime &&value)
AWS_EC2_API MaintenanceDetails(const Aws::Utils::Xml::XmlNode &xmlNode)
const Aws::String & GetPendingMaintenance() const
MaintenanceDetails & WithLastMaintenanceApplied(const Aws::Utils::DateTime &value)
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
void SetPendingMaintenance(const Aws::String &value)
void SetPendingMaintenance(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream