AWS SDK for C++

AWS SDK for C++ Version 1.11.754

Loading...
Searching...
No Matches
DisassociateLicenseRequest.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/grafana/ManagedGrafanaRequest.h>
9#include <aws/grafana/ManagedGrafana_EXPORTS.h>
10#include <aws/grafana/model/LicenseType.h>
11
12#include <utility>
13
14namespace Aws {
15namespace ManagedGrafana {
16namespace Model {
17
21 public:
22 AWS_MANAGEDGRAFANA_API DisassociateLicenseRequest() = default;
23
24 // Service request name is the Operation name which will send this request out,
25 // each operation should has unique request name, so that we can get operation's name from this request.
26 // Note: this is not true for response, multiple operations may have the same response name,
27 // so we can not get operation's name from response.
28 inline virtual const char* GetServiceRequestName() const override { return "DisassociateLicense"; }
29
30 AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override;
31
33
36 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
37 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
38 template <typename WorkspaceIdT = Aws::String>
39 void SetWorkspaceId(WorkspaceIdT&& value) {
40 m_workspaceIdHasBeenSet = true;
41 m_workspaceId = std::forward<WorkspaceIdT>(value);
42 }
43 template <typename WorkspaceIdT = Aws::String>
45 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
46 return *this;
47 }
49
51
54 inline LicenseType GetLicenseType() const { return m_licenseType; }
55 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
56 inline void SetLicenseType(LicenseType value) {
57 m_licenseTypeHasBeenSet = true;
58 m_licenseType = value;
59 }
61 SetLicenseType(value);
62 return *this;
63 }
65 private:
66 Aws::String m_workspaceId;
67
68 LicenseType m_licenseType{LicenseType::NOT_SET};
69 bool m_workspaceIdHasBeenSet = false;
70 bool m_licenseTypeHasBeenSet = false;
71};
72
73} // namespace Model
74} // namespace ManagedGrafana
75} // 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