AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
DisassociateLicenseRequest.h
1
6#pragma once
7#include <aws/grafana/ManagedGrafana_EXPORTS.h>
8#include <aws/grafana/ManagedGrafanaRequest.h>
9#include <aws/grafana/model/LicenseType.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 DisassociateLicenseRequest();
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 "DisassociateLicense"; }
32
33 AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override;
34
35
37
40 inline const LicenseType& GetLicenseType() const{ return m_licenseType; }
41 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
42 inline void SetLicenseType(const LicenseType& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
43 inline void SetLicenseType(LicenseType&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = std::move(value); }
44 inline DisassociateLicenseRequest& WithLicenseType(const LicenseType& value) { SetLicenseType(value); return *this;}
45 inline DisassociateLicenseRequest& WithLicenseType(LicenseType&& value) { SetLicenseType(std::move(value)); return *this;}
47
49
52 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
53 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
54 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
55 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
56 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
57 inline DisassociateLicenseRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
58 inline DisassociateLicenseRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
59 inline DisassociateLicenseRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
61 private:
62
63 LicenseType m_licenseType;
64 bool m_licenseTypeHasBeenSet = false;
65
66 Aws::String m_workspaceId;
67 bool m_workspaceIdHasBeenSet = false;
68 };
69
70} // namespace Model
71} // namespace ManagedGrafana
72} // namespace Aws
AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override
DisassociateLicenseRequest & WithWorkspaceId(const Aws::String &value)
DisassociateLicenseRequest & WithLicenseType(LicenseType &&value)
DisassociateLicenseRequest & WithWorkspaceId(const char *value)
DisassociateLicenseRequest & WithWorkspaceId(Aws::String &&value)
DisassociateLicenseRequest & WithLicenseType(const LicenseType &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String