AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkloadShareSummary.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/wellarchitected/model/PermissionType.h>
10#include <aws/wellarchitected/model/ShareStatus.h>
11#include <utility>
12
13namespace Aws
14{
15namespace Utils
16{
17namespace Json
18{
19 class JsonValue;
20 class JsonView;
21} // namespace Json
22} // namespace Utils
23namespace WellArchitected
24{
25namespace Model
26{
27
34 {
35 public:
36 AWS_WELLARCHITECTED_API WorkloadShareSummary();
37 AWS_WELLARCHITECTED_API WorkloadShareSummary(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WELLARCHITECTED_API WorkloadShareSummary& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
44 inline const Aws::String& GetShareId() const{ return m_shareId; }
45 inline bool ShareIdHasBeenSet() const { return m_shareIdHasBeenSet; }
46 inline void SetShareId(const Aws::String& value) { m_shareIdHasBeenSet = true; m_shareId = value; }
47 inline void SetShareId(Aws::String&& value) { m_shareIdHasBeenSet = true; m_shareId = std::move(value); }
48 inline void SetShareId(const char* value) { m_shareIdHasBeenSet = true; m_shareId.assign(value); }
49 inline WorkloadShareSummary& WithShareId(const Aws::String& value) { SetShareId(value); return *this;}
50 inline WorkloadShareSummary& WithShareId(Aws::String&& value) { SetShareId(std::move(value)); return *this;}
51 inline WorkloadShareSummary& WithShareId(const char* value) { SetShareId(value); return *this;}
53
55
56 inline const Aws::String& GetSharedWith() const{ return m_sharedWith; }
57 inline bool SharedWithHasBeenSet() const { return m_sharedWithHasBeenSet; }
58 inline void SetSharedWith(const Aws::String& value) { m_sharedWithHasBeenSet = true; m_sharedWith = value; }
59 inline void SetSharedWith(Aws::String&& value) { m_sharedWithHasBeenSet = true; m_sharedWith = std::move(value); }
60 inline void SetSharedWith(const char* value) { m_sharedWithHasBeenSet = true; m_sharedWith.assign(value); }
61 inline WorkloadShareSummary& WithSharedWith(const Aws::String& value) { SetSharedWith(value); return *this;}
62 inline WorkloadShareSummary& WithSharedWith(Aws::String&& value) { SetSharedWith(std::move(value)); return *this;}
63 inline WorkloadShareSummary& WithSharedWith(const char* value) { SetSharedWith(value); return *this;}
65
67
68 inline const PermissionType& GetPermissionType() const{ return m_permissionType; }
69 inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
70 inline void SetPermissionType(const PermissionType& value) { m_permissionTypeHasBeenSet = true; m_permissionType = value; }
71 inline void SetPermissionType(PermissionType&& value) { m_permissionTypeHasBeenSet = true; m_permissionType = std::move(value); }
72 inline WorkloadShareSummary& WithPermissionType(const PermissionType& value) { SetPermissionType(value); return *this;}
73 inline WorkloadShareSummary& WithPermissionType(PermissionType&& value) { SetPermissionType(std::move(value)); return *this;}
75
77
78 inline const ShareStatus& GetStatus() const{ return m_status; }
79 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
80 inline void SetStatus(const ShareStatus& value) { m_statusHasBeenSet = true; m_status = value; }
81 inline void SetStatus(ShareStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
82 inline WorkloadShareSummary& WithStatus(const ShareStatus& value) { SetStatus(value); return *this;}
83 inline WorkloadShareSummary& WithStatus(ShareStatus&& value) { SetStatus(std::move(value)); return *this;}
85
87
90 inline const Aws::String& GetStatusMessage() const{ return m_statusMessage; }
91 inline bool StatusMessageHasBeenSet() const { return m_statusMessageHasBeenSet; }
92 inline void SetStatusMessage(const Aws::String& value) { m_statusMessageHasBeenSet = true; m_statusMessage = value; }
93 inline void SetStatusMessage(Aws::String&& value) { m_statusMessageHasBeenSet = true; m_statusMessage = std::move(value); }
94 inline void SetStatusMessage(const char* value) { m_statusMessageHasBeenSet = true; m_statusMessage.assign(value); }
95 inline WorkloadShareSummary& WithStatusMessage(const Aws::String& value) { SetStatusMessage(value); return *this;}
96 inline WorkloadShareSummary& WithStatusMessage(Aws::String&& value) { SetStatusMessage(std::move(value)); return *this;}
97 inline WorkloadShareSummary& WithStatusMessage(const char* value) { SetStatusMessage(value); return *this;}
99 private:
100
101 Aws::String m_shareId;
102 bool m_shareIdHasBeenSet = false;
103
104 Aws::String m_sharedWith;
105 bool m_sharedWithHasBeenSet = false;
106
107 PermissionType m_permissionType;
108 bool m_permissionTypeHasBeenSet = false;
109
110 ShareStatus m_status;
111 bool m_statusHasBeenSet = false;
112
113 Aws::String m_statusMessage;
114 bool m_statusMessageHasBeenSet = false;
115 };
116
117} // namespace Model
118} // namespace WellArchitected
119} // namespace Aws
WorkloadShareSummary & WithStatusMessage(Aws::String &&value)
WorkloadShareSummary & WithPermissionType(PermissionType &&value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
WorkloadShareSummary & WithSharedWith(const char *value)
WorkloadShareSummary & WithSharedWith(const Aws::String &value)
WorkloadShareSummary & WithStatusMessage(const char *value)
WorkloadShareSummary & WithStatus(const ShareStatus &value)
WorkloadShareSummary & WithShareId(const Aws::String &value)
WorkloadShareSummary & WithPermissionType(const PermissionType &value)
WorkloadShareSummary & WithSharedWith(Aws::String &&value)
WorkloadShareSummary & WithStatusMessage(const Aws::String &value)
void SetPermissionType(const PermissionType &value)
WorkloadShareSummary & WithStatus(ShareStatus &&value)
WorkloadShareSummary & WithShareId(Aws::String &&value)
AWS_WELLARCHITECTED_API WorkloadShareSummary & operator=(Aws::Utils::Json::JsonView jsonValue)
WorkloadShareSummary & WithShareId(const char *value)
AWS_WELLARCHITECTED_API WorkloadShareSummary(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue