AWS SDK for C++

AWS SDK for C++ Version 1.11.606

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() = default;
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 template<typename DeadlineT = Aws::Utils::DateTime>
52 void SetDeadline(DeadlineT&& value) { m_deadlineHasBeenSet = true; m_deadline = std::forward<DeadlineT>(value); }
53 template<typename DeadlineT = Aws::Utils::DateTime>
54 IdFormat& WithDeadline(DeadlineT&& value) { SetDeadline(std::forward<DeadlineT>(value)); return *this;}
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) { m_resourceHasBeenSet = true; m_resource = std::forward<ResourceT>(value); }
65 template<typename ResourceT = Aws::String>
66 IdFormat& WithResource(ResourceT&& value) { SetResource(std::forward<ResourceT>(value)); return *this;}
68
70
74 inline bool GetUseLongIds() const { return m_useLongIds; }
75 inline bool UseLongIdsHasBeenSet() const { return m_useLongIdsHasBeenSet; }
76 inline void SetUseLongIds(bool value) { m_useLongIdsHasBeenSet = true; m_useLongIds = value; }
77 inline IdFormat& WithUseLongIds(bool value) { SetUseLongIds(value); return *this;}
79 private:
80
81 Aws::Utils::DateTime m_deadline{};
82 bool m_deadlineHasBeenSet = false;
83
84 Aws::String m_resource;
85 bool m_resourceHasBeenSet = false;
86
87 bool m_useLongIds{false};
88 bool m_useLongIdsHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace EC2
93} // 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:74
void SetDeadline(DeadlineT &&value)
Definition IdFormat.h:52
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:76
const Aws::String & GetResource() const
Definition IdFormat.h:61
const Aws::Utils::DateTime & GetDeadline() const
Definition IdFormat.h:49
IdFormat & WithDeadline(DeadlineT &&value)
Definition IdFormat.h:54
AWS_EC2_API IdFormat & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
IdFormat & WithUseLongIds(bool value)
Definition IdFormat.h:77
bool UseLongIdsHasBeenSet() const
Definition IdFormat.h:75
IdFormat & WithResource(ResourceT &&value)
Definition IdFormat.h:66
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