AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
AuthorizationRequired.h
1
6#pragma once
7#include <aws/context/Context_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/crt/cbor/Cbor.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace Context {
20namespace Model {
21
29 public:
30 AWS_CONTEXT_API AuthorizationRequired() = default;
31 AWS_CONTEXT_API AuthorizationRequired(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_CONTEXT_API AuthorizationRequired& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
40 inline const Aws::String& GetAuthorizationUrl() const { return m_authorizationUrl; }
41 inline bool AuthorizationUrlHasBeenSet() const { return m_authorizationUrlHasBeenSet; }
42 template <typename AuthorizationUrlT = Aws::String>
43 void SetAuthorizationUrl(AuthorizationUrlT&& value) {
44 m_authorizationUrlHasBeenSet = true;
45 m_authorizationUrl = std::forward<AuthorizationUrlT>(value);
46 }
47 template <typename AuthorizationUrlT = Aws::String>
48 AuthorizationRequired& WithAuthorizationUrl(AuthorizationUrlT&& value) {
49 SetAuthorizationUrl(std::forward<AuthorizationUrlT>(value));
50 return *this;
51 }
53
55
58 inline const Aws::String& GetMessage() const { return m_message; }
59 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
60 template <typename MessageT = Aws::String>
61 void SetMessage(MessageT&& value) {
62 m_messageHasBeenSet = true;
63 m_message = std::forward<MessageT>(value);
64 }
65 template <typename MessageT = Aws::String>
67 SetMessage(std::forward<MessageT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_authorizationUrl;
73
74 Aws::String m_message;
75 bool m_authorizationUrlHasBeenSet = false;
76 bool m_messageHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Context
81} // namespace Aws
AWS_CONTEXT_API AuthorizationRequired & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_CONTEXT_API AuthorizationRequired()=default
AWS_CONTEXT_API AuthorizationRequired(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AuthorizationRequired & WithAuthorizationUrl(AuthorizationUrlT &&value)
void SetAuthorizationUrl(AuthorizationUrlT &&value)
AWS_CONTEXT_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AuthorizationRequired & WithMessage(MessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String