AWS SDK for C++

AWS SDK for C++ Version 1.11.836

Loading...
Searching...
No Matches
PublicPolicyException.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/lambda/Lambda_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Lambda {
20namespace Model {
21
33 public:
34 AWS_LAMBDA_API PublicPolicyException() = default;
37 AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const;
38
40
43 inline const Aws::String& GetType() const { return m_type; }
44 inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
45 template <typename TypeT = Aws::String>
46 void SetType(TypeT&& value) {
47 m_typeHasBeenSet = true;
48 m_type = std::forward<TypeT>(value);
49 }
50 template <typename TypeT = Aws::String>
52 SetType(std::forward<TypeT>(value));
53 return *this;
54 }
56
58
61 inline const Aws::String& GetMessage() const { return m_message; }
62 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
63 template <typename MessageT = Aws::String>
64 void SetMessage(MessageT&& value) {
65 m_messageHasBeenSet = true;
66 m_message = std::forward<MessageT>(value);
67 }
68 template <typename MessageT = Aws::String>
70 SetMessage(std::forward<MessageT>(value));
71 return *this;
72 }
74 private:
75 Aws::String m_type;
76
77 Aws::String m_message;
78 bool m_typeHasBeenSet = false;
79 bool m_messageHasBeenSet = false;
80};
81
82} // namespace Model
83} // namespace Lambda
84} // namespace Aws
PublicPolicyException & WithMessage(MessageT &&value)
AWS_LAMBDA_API Aws::Utils::Json::JsonValue Jsonize() const
PublicPolicyException & WithType(TypeT &&value)
AWS_LAMBDA_API PublicPolicyException & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API PublicPolicyException(Aws::Utils::Json::JsonView jsonValue)
AWS_LAMBDA_API PublicPolicyException()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue