AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
ProvisionPermissionSetRequest.h
1
6#pragma once
7#include <aws/sso-admin/SSOAdmin_EXPORTS.h>
8#include <aws/sso-admin/SSOAdminRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/sso-admin/model/ProvisionTargetType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace SSOAdmin
16{
17namespace Model
18{
19
23 {
24 public:
26
27 // Service request name is the Operation name which will send this request out,
28 // each operation should has unique request name, so that we can get operation's name from this request.
29 // Note: this is not true for response, multiple operations may have the same response name,
30 // so we can not get operation's name from response.
31 inline virtual const char* GetServiceRequestName() const override { return "ProvisionPermissionSet"; }
32
33 AWS_SSOADMIN_API Aws::String SerializePayload() const override;
34
36
37
39
46 inline const Aws::String& GetInstanceArn() const{ return m_instanceArn; }
47 inline bool InstanceArnHasBeenSet() const { return m_instanceArnHasBeenSet; }
48 inline void SetInstanceArn(const Aws::String& value) { m_instanceArnHasBeenSet = true; m_instanceArn = value; }
49 inline void SetInstanceArn(Aws::String&& value) { m_instanceArnHasBeenSet = true; m_instanceArn = std::move(value); }
50 inline void SetInstanceArn(const char* value) { m_instanceArnHasBeenSet = true; m_instanceArn.assign(value); }
51 inline ProvisionPermissionSetRequest& WithInstanceArn(const Aws::String& value) { SetInstanceArn(value); return *this;}
52 inline ProvisionPermissionSetRequest& WithInstanceArn(Aws::String&& value) { SetInstanceArn(std::move(value)); return *this;}
53 inline ProvisionPermissionSetRequest& WithInstanceArn(const char* value) { SetInstanceArn(value); return *this;}
55
57
60 inline const Aws::String& GetPermissionSetArn() const{ return m_permissionSetArn; }
61 inline bool PermissionSetArnHasBeenSet() const { return m_permissionSetArnHasBeenSet; }
62 inline void SetPermissionSetArn(const Aws::String& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = value; }
63 inline void SetPermissionSetArn(Aws::String&& value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn = std::move(value); }
64 inline void SetPermissionSetArn(const char* value) { m_permissionSetArnHasBeenSet = true; m_permissionSetArn.assign(value); }
66 inline ProvisionPermissionSetRequest& WithPermissionSetArn(Aws::String&& value) { SetPermissionSetArn(std::move(value)); return *this;}
67 inline ProvisionPermissionSetRequest& WithPermissionSetArn(const char* value) { SetPermissionSetArn(value); return *this;}
69
71
75 inline const Aws::String& GetTargetId() const{ return m_targetId; }
76 inline bool TargetIdHasBeenSet() const { return m_targetIdHasBeenSet; }
77 inline void SetTargetId(const Aws::String& value) { m_targetIdHasBeenSet = true; m_targetId = value; }
78 inline void SetTargetId(Aws::String&& value) { m_targetIdHasBeenSet = true; m_targetId = std::move(value); }
79 inline void SetTargetId(const char* value) { m_targetIdHasBeenSet = true; m_targetId.assign(value); }
80 inline ProvisionPermissionSetRequest& WithTargetId(const Aws::String& value) { SetTargetId(value); return *this;}
81 inline ProvisionPermissionSetRequest& WithTargetId(Aws::String&& value) { SetTargetId(std::move(value)); return *this;}
82 inline ProvisionPermissionSetRequest& WithTargetId(const char* value) { SetTargetId(value); return *this;}
84
86
89 inline const ProvisionTargetType& GetTargetType() const{ return m_targetType; }
90 inline bool TargetTypeHasBeenSet() const { return m_targetTypeHasBeenSet; }
91 inline void SetTargetType(const ProvisionTargetType& value) { m_targetTypeHasBeenSet = true; m_targetType = value; }
92 inline void SetTargetType(ProvisionTargetType&& value) { m_targetTypeHasBeenSet = true; m_targetType = std::move(value); }
94 inline ProvisionPermissionSetRequest& WithTargetType(ProvisionTargetType&& value) { SetTargetType(std::move(value)); return *this;}
96 private:
97
98 Aws::String m_instanceArn;
99 bool m_instanceArnHasBeenSet = false;
100
101 Aws::String m_permissionSetArn;
102 bool m_permissionSetArnHasBeenSet = false;
103
104 Aws::String m_targetId;
105 bool m_targetIdHasBeenSet = false;
106
107 ProvisionTargetType m_targetType;
108 bool m_targetTypeHasBeenSet = false;
109 };
110
111} // namespace Model
112} // namespace SSOAdmin
113} // namespace Aws
ProvisionPermissionSetRequest & WithInstanceArn(Aws::String &&value)
ProvisionPermissionSetRequest & WithTargetId(Aws::String &&value)
ProvisionPermissionSetRequest & WithTargetType(const ProvisionTargetType &value)
ProvisionPermissionSetRequest & WithTargetType(ProvisionTargetType &&value)
ProvisionPermissionSetRequest & WithPermissionSetArn(const char *value)
AWS_SSOADMIN_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
ProvisionPermissionSetRequest & WithTargetId(const char *value)
ProvisionPermissionSetRequest & WithPermissionSetArn(Aws::String &&value)
AWS_SSOADMIN_API Aws::String SerializePayload() const override
ProvisionPermissionSetRequest & WithInstanceArn(const Aws::String &value)
ProvisionPermissionSetRequest & WithTargetId(const Aws::String &value)
ProvisionPermissionSetRequest & WithPermissionSetArn(const Aws::String &value)
ProvisionPermissionSetRequest & WithInstanceArn(const char *value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String