AWS SDK for C++

AWS SDK for C++ Version 1.11.938

Loading...
Searching...
No Matches
ProxyStatus.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSVector.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/elb-proxy/ELBProxy_EXPORTS.h>
10#include <aws/elb-proxy/model/ProxyStatusCode.h>
11#include <aws/elb-proxy/model/ProxyStatusReason.h>
12
13#include <utility>
14
15namespace Aws {
16namespace Utils {
17namespace Cbor {
18class CborValue;
19} // namespace Cbor
20} // namespace Utils
21namespace ELBProxy {
22namespace Model {
23
30 public:
31 AWS_ELBPROXY_API ProxyStatus() = default;
32 AWS_ELBPROXY_API ProxyStatus(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_ELBPROXY_API ProxyStatus& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
34 AWS_ELBPROXY_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
35
37
40 inline ProxyStatusCode GetCode() const { return m_code; }
41 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
42 inline void SetCode(ProxyStatusCode value) {
43 m_codeHasBeenSet = true;
44 m_code = value;
45 }
47 SetCode(value);
48 return *this;
49 }
51
53
56 inline const Aws::Vector<ProxyStatusReason>& GetReasons() const { return m_reasons; }
57 inline bool ReasonsHasBeenSet() const { return m_reasonsHasBeenSet; }
58 template <typename ReasonsT = Aws::Vector<ProxyStatusReason>>
59 void SetReasons(ReasonsT&& value) {
60 m_reasonsHasBeenSet = true;
61 m_reasons = std::forward<ReasonsT>(value);
62 }
63 template <typename ReasonsT = Aws::Vector<ProxyStatusReason>>
64 ProxyStatus& WithReasons(ReasonsT&& value) {
65 SetReasons(std::forward<ReasonsT>(value));
66 return *this;
67 }
68 template <typename ReasonsT = ProxyStatusReason>
69 ProxyStatus& AddReasons(ReasonsT&& value) {
70 m_reasonsHasBeenSet = true;
71 m_reasons.emplace_back(std::forward<ReasonsT>(value));
72 return *this;
73 }
75 private:
77
79 bool m_codeHasBeenSet = false;
80 bool m_reasonsHasBeenSet = false;
81};
82
83} // namespace Model
84} // namespace ELBProxy
85} // namespace Aws
ProxyStatus & WithReasons(ReasonsT &&value)
Definition ProxyStatus.h:64
ProxyStatus & AddReasons(ReasonsT &&value)
Definition ProxyStatus.h:69
AWS_ELBPROXY_API ProxyStatus()=default
AWS_ELBPROXY_API ProxyStatus & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_ELBPROXY_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
void SetReasons(ReasonsT &&value)
Definition ProxyStatus.h:59
AWS_ELBPROXY_API ProxyStatus(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
void SetCode(ProxyStatusCode value)
Definition ProxyStatus.h:42
ProxyStatusCode GetCode() const
Definition ProxyStatus.h:40
ProxyStatus & WithCode(ProxyStatusCode value)
Definition ProxyStatus.h:46
const Aws::Vector< ProxyStatusReason > & GetReasons() const
Definition ProxyStatus.h:56
std::vector< T, Aws::Allocator< T > > Vector