AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
CreateWorkspaceServiceAccountRequest.h
1
6#pragma once
7#include <aws/grafana/ManagedGrafana_EXPORTS.h>
8#include <aws/grafana/ManagedGrafanaRequest.h>
9#include <aws/grafana/model/Role.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ManagedGrafana
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MANAGEDGRAFANA_API CreateWorkspaceServiceAccountRequest();
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 "CreateWorkspaceServiceAccount"; }
32
33 AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override;
34
35
37
43 inline const Role& GetGrafanaRole() const{ return m_grafanaRole; }
44 inline bool GrafanaRoleHasBeenSet() const { return m_grafanaRoleHasBeenSet; }
45 inline void SetGrafanaRole(const Role& value) { m_grafanaRoleHasBeenSet = true; m_grafanaRole = value; }
46 inline void SetGrafanaRole(Role&& value) { m_grafanaRoleHasBeenSet = true; m_grafanaRole = std::move(value); }
47 inline CreateWorkspaceServiceAccountRequest& WithGrafanaRole(const Role& value) { SetGrafanaRole(value); return *this;}
48 inline CreateWorkspaceServiceAccountRequest& WithGrafanaRole(Role&& value) { SetGrafanaRole(std::move(value)); return *this;}
50
52
56 inline const Aws::String& GetName() const{ return m_name; }
57 inline bool NameHasBeenSet() const { return m_nameHasBeenSet; }
58 inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; }
59 inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); }
60 inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); }
61 inline CreateWorkspaceServiceAccountRequest& WithName(const Aws::String& value) { SetName(value); return *this;}
62 inline CreateWorkspaceServiceAccountRequest& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;}
63 inline CreateWorkspaceServiceAccountRequest& WithName(const char* value) { SetName(value); return *this;}
65
67
70 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
71 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
72 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
73 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
74 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
76 inline CreateWorkspaceServiceAccountRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
77 inline CreateWorkspaceServiceAccountRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
79 private:
80
81 Role m_grafanaRole;
82 bool m_grafanaRoleHasBeenSet = false;
83
84 Aws::String m_name;
85 bool m_nameHasBeenSet = false;
86
87 Aws::String m_workspaceId;
88 bool m_workspaceIdHasBeenSet = false;
89 };
90
91} // namespace Model
92} // namespace ManagedGrafana
93} // namespace Aws
CreateWorkspaceServiceAccountRequest & WithWorkspaceId(const char *value)
CreateWorkspaceServiceAccountRequest & WithName(Aws::String &&value)
AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override
CreateWorkspaceServiceAccountRequest & WithWorkspaceId(const Aws::String &value)
CreateWorkspaceServiceAccountRequest & WithName(const char *value)
CreateWorkspaceServiceAccountRequest & WithName(const Aws::String &value)
CreateWorkspaceServiceAccountRequest & WithGrafanaRole(const Role &value)
CreateWorkspaceServiceAccountRequest & WithWorkspaceId(Aws::String &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String