AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetMessageBody(const Aws::String& value) { m_messageBodyHasBeenSet = true; m_messageBody = value; }
50 inline void SetMessageBody(Aws::String&& value) { m_messageBodyHasBeenSet = true; m_messageBody = std::move(value); }
51 inline void SetMessageBody(const char* value) { m_messageBodyHasBeenSet = true; m_messageBody.assign(value); }
52 inline FixedResponseActionConfig& WithMessageBody(const Aws::String& value) { SetMessageBody(value); return *this;}
53 inline FixedResponseActionConfig& WithMessageBody(Aws::String&& value) { SetMessageBody(std::move(value)); return *this;}
54 inline FixedResponseActionConfig& WithMessageBody(const char* value) { SetMessageBody(value); return *this;}
56
58
61 inline const Aws::String& GetStatusCode() const{ return m_statusCode; }
62 inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; }
63 inline void SetStatusCode(const Aws::String& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; }
64 inline void SetStatusCode(Aws::String&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); }
65 inline void SetStatusCode(const char* value) { m_statusCodeHasBeenSet = true; m_statusCode.assign(value); }
66 inline FixedResponseActionConfig& WithStatusCode(const Aws::String& value) { SetStatusCode(value); return *this;}
67 inline FixedResponseActionConfig& WithStatusCode(Aws::String&& value) { SetStatusCode(std::move(value)); return *this;}
68 inline FixedResponseActionConfig& WithStatusCode(const char* value) { SetStatusCode(value); return *this;}
70
72
76 inline const Aws::String& GetContentType() const{ return m_contentType; }
77 inline bool ContentTypeHasBeenSet() const { return m_contentTypeHasBeenSet; }
78 inline void SetContentType(const Aws::String& value) { m_contentTypeHasBeenSet = true; m_contentType = value; }
79 inline void SetContentType(Aws::String&& value) { m_contentTypeHasBeenSet = true; m_contentType = std::move(value); }
80 inline void SetContentType(const char* value) { m_contentTypeHasBeenSet = true; m_contentType.assign(value); }
81 inline FixedResponseActionConfig& WithContentType(const Aws::String& value) { SetContentType(value); return *this;}
82 inline FixedResponseActionConfig& WithContentType(Aws::String&& value) { SetContentType(std::move(value)); return *this;}
83 inline FixedResponseActionConfig& WithContentType(const char* value) { SetContentType(value); return *this;}
85 private:
86
87 Aws::String m_messageBody;
88 bool m_messageBodyHasBeenSet = false;
89
90 Aws::String m_statusCode;
91 bool m_statusCodeHasBeenSet = false;
92
93 Aws::String m_contentType;
94 bool m_contentTypeHasBeenSet = false;
95 };
96
97} // namespace Model
98} // namespace ElasticLoadBalancingv2
99} // namespace Aws
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
FixedResponseActionConfig & WithContentType(const Aws::String &value)
FixedResponseActionConfig & WithStatusCode(const char *value)
FixedResponseActionConfig & WithContentType(const char *value)
FixedResponseActionConfig & WithContentType(Aws::String &&value)
AWS_ELASTICLOADBALANCINGV2_API FixedResponseActionConfig(const Aws::Utils::Xml::XmlNode &xmlNode)
FixedResponseActionConfig & WithMessageBody(const char *value)
FixedResponseActionConfig & WithStatusCode(Aws::String &&value)
FixedResponseActionConfig & WithStatusCode(const Aws::String &value)
AWS_ELASTICLOADBALANCINGV2_API FixedResponseActionConfig & operator=(const Aws::Utils::Xml::XmlNode &xmlNode)
FixedResponseActionConfig & WithMessageBody(const Aws::String &value)
FixedResponseActionConfig & WithMessageBody(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::basic_ostream< char, std::char_traits< char > > OStream