AWS SDK for C++

AWS SDK for C++ Version 1.11.717

Loading...
Searching...
No Matches
IdFormat.h
1
6#pragma once
7#include <aws/core/utils/DateTime.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/ec2/EC2_EXPORTS.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Xml {
17class XmlNode;
18} // namespace Xml
19} // namespace Utils
20namespace EC2 {
21namespace Model {
22
28class IdFormat {
29 public:
30 AWS_EC2_API IdFormat() = default;
31 AWS_EC2_API IdFormat(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_EC2_API IdFormat& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_EC2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_EC2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
43 inline const Aws::Utils::DateTime& GetDeadline() const { return m_deadline; }
44 inline bool DeadlineHasBeenSet() const { return m_deadlineHasBeenSet; }
45 template <typename DeadlineT = Aws::Utils::DateTime>
46 void SetDeadline(DeadlineT&& value) {
47 m_deadlineHasBeenSet = true;
48 m_deadline = std::forward<DeadlineT>(value);
49 }
50 template <typename DeadlineT = Aws::Utils::DateTime>
51 IdFormat& WithDeadline(DeadlineT&& value) {
52 SetDeadline(std::forward<DeadlineT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetResource() const { return m_resource; }
62 inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
63 template <typename ResourceT = Aws::String>
64 void SetResource(ResourceT&& value) {
65 m_resourceHasBeenSet = true;
66 m_resource = std::forward<ResourceT>(value);
67 }
68 template <typename ResourceT = Aws::String>
69 IdFormat& WithResource(ResourceT&& value) {
70 SetResource(std::forward<ResourceT>(value));
71 return *this;
72 }
74
76
80 inline bool GetUseLongIds() const { return m_useLongIds; }
81 inline bool UseLongIdsHasBeenSet() const { return m_useLongIdsHasBeenSet; }
82 inline void SetUseLongIds(bool value) {
83 m_useLongIdsHasBeenSet = true;
84 m_useLongIds = value;
85 }
86 inline IdFormat& WithUseLongIds(bool value) {
87 SetUseLongIds(value);
88 return *this;
89 }
91 private:
92 Aws::Utils::DateTime m_deadline{};
93
94 Aws::String m_resource;
95
96 bool m_useLongIds{false};
97 bool m_deadlineHasBeenSet = false;
98 bool m_resourceHasBeenSet = false;
99 bool m_useLongIdsHasBeenSet = false;
100};
101
102} // namespace Model
103} // namespace EC2
104} // namespace Aws
void SetResource(ResourceT &&value)
Definition IdFormat.h:64
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:80
void SetDeadline(DeadlineT &&value)
Definition IdFormat.h:46
AWS_EC2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
bool DeadlineHasBeenSet() const
Definition IdFormat.h:44
void SetUseLongIds(bool value)
Definition IdFormat.h:82
const Aws::String & GetResource() const
Definition IdFormat.h:61
const Aws::Utils::DateTime & GetDeadline() const
Definition IdFormat.h:43
IdFormat & WithDeadline(DeadlineT &&value)
Definition IdFormat.h:51
AWS_EC2_API IdFormat & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IdFormat & WithUseLongIds(bool value)
Definition IdFormat.h:86
bool UseLongIdsHasBeenSet() const
Definition IdFormat.h:81
IdFormat & WithResource(ResourceT &&value)
Definition IdFormat.h:69
AWS_EC2_API IdFormat()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream