AWS SDK for C++  1.9.126
AWS SDK for C++
IdFormat.h
Go to the documentation of this file.
1 
6 #pragma once
7 #include <aws/ec2/EC2_EXPORTS.h>
11 #include <utility>
12 
13 namespace Aws
14 {
15 namespace Utils
16 {
17 namespace Xml
18 {
19  class XmlNode;
20 } // namespace Xml
21 } // namespace Utils
22 namespace EC2
23 {
24 namespace Model
25 {
26 
33  {
34  public:
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 
48  inline const Aws::Utils::DateTime& GetDeadline() const{ return m_deadline; }
49 
55  inline bool DeadlineHasBeenSet() const { return m_deadlineHasBeenSet; }
56 
62  inline void SetDeadline(const Aws::Utils::DateTime& value) { m_deadlineHasBeenSet = true; m_deadline = value; }
63 
69  inline void SetDeadline(Aws::Utils::DateTime&& value) { m_deadlineHasBeenSet = true; m_deadline = std::move(value); }
70 
76  inline IdFormat& WithDeadline(const Aws::Utils::DateTime& value) { SetDeadline(value); return *this;}
77 
83  inline IdFormat& WithDeadline(Aws::Utils::DateTime&& value) { SetDeadline(std::move(value)); return *this;}
84 
85 
89  inline const Aws::String& GetResource() const{ return m_resource; }
90 
94  inline bool ResourceHasBeenSet() const { return m_resourceHasBeenSet; }
95 
99  inline void SetResource(const Aws::String& value) { m_resourceHasBeenSet = true; m_resource = value; }
100 
104  inline void SetResource(Aws::String&& value) { m_resourceHasBeenSet = true; m_resource = std::move(value); }
105 
109  inline void SetResource(const char* value) { m_resourceHasBeenSet = true; m_resource.assign(value); }
110 
114  inline IdFormat& WithResource(const Aws::String& value) { SetResource(value); return *this;}
115 
119  inline IdFormat& WithResource(Aws::String&& value) { SetResource(std::move(value)); return *this;}
120 
124  inline IdFormat& WithResource(const char* value) { SetResource(value); return *this;}
125 
126 
131  inline bool GetUseLongIds() const{ return m_useLongIds; }
132 
137  inline bool UseLongIdsHasBeenSet() const { return m_useLongIdsHasBeenSet; }
138 
143  inline void SetUseLongIds(bool value) { m_useLongIdsHasBeenSet = true; m_useLongIds = value; }
144 
149  inline IdFormat& WithUseLongIds(bool value) { SetUseLongIds(value); return *this;}
150 
151  private:
152 
153  Aws::Utils::DateTime m_deadline;
154  bool m_deadlineHasBeenSet;
155 
156  Aws::String m_resource;
157  bool m_resourceHasBeenSet;
158 
159  bool m_useLongIds;
160  bool m_useLongIdsHasBeenSet;
161  };
162 
163 } // namespace Model
164 } // namespace EC2
165 } // namespace Aws
Aws::Utils::DateTime
Definition: DateTime.h:55
Aws::EC2::Model::IdFormat::ResourceHasBeenSet
bool ResourceHasBeenSet() const
Definition: IdFormat.h:94
Aws::EC2::Model::IdFormat::SetResource
void SetResource(Aws::String &&value)
Definition: IdFormat.h:104
Aws::EC2::Model::IdFormat
Definition: IdFormat.h:33
Aws::EC2::Model::IdFormat::DeadlineHasBeenSet
bool DeadlineHasBeenSet() const
Definition: IdFormat.h:55
Aws::EC2::Model::IdFormat::UseLongIdsHasBeenSet
bool UseLongIdsHasBeenSet() const
Definition: IdFormat.h:137
DateTime.h
Aws::EC2::Model::IdFormat::SetResource
void SetResource(const Aws::String &value)
Definition: IdFormat.h:99
AWS_EC2_API
#define AWS_EC2_API
Definition: EC2_EXPORTS.h:28
Aws::EC2::Model::IdFormat::GetDeadline
const Aws::Utils::DateTime & GetDeadline() const
Definition: IdFormat.h:48
AWSStreamFwd.h
Aws::EC2::Model::IdFormat::WithResource
IdFormat & WithResource(const char *value)
Definition: IdFormat.h:124
Aws::EC2::Model::IdFormat::GetUseLongIds
bool GetUseLongIds() const
Definition: IdFormat.h:131
Aws::EC2::Model::IdFormat::SetResource
void SetResource(const char *value)
Definition: IdFormat.h:109
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::EC2::Model::IdFormat::WithResource
IdFormat & WithResource(Aws::String &&value)
Definition: IdFormat.h:119
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
Aws::EC2::Model::IdFormat::IdFormat
IdFormat(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::EC2::Model::IdFormat::WithDeadline
IdFormat & WithDeadline(Aws::Utils::DateTime &&value)
Definition: IdFormat.h:83
Aws::EC2::Model::IdFormat::WithUseLongIds
IdFormat & WithUseLongIds(bool value)
Definition: IdFormat.h:149
Aws::EC2::Model::IdFormat::IdFormat
IdFormat()
AWSString.h
Aws::EC2::Model::IdFormat::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::EC2::Model::IdFormat::SetDeadline
void SetDeadline(Aws::Utils::DateTime &&value)
Definition: IdFormat.h:69
Aws::EC2::Model::IdFormat::WithResource
IdFormat & WithResource(const Aws::String &value)
Definition: IdFormat.h:114
Aws::EC2::Model::IdFormat::GetResource
const Aws::String & GetResource() const
Definition: IdFormat.h:89
Aws::EC2::Model::IdFormat::SetUseLongIds
void SetUseLongIds(bool value)
Definition: IdFormat.h:143
Aws::EC2::Model::IdFormat::operator=
IdFormat & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws
Definition: AccessManagementClient.h:15
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::EC2::Model::IdFormat::WithDeadline
IdFormat & WithDeadline(const Aws::Utils::DateTime &value)
Definition: IdFormat.h:76
Aws::EC2::Model::IdFormat::SetDeadline
void SetDeadline(const Aws::Utils::DateTime &value)
Definition: IdFormat.h:62
index
int index
Definition: cJSON.h:181
EC2_EXPORTS.h
Aws::EC2::Model::IdFormat::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const