1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/cloudformation/CloudFormation_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSStreamFwd.h> 9 #include <aws/core/utils/memory/stl/AWSString.h> 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 CloudFormation 22 { 23 namespace Model 24 { 25 26 class AWS_CLOUDFORMATION_API ResponseMetadata 27 { 28 public: 29 ResponseMetadata(); 30 ResponseMetadata(const Aws::Utils::Xml::XmlNode& xmlNode); 31 ResponseMetadata& operator=(const Aws::Utils::Xml::XmlNode& xmlNode); 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 GetRequestId()38 inline const Aws::String& GetRequestId() const{ return m_requestId; } 39 40 RequestIdHasBeenSet()41 inline bool RequestIdHasBeenSet() const { return m_requestIdHasBeenSet; } 42 43 SetRequestId(const Aws::String & value)44 inline void SetRequestId(const Aws::String& value) { m_requestIdHasBeenSet = true; m_requestId = value; } 45 46 SetRequestId(Aws::String && value)47 inline void SetRequestId(Aws::String&& value) { m_requestIdHasBeenSet = true; m_requestId = std::move(value); } 48 49 SetRequestId(const char * value)50 inline void SetRequestId(const char* value) { m_requestIdHasBeenSet = true; m_requestId.assign(value); } 51 52 WithRequestId(const Aws::String & value)53 inline ResponseMetadata& WithRequestId(const Aws::String& value) { SetRequestId(value); return *this;} 54 55 WithRequestId(Aws::String && value)56 inline ResponseMetadata& WithRequestId(Aws::String&& value) { SetRequestId(std::move(value)); return *this;} 57 58 WithRequestId(const char * value)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 CloudFormation 69 } // namespace Aws 70