AWS SDK for C++

AWS SDK for C++ Version 1.11.685

Loading...
Searching...
No Matches
ProfileShareSummary.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/ShareStatus.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Json {
16class JsonValue;
17class JsonView;
18} // namespace Json
19} // namespace Utils
20namespace WellArchitected {
21namespace Model {
22
29 public:
30 AWS_WELLARCHITECTED_API ProfileShareSummary() = default;
31 AWS_WELLARCHITECTED_API ProfileShareSummary(Aws::Utils::Json::JsonView jsonValue);
32 AWS_WELLARCHITECTED_API ProfileShareSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
33 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
34
36
37 inline const Aws::String& GetShareId() const { return m_shareId; }
38 inline bool ShareIdHasBeenSet() const { return m_shareIdHasBeenSet; }
39 template <typename ShareIdT = Aws::String>
40 void SetShareId(ShareIdT&& value) {
41 m_shareIdHasBeenSet = true;
42 m_shareId = std::forward<ShareIdT>(value);
43 }
44 template <typename ShareIdT = Aws::String>
45 ProfileShareSummary& WithShareId(ShareIdT&& value) {
46 SetShareId(std::forward<ShareIdT>(value));
47 return *this;
48 }
50
52
53 inline const Aws::String& GetSharedWith() const { return m_sharedWith; }
54 inline bool SharedWithHasBeenSet() const { return m_sharedWithHasBeenSet; }
55 template <typename SharedWithT = Aws::String>
56 void SetSharedWith(SharedWithT&& value) {
57 m_sharedWithHasBeenSet = true;
58 m_sharedWith = std::forward<SharedWithT>(value);
59 }
60 template <typename SharedWithT = Aws::String>
61 ProfileShareSummary& WithSharedWith(SharedWithT&& value) {
62 SetSharedWith(std::forward<SharedWithT>(value));
63 return *this;
64 }
66
68
69 inline ShareStatus GetStatus() const { return m_status; }
70 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
71 inline void SetStatus(ShareStatus value) {
72 m_statusHasBeenSet = true;
73 m_status = value;
74 }
76 SetStatus(value);
77 return *this;
78 }
80
82
85 inline const Aws::String& GetStatusMessage() const { return m_statusMessage; }
86 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
87 template <typename StatusMessageT = Aws::String>
88 void SetStatusMessage(StatusMessageT&& value) {
89 m_statusMessageHasBeenSet = true;
90 m_statusMessage = std::forward<StatusMessageT>(value);
91 }
92 template <typename StatusMessageT = Aws::String>
93 ProfileShareSummary& WithStatusMessage(StatusMessageT&& value) {
94 SetStatusMessage(std::forward<StatusMessageT>(value));
95 return *this;
96 }
98 private:
99 Aws::String m_shareId;
100 bool m_shareIdHasBeenSet = false;
101
102 Aws::String m_sharedWith;
103 bool m_sharedWithHasBeenSet = false;
104
106 bool m_statusHasBeenSet = false;
107
108 Aws::String m_statusMessage;
109 bool m_statusMessageHasBeenSet = false;
110};
111
112} // namespace Model
113} // namespace WellArchitected
114} // namespace Aws
AWS_WELLARCHITECTED_API ProfileShareSummary()=default
ProfileShareSummary & WithShareId(ShareIdT &&value)
ProfileShareSummary & WithStatusMessage(StatusMessageT &&value)
AWS_WELLARCHITECTED_API ProfileShareSummary(Aws::Utils::Json::JsonView jsonValue)
ProfileShareSummary & WithSharedWith(SharedWithT &&value)
AWS_WELLARCHITECTED_API ProfileShareSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
ProfileShareSummary & WithStatus(ShareStatus value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue