AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
FixedResponseActionConfig.h
1
6#pragma once
7#include <aws/elasticloadbalancingv2/ElasticLoadBalancingv2_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSStreamFwd.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Xml
17{
18 class XmlNode;
19} // namespace Xml
20} // namespace Utils
21namespace ElasticLoadBalancingv2
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_ELASTICLOADBALANCINGV2_API FixedResponseActionConfig() = default;
36 AWS_ELASTICLOADBALANCINGV2_API FixedResponseActionConfig(const Aws::Utils::Xml::XmlNode& xmlNode);
37 AWS_ELASTICLOADBALANCINGV2_API FixedResponseActionConfig& operator=(const Aws::Utils::Xml::XmlNode& xmlNode);
38
39 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& ostream, const char* location, unsigned index, const char* locationValue) const;
40 AWS_ELASTICLOADBALANCINGV2_API void OutputToStream(Aws::OStream& oStream, const char* location) const;
41
42
44
47 inline const Aws::String& GetMessageBody() const { return m_messageBody; }
48 inline bool MessageBodyHasBeenSet() const { return m_messageBodyHasBeenSet; }
49 template<typename MessageBodyT = Aws::String>
50 void SetMessageBody(MessageBodyT&& value) { m_messageBodyHasBeenSet = true; m_messageBody = std::forward<MessageBodyT>(value); }
51 template<typename MessageBodyT = Aws::String>
52 FixedResponseActionConfig& WithMessageBody(MessageBodyT&& value) { SetMessageBody(std::forward<MessageBodyT>(value)); return *this;}
54
56
59 inline const Aws::String& GetStatusCode() const { return m_statusCode; }
60 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
61 template<typename StatusCodeT = Aws::String>
62 void SetStatusCode(StatusCodeT&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::forward<StatusCodeT>(value); }
63 template<typename StatusCodeT = Aws::String>
64 FixedResponseActionConfig& WithStatusCode(StatusCodeT&& value) { SetStatusCode(std::forward<StatusCodeT>(value)); return *this;}
66
68
72 inline const Aws::String& GetContentType() const { return m_contentType; }
73 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
74 template<typename ContentTypeT = Aws::String>
75 void SetContentType(ContentTypeT&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::forward<ContentTypeT>(value); }
76 template<typename ContentTypeT = Aws::String>
77 FixedResponseActionConfig& WithContentType(ContentTypeT&& value) { SetContentType(std::forward<ContentTypeT>(value)); return *this;}
79 private:
80
81 Aws::String m_messageBody;
82 bool m_messageBodyHasBeenSet = false;
83
84 Aws::String m_statusCode;
85 bool m_statusCodeHasBeenSet = false;
86
87 Aws::String m_contentType;
88 bool m_contentTypeHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace ElasticLoadBalancingv2
93} // 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