AWS SDK for C++

AWS SDK for C++ Version 1.11.612

Loading...
Searching...
No Matches
AssociateLicenseRequest.h
1
6#pragma once
7#include <aws/grafana/ManagedGrafana_EXPORTS.h>
8#include <aws/grafana/ManagedGrafanaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/grafana/model/LicenseType.h>
11#include <utility>
12
13namespace Aws
14{
15namespace ManagedGrafana
16{
17namespace Model
18{
19
23 {
24 public:
25 AWS_MANAGEDGRAFANA_API AssociateLicenseRequest() = 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 "AssociateLicense"; }
32
33 AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override;
34
35 AWS_MANAGEDGRAFANA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
36
37
39
45 inline const Aws::String& GetGrafanaToken() const { return m_grafanaToken; }
46 inline bool GrafanaTokenHasBeenSet() const { return m_grafanaTokenHasBeenSet; }
47 template<typename GrafanaTokenT = Aws::String>
48 void SetGrafanaToken(GrafanaTokenT&& value) { m_grafanaTokenHasBeenSet = true; m_grafanaToken = std::forward<GrafanaTokenT>(value); }
49 template<typename GrafanaTokenT = Aws::String>
50 AssociateLicenseRequest& WithGrafanaToken(GrafanaTokenT&& value) { SetGrafanaToken(std::forward<GrafanaTokenT>(value)); return *this;}
52
54
59 inline LicenseType GetLicenseType() const { return m_licenseType; }
60 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
61 inline void SetLicenseType(LicenseType value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
62 inline AssociateLicenseRequest& WithLicenseType(LicenseType value) { SetLicenseType(value); return *this;}
64
66
69 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
70 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
71 template<typename WorkspaceIdT = Aws::String>
72 void SetWorkspaceId(WorkspaceIdT&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::forward<WorkspaceIdT>(value); }
73 template<typename WorkspaceIdT = Aws::String>
74 AssociateLicenseRequest& WithWorkspaceId(WorkspaceIdT&& value) { SetWorkspaceId(std::forward<WorkspaceIdT>(value)); return *this;}
76 private:
77
78 Aws::String m_grafanaToken;
79 bool m_grafanaTokenHasBeenSet = false;
80
81 LicenseType m_licenseType{LicenseType::NOT_SET};
82 bool m_licenseTypeHasBeenSet = false;
83
84 Aws::String m_workspaceId;
85 bool m_workspaceIdHasBeenSet = false;
86 };
87
88} // namespace Model
89} // namespace ManagedGrafana
90} // namespace Aws
AWS_MANAGEDGRAFANA_API AssociateLicenseRequest()=default
AWS_MANAGEDGRAFANA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
AssociateLicenseRequest & WithLicenseType(LicenseType value)
AssociateLicenseRequest & WithWorkspaceId(WorkspaceIdT &&value)
AssociateLicenseRequest & WithGrafanaToken(GrafanaTokenT &&value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String