AWS SDK for C++

AWS SDK for C++ Version 1.11.606

Loading...
Searching...
No Matches
BatchGetPolicyErrorItem.h
1
6#pragma once
7#include <aws/verifiedpermissions/VerifiedPermissions_EXPORTS.h>
8#include <aws/verifiedpermissions/model/BatchGetPolicyErrorCode.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace VerifiedPermissions
23{
24namespace Model
25{
26
34 {
35 public:
36 AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyErrorItem() = default;
37 AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyErrorItem(Aws::Utils::Json::JsonView jsonValue);
38 AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyErrorItem& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline BatchGetPolicyErrorCode GetCode() const { return m_code; }
47 inline bool CodeHasBeenSet() const { return m_codeHasBeenSet; }
48 inline void SetCode(BatchGetPolicyErrorCode value) { m_codeHasBeenSet = true; m_code = value; }
49 inline BatchGetPolicyErrorItem& WithCode(BatchGetPolicyErrorCode value) { SetCode(value); return *this;}
51
53
56 inline const Aws::String& GetPolicyStoreId() const { return m_policyStoreId; }
57 inline bool PolicyStoreIdHasBeenSet() const { return m_policyStoreIdHasBeenSet; }
58 template<typename PolicyStoreIdT = Aws::String>
59 void SetPolicyStoreId(PolicyStoreIdT&& value) { m_policyStoreIdHasBeenSet = true; m_policyStoreId = std::forward<PolicyStoreIdT>(value); }
60 template<typename PolicyStoreIdT = Aws::String>
61 BatchGetPolicyErrorItem& WithPolicyStoreId(PolicyStoreIdT&& value) { SetPolicyStoreId(std::forward<PolicyStoreIdT>(value)); return *this;}
63
65
68 inline const Aws::String& GetPolicyId() const { return m_policyId; }
69 inline bool PolicyIdHasBeenSet() const { return m_policyIdHasBeenSet; }
70 template<typename PolicyIdT = Aws::String>
71 void SetPolicyId(PolicyIdT&& value) { m_policyIdHasBeenSet = true; m_policyId = std::forward<PolicyIdT>(value); }
72 template<typename PolicyIdT = Aws::String>
73 BatchGetPolicyErrorItem& WithPolicyId(PolicyIdT&& value) { SetPolicyId(std::forward<PolicyIdT>(value)); return *this;}
75
77
80 inline const Aws::String& GetMessage() const { return m_message; }
81 inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; }
82 template<typename MessageT = Aws::String>
83 void SetMessage(MessageT&& value) { m_messageHasBeenSet = true; m_message = std::forward<MessageT>(value); }
84 template<typename MessageT = Aws::String>
85 BatchGetPolicyErrorItem& WithMessage(MessageT&& value) { SetMessage(std::forward<MessageT>(value)); return *this;}
87 private:
88
90 bool m_codeHasBeenSet = false;
91
92 Aws::String m_policyStoreId;
93 bool m_policyStoreIdHasBeenSet = false;
94
95 Aws::String m_policyId;
96 bool m_policyIdHasBeenSet = false;
97
98 Aws::String m_message;
99 bool m_messageHasBeenSet = false;
100 };
101
102} // namespace Model
103} // namespace VerifiedPermissions
104} // namespace Aws
BatchGetPolicyErrorItem & WithPolicyStoreId(PolicyStoreIdT &&value)
BatchGetPolicyErrorItem & WithCode(BatchGetPolicyErrorCode value)
BatchGetPolicyErrorItem & WithMessage(MessageT &&value)
AWS_VERIFIEDPERMISSIONS_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyErrorItem(Aws::Utils::Json::JsonView jsonValue)
BatchGetPolicyErrorItem & WithPolicyId(PolicyIdT &&value)
AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyErrorItem & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_VERIFIEDPERMISSIONS_API BatchGetPolicyErrorItem()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue