AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateWorkloadShareRequest.h
1
6#pragma once
7#include <aws/wellarchitected/WellArchitected_EXPORTS.h>
8#include <aws/wellarchitected/WellArchitectedRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/wellarchitected/model/PermissionType.h>
11#include <utility>
12#include <aws/core/utils/UUID.h>
13
14namespace Aws
15{
16namespace WellArchitected
17{
18namespace Model
19{
20
27 {
28 public:
29 AWS_WELLARCHITECTED_API CreateWorkloadShareRequest();
30
31 // Service request name is the Operation name which will send this request out,
32 // each operation should has unique request name, so that we can get operation's name from this request.
33 // Note: this is not true for response, multiple operations may have the same response name,
34 // so we can not get operation's name from response.
35 inline virtual const char* GetServiceRequestName() const override { return "CreateWorkloadShare"; }
36
37 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
38
39
41
42 inline const Aws::String& GetWorkloadId() const{ return m_workloadId; }
43 inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
44 inline void SetWorkloadId(const Aws::String& value) { m_workloadIdHasBeenSet = true; m_workloadId = value; }
45 inline void SetWorkloadId(Aws::String&& value) { m_workloadIdHasBeenSet = true; m_workloadId = std::move(value); }
46 inline void SetWorkloadId(const char* value) { m_workloadIdHasBeenSet = true; m_workloadId.assign(value); }
47 inline CreateWorkloadShareRequest& WithWorkloadId(const Aws::String& value) { SetWorkloadId(value); return *this;}
48 inline CreateWorkloadShareRequest& WithWorkloadId(Aws::String&& value) { SetWorkloadId(std::move(value)); return *this;}
49 inline CreateWorkloadShareRequest& WithWorkloadId(const char* value) { SetWorkloadId(value); return *this;}
51
53
54 inline const Aws::String& GetSharedWith() const{ return m_sharedWith; }
55 inline bool SharedWithHasBeenSet() const { return m_sharedWithHasBeenSet; }
56 inline void SetSharedWith(const Aws::String& value) { m_sharedWithHasBeenSet = true; m_sharedWith = value; }
57 inline void SetSharedWith(Aws::String&& value) { m_sharedWithHasBeenSet = true; m_sharedWith = std::move(value); }
58 inline void SetSharedWith(const char* value) { m_sharedWithHasBeenSet = true; m_sharedWith.assign(value); }
59 inline CreateWorkloadShareRequest& WithSharedWith(const Aws::String& value) { SetSharedWith(value); return *this;}
60 inline CreateWorkloadShareRequest& WithSharedWith(Aws::String&& value) { SetSharedWith(std::move(value)); return *this;}
61 inline CreateWorkloadShareRequest& WithSharedWith(const char* value) { SetSharedWith(value); return *this;}
63
65
66 inline const PermissionType& GetPermissionType() const{ return m_permissionType; }
67 inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
68 inline void SetPermissionType(const PermissionType& value) { m_permissionTypeHasBeenSet = true; m_permissionType = value; }
69 inline void SetPermissionType(PermissionType&& value) { m_permissionTypeHasBeenSet = true; m_permissionType = std::move(value); }
71 inline CreateWorkloadShareRequest& WithPermissionType(PermissionType&& value) { SetPermissionType(std::move(value)); return *this;}
73
75
76 inline const Aws::String& GetClientRequestToken() const{ return m_clientRequestToken; }
77 inline bool ClientRequestTokenHasBeenSet() const { return m_clientRequestTokenHasBeenSet; }
78 inline void SetClientRequestToken(const Aws::String& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = value; }
79 inline void SetClientRequestToken(Aws::String&& value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken = std::move(value); }
80 inline void SetClientRequestToken(const char* value) { m_clientRequestTokenHasBeenSet = true; m_clientRequestToken.assign(value); }
82 inline CreateWorkloadShareRequest& WithClientRequestToken(Aws::String&& value) { SetClientRequestToken(std::move(value)); return *this;}
83 inline CreateWorkloadShareRequest& WithClientRequestToken(const char* value) { SetClientRequestToken(value); return *this;}
85 private:
86
87 Aws::String m_workloadId;
88 bool m_workloadIdHasBeenSet = false;
89
90 Aws::String m_sharedWith;
91 bool m_sharedWithHasBeenSet = false;
92
93 PermissionType m_permissionType;
94 bool m_permissionTypeHasBeenSet = false;
95
96 Aws::String m_clientRequestToken;
97 bool m_clientRequestTokenHasBeenSet = false;
98 };
99
100} // namespace Model
101} // namespace WellArchitected
102} // namespace Aws
CreateWorkloadShareRequest & WithSharedWith(const Aws::String &value)
CreateWorkloadShareRequest & WithPermissionType(const PermissionType &value)
CreateWorkloadShareRequest & WithSharedWith(const char *value)
CreateWorkloadShareRequest & WithClientRequestToken(const char *value)
CreateWorkloadShareRequest & WithPermissionType(PermissionType &&value)
CreateWorkloadShareRequest & WithClientRequestToken(Aws::String &&value)
CreateWorkloadShareRequest & WithSharedWith(Aws::String &&value)
CreateWorkloadShareRequest & WithWorkloadId(const char *value)
CreateWorkloadShareRequest & WithClientRequestToken(const Aws::String &value)
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
CreateWorkloadShareRequest & WithWorkloadId(const Aws::String &value)
CreateWorkloadShareRequest & WithWorkloadId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String