AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateWorkloadShareRequest.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
13namespace Aws
14{
15namespace WellArchitected
16{
17namespace Model
18{
19
26 {
27 public:
28 AWS_WELLARCHITECTED_API UpdateWorkloadShareRequest();
29
30 // Service request name is the Operation name which will send this request out,
31 // each operation should has unique request name, so that we can get operation's name from this request.
32 // Note: this is not true for response, multiple operations may have the same response name,
33 // so we can not get operation's name from response.
34 inline virtual const char* GetServiceRequestName() const override { return "UpdateWorkloadShare"; }
35
36 AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override;
37
38
40
41 inline const Aws::String& GetShareId() const{ return m_shareId; }
42 inline bool ShareIdHasBeenSet() const { return m_shareIdHasBeenSet; }
43 inline void SetShareId(const Aws::String& value) { m_shareIdHasBeenSet = true; m_shareId = value; }
44 inline void SetShareId(Aws::String&& value) { m_shareIdHasBeenSet = true; m_shareId = std::move(value); }
45 inline void SetShareId(const char* value) { m_shareIdHasBeenSet = true; m_shareId.assign(value); }
46 inline UpdateWorkloadShareRequest& WithShareId(const Aws::String& value) { SetShareId(value); return *this;}
47 inline UpdateWorkloadShareRequest& WithShareId(Aws::String&& value) { SetShareId(std::move(value)); return *this;}
48 inline UpdateWorkloadShareRequest& WithShareId(const char* value) { SetShareId(value); return *this;}
50
52
53 inline const Aws::String& GetWorkloadId() const{ return m_workloadId; }
54 inline bool WorkloadIdHasBeenSet() const { return m_workloadIdHasBeenSet; }
55 inline void SetWorkloadId(const Aws::String& value) { m_workloadIdHasBeenSet = true; m_workloadId = value; }
56 inline void SetWorkloadId(Aws::String&& value) { m_workloadIdHasBeenSet = true; m_workloadId = std::move(value); }
57 inline void SetWorkloadId(const char* value) { m_workloadIdHasBeenSet = true; m_workloadId.assign(value); }
58 inline UpdateWorkloadShareRequest& WithWorkloadId(const Aws::String& value) { SetWorkloadId(value); return *this;}
59 inline UpdateWorkloadShareRequest& WithWorkloadId(Aws::String&& value) { SetWorkloadId(std::move(value)); return *this;}
60 inline UpdateWorkloadShareRequest& WithWorkloadId(const char* value) { SetWorkloadId(value); return *this;}
62
64
65 inline const PermissionType& GetPermissionType() const{ return m_permissionType; }
66 inline bool PermissionTypeHasBeenSet() const { return m_permissionTypeHasBeenSet; }
67 inline void SetPermissionType(const PermissionType& value) { m_permissionTypeHasBeenSet = true; m_permissionType = value; }
68 inline void SetPermissionType(PermissionType&& value) { m_permissionTypeHasBeenSet = true; m_permissionType = std::move(value); }
70 inline UpdateWorkloadShareRequest& WithPermissionType(PermissionType&& value) { SetPermissionType(std::move(value)); return *this;}
72 private:
73
74 Aws::String m_shareId;
75 bool m_shareIdHasBeenSet = false;
76
77 Aws::String m_workloadId;
78 bool m_workloadIdHasBeenSet = false;
79
80 PermissionType m_permissionType;
81 bool m_permissionTypeHasBeenSet = false;
82 };
83
84} // namespace Model
85} // namespace WellArchitected
86} // namespace Aws
AWS_WELLARCHITECTED_API Aws::String SerializePayload() const override
UpdateWorkloadShareRequest & WithPermissionType(const PermissionType &value)
UpdateWorkloadShareRequest & WithWorkloadId(Aws::String &&value)
UpdateWorkloadShareRequest & WithShareId(const char *value)
UpdateWorkloadShareRequest & WithWorkloadId(const Aws::String &value)
UpdateWorkloadShareRequest & WithShareId(Aws::String &&value)
UpdateWorkloadShareRequest & WithShareId(const Aws::String &value)
UpdateWorkloadShareRequest & WithPermissionType(PermissionType &&value)
UpdateWorkloadShareRequest & WithWorkloadId(const char *value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String