AWS SDK for C++

AWS SDK for C++ Version 1.11.945

Loading...
Searching...
No Matches
RollbackTrigger.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
31 public:
32 AWS_CLOUDFORMATION_API RollbackTrigger() = default;
33 AWS_CLOUDFORMATION_API RollbackTrigger(const Aws::Utils::Xml::XmlNode& xmlNode);
34 AWS_CLOUDFORMATION_API RollbackTrigger& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
35
36 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
37 AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
38
40
44 inline const Aws::String& GetArn() const { return m_arn; }
45 inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; }
46 template <typename ArnT = Aws::String>
47 void SetArn(ArnT&& value) {
48 m_arnHasBeenSet = true;
49 m_arn = std::forward<ArnT>(value);
50 }
51 template <typename ArnT = Aws::String>
52 RollbackTrigger& WithArn(ArnT&& value) {
53 SetArn(std::forward<ArnT>(value));
54 return *this;
55 }
57
59
66 inline const Aws::String& GetType() const { return m_type; }
67 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
68 template <typename TypeT = Aws::String>
69 void SetType(TypeT&& value) {
70 m_typeHasBeenSet = true;
71 m_type = std::forward<TypeT>(value);
72 }
73 template <typename TypeT = Aws::String>
74 RollbackTrigger& WithType(TypeT&& value) {
75 SetType(std::forward<TypeT>(value));
76 return *this;
77 }
79 private:
80 Aws::String m_arn;
81
82 Aws::String m_type;
83 bool m_arnHasBeenSet = false;
84 bool m_typeHasBeenSet = false;
85};
86
87} // namespace Model
88} // namespace CloudFormation
89} // namespace Aws
RollbackTrigger & WithType(TypeT &&value)
AWS_CLOUDFORMATION_API RollbackTrigger()=default
AWS_CLOUDFORMATION_API RollbackTrigger & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &oStream, const char *location) const
RollbackTrigger & WithArn(ArnT &&value)
AWS_CLOUDFORMATION_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_CLOUDFORMATION_API RollbackTrigger(const Aws::Utils::Xml::XmlNode &xmlNode)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream