AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
ResourceLocation.h
1
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
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace CloudFormation {
20namespace Model {
21
29 public:
30 AWS_CLOUDFORMATION_API ResourceLocation() = default;
31 AWS_CLOUDFORMATION_API ResourceLocation(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_CLOUDFORMATION_API ResourceLocation& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
35 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
36
38
41 inline const Aws::String& GetStackName() const { return m_stackName; }
42 inline bool StackNameHasBeenSet() const { return m_stackNameHasBeenSet; }
43 template <typename StackNameT = Aws::String>
44 void SetStackName(StackNameT&& value) {
45 m_stackNameHasBeenSet = true;
46 m_stackName = std::forward<StackNameT>(value);
47 }
48 template <typename StackNameT = Aws::String>
49 ResourceLocation& WithStackName(StackNameT&& value) {
50 SetStackName(std::forward<StackNameT>(value));
51 return *this;
52 }
54
56
59 inline const Aws::String& GetLogicalResourceId() const { return m_logicalResourceId; }
60 inline bool LogicalResourceIdHasBeenSet() const { return m_logicalResourceIdHasBeenSet; }
61 template <typename LogicalResourceIdT = Aws::String>
62 void SetLogicalResourceId(LogicalResourceIdT&& value) {
63 m_logicalResourceIdHasBeenSet = true;
64 m_logicalResourceId = std::forward<LogicalResourceIdT>(value);
65 }
66 template <typename LogicalResourceIdT = Aws::String>
67 ResourceLocation& WithLogicalResourceId(LogicalResourceIdT&& value) {
68 SetLogicalResourceId(std::forward<LogicalResourceIdT>(value));
69 return *this;
70 }
72 private:
73 Aws::String m_stackName;
74
75 Aws::String m_logicalResourceId;
76 bool m_stackNameHasBeenSet = false;
77 bool m_logicalResourceIdHasBeenSet = false;
78};
79
80} // namespace Model
81} // namespace CloudFormation
82} // namespace Aws
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_CLOUDFORMATION_API ResourceLocation(const Aws::Utils::Xml::XmlNode &xmlNode)
ResourceLocation & WithStackName(StackNameT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDFORMATION_API ResourceLocation()=default
AWS_CLOUDFORMATION_API ResourceLocation & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
void SetLogicalResourceId(LogicalResourceIdT &&value)
const Aws::String & GetLogicalResourceId() const
ResourceLocation & WithLogicalResourceId(LogicalResourceIdT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream