AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
IdFormat.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/DateTime.h>
10#include <aws/core/utils/memory/stl/AWSString.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
33 {
34 public:
35 AWS_EC2_API IdFormat();
36 AWS_EC2_API IdFormat(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_EC2_API IdFormat& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
49 inline const Aws::Utils::DateTime& GetDeadline() const{ return m_deadline; }
50 inline bool DeadlineHasBeenSet() const { return m_deadlineHasBeenSet; }
51 inline void SetDeadline(const Aws::Utils::DateTime& value) { m_deadlineHasBeenSet = true; m_deadline = value; }
52 inline void SetDeadline(Aws::Utils::DateTime&& value) { m_deadlineHasBeenSet = true; m_deadline = std::move(value); }
53 inline IdFormat& WithDeadline(const Aws::Utils::DateTime& value) { SetDeadline(value); return *this;}
54 inline IdFormat& WithDeadline(Aws::Utils::DateTime&& value) { SetDeadline(std::move(value)); return *this;}
56
58
61 inline const Aws::String& GetResource() const{ return m_resource; }
62 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
63 inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
64 inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
65 inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
66 inline IdFormat& WithResource(const Aws::String& value) { SetResource(value); return *this;}
67 inline IdFormat& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
68 inline IdFormat& WithResource(const char* value) { SetResource(value); return *this;}
70
72
76 inline bool GetUseLongIds() const{ return m_useLongIds; }
77 inline bool UseLongIdsHasBeenSet() const { return m_useLongIdsHasBeenSet; }
78 inline void SetUseLongIds(bool value) { m_useLongIdsHasBeenSet = true; m_useLongIds = value; }
79 inline IdFormat& WithUseLongIds(bool value) { SetUseLongIds(value); return *this;}
81 private:
82
83 Aws::Utils::DateTime m_deadline;
84 bool m_deadlineHasBeenSet = false;
85
86 Aws::String m_resource;
87 bool m_resourceHasBeenSet = false;
88
89 bool m_useLongIds;
90 bool m_useLongIdsHasBeenSet = false;
91 };
92
93} // namespace Model
94} // namespace EC2
95} // namespace Aws
void SetResource(const char *value)
Definition IdFormat.h:65
AWS_EC2_API IdFormat(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_EC2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
bool ResourceHasBeenSet() const
Definition IdFormat.h:62
bool GetUseLongIds() const
Definition IdFormat.h:76
void SetResource(const Aws::String &value)
Definition IdFormat.h:63
IdFormat & WithResource(Aws::String &&value)
Definition IdFormat.h:67
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool DeadlineHasBeenSet() const
Definition IdFormat.h:50
void SetUseLongIds(bool value)
Definition IdFormat.h:78
void SetDeadline(const Aws::Utils::DateTime &value)
Definition IdFormat.h:51
IdFormat & WithResource(const Aws::String &value)
Definition IdFormat.h:66
const Aws::String & GetResource() const
Definition IdFormat.h:61
const Aws::Utils::DateTime & GetDeadline() const
Definition IdFormat.h:49
IdFormat & WithDeadline(const Aws::Utils::DateTime &value)
Definition IdFormat.h:53
IdFormat & WithDeadline(Aws::Utils::DateTime &&value)
Definition IdFormat.h:54
AWS_EC2_API IdFormat & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IdFormat & WithUseLongIds(bool value)
Definition IdFormat.h:79
void SetDeadline(Aws::Utils::DateTime &&value)
Definition IdFormat.h:52
IdFormat & WithResource(const char *value)
Definition IdFormat.h:68
void SetResource(Aws::String &&value)
Definition IdFormat.h:64
bool UseLongIdsHasBeenSet() const
Definition IdFormat.h:77
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream