AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
WorkloadShare.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 WorkloadShare();
37 AWS_WELLARCHITECTED_API WorkloadShare(Aws::Utils::Json::JsonView jsonValue);
38 AWS_WELLARCHITECTED_API WorkloadShare& 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 WorkloadShare& WithShareId(const Aws::String& value) { SetShareId(value); return *this;}
50 inline WorkloadShare& WithShareId(Aws::String&& value) { SetShareId(std::move(value)); return *this;}
51 inline WorkloadShare& WithShareId(const char* value) { SetShareId(value); return *this;}
53
55
56 inline const Aws::String& GetSharedBy() const{ return m_sharedBy; }
57 inline bool SharedByHasBeenSet() const { return m_sharedByHasBeenSet; }
58 inline void SetSharedBy(const Aws::String& value) { m_sharedByHasBeenSet = true; m_sharedBy = value; }
59 inline void SetSharedBy(Aws::String&& value) { m_sharedByHasBeenSet = true; m_sharedBy = std::move(value); }
60 inline void SetSharedBy(const char* value) { m_sharedByHasBeenSet = true; m_sharedBy.assign(value); }
61 inline WorkloadShare& WithSharedBy(const Aws::String& value) { SetSharedBy(value); return *this;}
62 inline WorkloadShare& WithSharedBy(Aws::String&& value) { SetSharedBy(std::move(value)); return *this;}
63 inline WorkloadShare& WithSharedBy(const char* value) { SetSharedBy(value); return *this;}
65
67
68 inline const Aws::String& GetSharedWith() const{ return m_sharedWith; }
69 inline bool SharedWithHasBeenSet() const { return m_sharedWithHasBeenSet; }
70 inline void SetSharedWith(const Aws::String& value) { m_sharedWithHasBeenSet = true; m_sharedWith = value; }
71 inline void SetSharedWith(Aws::String&& value) { m_sharedWithHasBeenSet = true; m_sharedWith = std::move(value); }
72 inline void SetSharedWith(const char* value) { m_sharedWithHasBeenSet = true; m_sharedWith.assign(value); }
73 inline WorkloadShare& WithSharedWith(const Aws::String& value) { SetSharedWith(value); return *this;}
74 inline WorkloadShare& WithSharedWith(Aws::String&& value) { SetSharedWith(std::move(value)); return *this;}
75 inline WorkloadShare& WithSharedWith(const char* value) { SetSharedWith(value); return *this;}
77
79
80 inline const PermissionType& GetPermissionType() const{ return m_permissionType; }
81 inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
82 inline void SetPermissionType(const PermissionType& value) { m_permissionTypeHasBeenSet = true; m_permissionType = value; }
83 inline void SetPermissionType(PermissionType&& value) { m_permissionTypeHasBeenSet = true; m_permissionType = std::move(value); }
84 inline WorkloadShare& WithPermissionType(const PermissionType& value) { SetPermissionType(value); return *this;}
85 inline WorkloadShare& WithPermissionType(PermissionType&& value) { SetPermissionType(std::move(value)); return *this;}
87
89
90 inline const ShareStatus& GetStatus() const{ return m_status; }
91 inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; }
92 inline void SetStatus(const ShareStatus& value) { m_statusHasBeenSet = true; m_status = value; }
93 inline void SetStatus(ShareStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); }
94 inline WorkloadShare& WithStatus(const ShareStatus& value) { SetStatus(value); return *this;}
95 inline WorkloadShare& WithStatus(ShareStatus&& value) { SetStatus(std::move(value)); return *this;}
97
99
100 inline const Aws::String& GetWorkloadName() const{ return m_workloadName; }
101 inline bool WorkloadNameHasBeenSet() const { return m_workloadNameHasBeenSet; }
102 inline void SetWorkloadName(const Aws::String& value) { m_workloadNameHasBeenSet = true; m_workloadName = value; }
103 inline void SetWorkloadName(Aws::String&& value) { m_workloadNameHasBeenSet = true; m_workloadName = std::move(value); }
104 inline void SetWorkloadName(const char* value) { m_workloadNameHasBeenSet = true; m_workloadName.assign(value); }
105 inline WorkloadShare& WithWorkloadName(const Aws::String& value) { SetWorkloadName(value); return *this;}
106 inline WorkloadShare& WithWorkloadName(Aws::String&& value) { SetWorkloadName(std::move(value)); return *this;}
107 inline WorkloadShare& WithWorkloadName(const char* value) { SetWorkloadName(value); return *this;}
109
111
112 inline const Aws::String& GetWorkloadId() const{ return m_workloadId; }
113 inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
114 inline void SetWorkloadId(const Aws::String& value) { m_workloadIdHasBeenSet = true; m_workloadId = value; }
115 inline void SetWorkloadId(Aws::String&& value) { m_workloadIdHasBeenSet = true; m_workloadId = std::move(value); }
116 inline void SetWorkloadId(const char* value) { m_workloadIdHasBeenSet = true; m_workloadId.assign(value); }
117 inline WorkloadShare& WithWorkloadId(const Aws::String& value) { SetWorkloadId(value); return *this;}
118 inline WorkloadShare& WithWorkloadId(Aws::String&& value) { SetWorkloadId(std::move(value)); return *this;}
119 inline WorkloadShare& WithWorkloadId(const char* value) { SetWorkloadId(value); return *this;}
121 private:
122
123 Aws::String m_shareId;
124 bool m_shareIdHasBeenSet = false;
125
126 Aws::String m_sharedBy;
127 bool m_sharedByHasBeenSet = false;
128
129 Aws::String m_sharedWith;
130 bool m_sharedWithHasBeenSet = false;
131
132 PermissionType m_permissionType;
133 bool m_permissionTypeHasBeenSet = false;
134
135 ShareStatus m_status;
136 bool m_statusHasBeenSet = false;
137
138 Aws::String m_workloadName;
139 bool m_workloadNameHasBeenSet = false;
140
141 Aws::String m_workloadId;
142 bool m_workloadIdHasBeenSet = false;
143 };
144
145} // namespace Model
146} // namespace WellArchitected
147} // namespace Aws
const PermissionType & GetPermissionType() const
void SetStatus(const ShareStatus &value)
WorkloadShare & WithWorkloadName(Aws::String &&value)
WorkloadShare & WithSharedBy(const Aws::String &value)
void SetWorkloadName(const Aws::String &value)
AWS_WELLARCHITECTED_API WorkloadShare()
void SetSharedBy(const Aws::String &value)
WorkloadShare & WithSharedWith(const char *value)
void SetSharedWith(Aws::String &&value)
WorkloadShare & WithStatus(const ShareStatus &value)
void SetWorkloadName(Aws::String &&value)
void SetSharedWith(const Aws::String &value)
WorkloadShare & WithShareId(const Aws::String &value)
AWS_WELLARCHITECTED_API Aws::Utils::Json::JsonValue Jsonize() const
const Aws::String & GetWorkloadName() const
const Aws::String & GetSharedWith() const
WorkloadShare & WithShareId(Aws::String &&value)
WorkloadShare & WithWorkloadName(const Aws::String &value)
WorkloadShare & WithWorkloadId(const Aws::String &value)
WorkloadShare & WithPermissionType(PermissionType &&value)
WorkloadShare & WithSharedWith(const Aws::String &value)
const ShareStatus & GetStatus() const
WorkloadShare & WithSharedWith(Aws::String &&value)
const Aws::String & GetSharedBy() const
void SetPermissionType(const PermissionType &value)
const Aws::String & GetWorkloadId() const
void SetWorkloadId(const Aws::String &value)
WorkloadShare & WithWorkloadId(const char *value)
WorkloadShare & WithWorkloadName(const char *value)
void SetPermissionType(PermissionType &&value)
WorkloadShare & WithPermissionType(const PermissionType &value)
AWS_WELLARCHITECTED_API WorkloadShare & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_WELLARCHITECTED_API WorkloadShare(Aws::Utils::Json::JsonView jsonValue)
WorkloadShare & WithSharedBy(const char *value)
const Aws::String & GetShareId() const
WorkloadShare & WithSharedBy(Aws::String &&value)
WorkloadShare & WithShareId(const char *value)
WorkloadShare & WithStatus(ShareStatus &&value)
void SetShareId(const Aws::String &value)
WorkloadShare & WithWorkloadId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue