AWS SDK for C++

AWS SDK for C++ Version 1.11.741

Loading...
Searching...
No Matches
WorkloadShareSummary.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
9#include <aws/wellarchitected/model/PermissionType.h>
10#include <aws/wellarchitected/model/ShareStatus.h>
11
12#include <utility>
13
14namespace Aws {
15namespace Utils {
16namespace Json {
17class JsonValue;
18class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace WellArchitected {
22namespace Model {
23
30 public:
31 AWS_WELLARCHITECTED_API WorkloadShareSummary() = default;
32 AWS_WELLARCHITECTED_API WorkloadShareSummary(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WELLARCHITECTED_API WorkloadShareSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
38 inline const Aws::String& GetShareId() const { return m_shareId; }
39 inline bool ShareIdHasBeenSet() const { return m_shareIdHasBeenSet; }
40 template <typename ShareIdT = Aws::String>
41 void SetShareId(ShareIdT&& value) {
42 m_shareIdHasBeenSet = true;
43 m_shareId = std::forward<ShareIdT>(value);
44 }
45 template <typename ShareIdT = Aws::String>
46 WorkloadShareSummary& WithShareId(ShareIdT&& value) {
47 SetShareId(std::forward<ShareIdT>(value));
48 return *this;
49 }
51
53
54 inline const Aws::String& GetSharedWith() const { return m_sharedWith; }
55 inline bool SharedWithHasBeenSet() const { return m_sharedWithHasBeenSet; }
56 template <typename SharedWithT = Aws::String>
57 void SetSharedWith(SharedWithT&& value) {
58 m_sharedWithHasBeenSet = true;
59 m_sharedWith = std::forward<SharedWithT>(value);
60 }
61 template <typename SharedWithT = Aws::String>
62 WorkloadShareSummary& WithSharedWith(SharedWithT&& value) {
63 SetSharedWith(std::forward<SharedWithT>(value));
64 return *this;
65 }
67
69
70 inline PermissionType GetPermissionType() const { return m_permissionType; }
71 inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
72 inline void SetPermissionType(PermissionType value) {
73 m_permissionTypeHasBeenSet = true;
74 m_permissionType = value;
75 }
77 SetPermissionType(value);
78 return *this;
79 }
81
83
84 inline ShareStatus GetStatus() const { return m_status; }
85 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
86 inline void SetStatus(ShareStatus value) {
87 m_statusHasBeenSet = true;
88 m_status = value;
89 }
91 SetStatus(value);
92 return *this;
93 }
95
97
100 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
101 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
102 template <typename StatusMessageT = Aws::String>
103 void SetStatusMessage(StatusMessageT&& value) {
104 m_statusMessageHasBeenSet = true;
105 m_statusMessage = std::forward<StatusMessageT>(value);
106 }
107 template <typename StatusMessageT = Aws::String>
108 WorkloadShareSummary& WithStatusMessage(StatusMessageT&& value) {
109 SetStatusMessage(std::forward<StatusMessageT>(value));
110 return *this;
111 }
113 private:
114 Aws::String m_shareId;
115
116 Aws::String m_sharedWith;
117
118 PermissionType m_permissionType{PermissionType::NOT_SET};
119
121
122 Aws::String m_statusMessage;
123 bool m_shareIdHasBeenSet = false;
124 bool m_sharedWithHasBeenSet = false;
125 bool m_permissionTypeHasBeenSet = false;
126 bool m_statusHasBeenSet = false;
127 bool m_statusMessageHasBeenSet = false;
128};
129
130} // namespace Model
131} // namespace WellArchitected
132} // namespace Aws
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
WorkloadShareSummary & WithSharedWith(SharedWithT &&value)
WorkloadShareSummary & WithStatus(ShareStatus value)
WorkloadShareSummary & WithShareId(ShareIdT &&value)
AWS_WELLARCHITECTED_API WorkloadShareSummary()=default
WorkloadShareSummary & WithPermissionType(PermissionType value)
AWS_WELLARCHITECTED_API WorkloadShareSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API WorkloadShareSummary(Aws::Utils::Json::JsonView jsonValue)
WorkloadShareSummary & WithStatusMessage(StatusMessageT &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue