AWS SDK for C++

AWS SDK for C++ Version 1.11.607

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() = default;
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 LicenseType GetLicenseType() const { return m_licenseType; }
41 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
42 inline void SetLicenseType(LicenseType value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
45
47
50 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
51 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
52 template<typename WorkspaceIdT = Aws::String>
53 void SetWorkspaceId(WorkspaceIdT&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::forward<WorkspaceIdT>(value); }
54 template<typename WorkspaceIdT = Aws::String>
55 DisassociateLicenseRequest& WithWorkspaceId(WorkspaceIdT&& value) { SetWorkspaceId(std::forward<WorkspaceIdT>(value)); return *this;}
57 private:
58
59 LicenseType m_licenseType{LicenseType::NOT_SET};
60 bool m_licenseTypeHasBeenSet = false;
61
62 Aws::String m_workspaceId;
63 bool m_workspaceIdHasBeenSet = false;
64 };
65
66} // namespace Model
67} // namespace ManagedGrafana
68} // namespace Aws
AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override
AWS_MANAGEDGRAFANA_API DisassociateLicenseRequest()=default
DisassociateLicenseRequest & WithWorkspaceId(WorkspaceIdT &&value)
DisassociateLicenseRequest & WithLicenseType(LicenseType value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String