AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
ProxyStatusReason.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/elb-proxy/ELBProxy_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace ELBProxy {
20namespace Model {
21
28 public:
29 AWS_ELBPROXY_API ProxyStatusReason() = default;
30 AWS_ELBPROXY_API ProxyStatusReason(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
31 AWS_ELBPROXY_API ProxyStatusReason& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_ELBPROXY_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
33
35
38 inline const Aws::String& GetCode() const { return m_code; }
39 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
40 template <typename CodeT = Aws::String>
41 void SetCode(CodeT&& value) {
42 m_codeHasBeenSet = true;
43 m_code = std::forward<CodeT>(value);
44 }
45 template <typename CodeT = Aws::String>
46 ProxyStatusReason& WithCode(CodeT&& value) {
47 SetCode(std::forward<CodeT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetTarget() const { return m_target; }
57 inline bool TargetHasBeenSet() const { return m_targetHasBeenSet; }
58 template <typename TargetT = Aws::String>
59 void SetTarget(TargetT&& value) {
60 m_targetHasBeenSet = true;
61 m_target = std::forward<TargetT>(value);
62 }
63 template <typename TargetT = Aws::String>
64 ProxyStatusReason& WithTarget(TargetT&& value) {
65 SetTarget(std::forward<TargetT>(value));
66 return *this;
67 }
69
71
74 inline const Aws::String& GetMessage() const { return m_message; }
75 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
76 template <typename MessageT = Aws::String>
77 void SetMessage(MessageT&& value) {
78 m_messageHasBeenSet = true;
79 m_message = std::forward<MessageT>(value);
80 }
81 template <typename MessageT = Aws::String>
82 ProxyStatusReason& WithMessage(MessageT&& value) {
83 SetMessage(std::forward<MessageT>(value));
84 return *this;
85 }
87 private:
88 Aws::String m_code;
89
90 Aws::String m_target;
91
92 Aws::String m_message;
93 bool m_codeHasBeenSet = false;
94 bool m_targetHasBeenSet = false;
95 bool m_messageHasBeenSet = false;
96};
97
98} // namespace Model
99} // namespace ELBProxy
100} // namespace Aws
AWS_ELBPROXY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
const Aws::String & GetTarget() const
ProxyStatusReason & WithMessage(MessageT &&value)
ProxyStatusReason & WithCode(CodeT &&value)
AWS_ELBPROXY_API ProxyStatusReason(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_ELBPROXY_API ProxyStatusReason()=default
const Aws::String & GetMessage() const
AWS_ELBPROXY_API ProxyStatusReason & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
ProxyStatusReason & WithTarget(TargetT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String