AWS SDK for C++  1.9.110
AWS SDK for C++
ResponseMetadata.h
Go to the documentation of this file.
1 
6 #pragma once
10 #include <utility>
11 
12 namespace Aws
13 {
14 namespace Utils
15 {
16 namespace Xml
17 {
18  class XmlNode;
19 } // namespace Xml
20 } // namespace Utils
21 namespace Redshift
22 {
23 namespace Model
24 {
25 
27  {
28  public:
32 
33  void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
34  void OutputToStream(Aws::OStream& oStream, const char* location) const;
35 
36 
37 
38  inline const Aws::String& GetRequestId() const{ return m_requestId; }
39 
40 
41  inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; }
42 
43 
44  inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; }
45 
46 
47  inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); }
48 
49 
50  inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); }
51 
52 
53  inline ResponseMetadata& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;}
54 
55 
56  inline ResponseMetadata& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;}
57 
58 
59  inline ResponseMetadata& WithRequestId(const char* value) { SetRequestId(value); return *this;}
60 
61  private:
62 
63  Aws::String m_requestId;
64  bool m_requestIdHasBeenSet;
65  };
66 
67 } // namespace Model
68 } // namespace Redshift
69 } // namespace Aws
Aws::Redshift::Model::ResponseMetadata
Definition: ResponseMetadata.h:27
Aws::Redshift::Model::ResponseMetadata::WithRequestId
ResponseMetadata & WithRequestId(const char *value)
Definition: ResponseMetadata.h:59
Aws::Redshift::Model::ResponseMetadata::OutputToStream
void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
Aws::Redshift::Model::ResponseMetadata::ResponseMetadata
ResponseMetadata(const Aws::Utils::Xml::XmlNode &xmlNode)
AWSStreamFwd.h
Aws::OStream
std::basic_ostream< char, std::char_traits< char > > OStream
Definition: AWSStreamFwd.h:21
Aws::Redshift::Model::ResponseMetadata::SetRequestId
void SetRequestId(const Aws::String &value)
Definition: ResponseMetadata.h:44
Aws::Utils::Xml::XmlNode
Definition: XmlSerializer.h:53
AWS_REDSHIFT_API
#define AWS_REDSHIFT_API
Definition: Redshift_EXPORTS.h:28
Aws::Redshift::Model::ResponseMetadata::SetRequestId
void SetRequestId(Aws::String &&value)
Definition: ResponseMetadata.h:47
AWSString.h
Aws::Redshift::Model::ResponseMetadata::ResponseMetadata
ResponseMetadata()
Aws::Redshift::Model::ResponseMetadata::OutputToStream
void OutputToStream(Aws::OStream &oStream, const char *location) const
Aws::Redshift::Model::ResponseMetadata::WithRequestId
ResponseMetadata & WithRequestId(Aws::String &&value)
Definition: ResponseMetadata.h:56
Aws::Redshift::Model::ResponseMetadata::operator=
ResponseMetadata & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
Aws::Redshift::Model::ResponseMetadata::SetRequestId
void SetRequestId(const char *value)
Definition: ResponseMetadata.h:50
Aws
Definition: AccessManagementClient.h:15
Redshift_EXPORTS.h
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::Redshift::Model::ResponseMetadata::RequestIdHasBeenSet
bool RequestIdHasBeenSet() const
Definition: ResponseMetadata.h:41
index
int index
Definition: cJSON.h:181
Aws::Redshift::Model::ResponseMetadata::GetRequestId
const Aws::String & GetRequestId() const
Definition: ResponseMetadata.h:38
Aws::Redshift::Model::ResponseMetadata::WithRequestId
ResponseMetadata & WithRequestId(const Aws::String &value)
Definition: ResponseMetadata.h:53