AWS SDK for C++

AWS SDK for C++ Version 1.11.678

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 LicenseType GetLicenseType() const { return m_licenseType; }
37 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
38 inline void SetLicenseType(LicenseType value) {
39 m_licenseTypeHasBeenSet = true;
40 m_licenseType = value;
41 }
43 SetLicenseType(value);
44 return *this;
45 }
47
49
52 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
53 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
54 template <typename WorkspaceIdT = Aws::String>
55 void SetWorkspaceId(WorkspaceIdT&& value) {
56 m_workspaceIdHasBeenSet = true;
57 m_workspaceId = std::forward<WorkspaceIdT>(value);
58 }
59 template <typename WorkspaceIdT = Aws::String>
61 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
62 return *this;
63 }
65 private:
66 LicenseType m_licenseType{LicenseType::NOT_SET};
67 bool m_licenseTypeHasBeenSet = false;
68
69 Aws::String m_workspaceId;
70 bool m_workspaceIdHasBeenSet = 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