AWS SDK for C++

AWS SDK for C++ Version 1.11.719

Loading...
Searching...
No Matches
FixedResponseActionConfig.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Xml {
16class XmlNode;
17} // namespace Xml
18} // namespace Utils
19namespace ElasticLoadBalancingv2 {
20namespace Model {
21
29 public:
30 AWS_ELASTICLOADBALANCINGV2_API FixedResponseActionConfig() = default;
31 AWS_ELASTICLOADBALANCINGV2_API FixedResponseActionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
32 AWS_ELASTICLOADBALANCINGV2_API FixedResponseActionConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
33
34 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index,
35 const char* locationValue) const;
36 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
37
39
42 inline const Aws::String& GetMessageBody() const { return m_messageBody; }
43 inline bool MessageBodyHasBeenSet() const { return m_messageBodyHasBeenSet; }
44 template <typename MessageBodyT = Aws::String>
45 void SetMessageBody(MessageBodyT&& value) {
46 m_messageBodyHasBeenSet = true;
47 m_messageBody = std::forward<MessageBodyT>(value);
48 }
49 template <typename MessageBodyT = Aws::String>
51 SetMessageBody(std::forward<MessageBodyT>(value));
52 return *this;
53 }
55
57
60 inline const Aws::String& GetStatusCode() const { return m_statusCode; }
61 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
62 template <typename StatusCodeT = Aws::String>
63 void SetStatusCode(StatusCodeT&& value) {
64 m_statusCodeHasBeenSet = true;
65 m_statusCode = std::forward<StatusCodeT>(value);
66 }
67 template <typename StatusCodeT = Aws::String>
69 SetStatusCode(std::forward<StatusCodeT>(value));
70 return *this;
71 }
73
75
79 inline const Aws::String& GetContentType() const { return m_contentType; }
80 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
81 template <typename ContentTypeT = Aws::String>
82 void SetContentType(ContentTypeT&& value) {
83 m_contentTypeHasBeenSet = true;
84 m_contentType = std::forward<ContentTypeT>(value);
85 }
86 template <typename ContentTypeT = Aws::String>
88 SetContentType(std::forward<ContentTypeT>(value));
89 return *this;
90 }
92 private:
93 Aws::String m_messageBody;
94
95 Aws::String m_statusCode;
96
97 Aws::String m_contentType;
98 bool m_messageBodyHasBeenSet = false;
99 bool m_statusCodeHasBeenSet = false;
100 bool m_contentTypeHasBeenSet = false;
101};
102
103} // namespace Model
104} // namespace ElasticLoadBalancingv2
105} // namespace Aws
AWS_ELASTICLOADBALANCINGV2_API FixedResponseActionConfig()=default
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &oStream, const char *location) const
AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream &ostream, const char *location, unsigned index, const char *locationValue) const
AWS_ELASTICLOADBALANCINGV2_API FixedResponseActionConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
FixedResponseActionConfig & WithStatusCode(StatusCodeT &&value)
FixedResponseActionConfig & WithMessageBody(MessageBodyT &&value)
AWS_ELASTICLOADBALANCINGV2_API FixedResponseActionConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
FixedResponseActionConfig & WithContentType(ContentTypeT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream