AWS SDK for C++

AWS SDK for C++ Version 1.11.751

Loading...
Searching...
No Matches
AssociateLicenseRequest.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 AssociateLicenseRequest() = 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 "AssociateLicense"; }
29
30 AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override;
31
32 AWS_MANAGEDGRAFANA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
33
35
38 inline const Aws::String& GetWorkspaceId() const { return m_workspaceId; }
39 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
40 template <typename WorkspaceIdT = Aws::String>
41 void SetWorkspaceId(WorkspaceIdT&& value) {
42 m_workspaceIdHasBeenSet = true;
43 m_workspaceId = std::forward<WorkspaceIdT>(value);
44 }
45 template <typename WorkspaceIdT = Aws::String>
47 SetWorkspaceId(std::forward<WorkspaceIdT>(value));
48 return *this;
49 }
51
53
58 inline LicenseType GetLicenseType() const { return m_licenseType; }
59 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
60 inline void SetLicenseType(LicenseType value) {
61 m_licenseTypeHasBeenSet = true;
62 m_licenseType = value;
63 }
65 SetLicenseType(value);
66 return *this;
67 }
69
71
77 inline const Aws::String& GetGrafanaToken() const { return m_grafanaToken; }
78 inline bool GrafanaTokenHasBeenSet() const { return m_grafanaTokenHasBeenSet; }
79 template <typename GrafanaTokenT = Aws::String>
80 void SetGrafanaToken(GrafanaTokenT&& value) {
81 m_grafanaTokenHasBeenSet = true;
82 m_grafanaToken = std::forward<GrafanaTokenT>(value);
83 }
84 template <typename GrafanaTokenT = Aws::String>
85 AssociateLicenseRequest& WithGrafanaToken(GrafanaTokenT&& value) {
86 SetGrafanaToken(std::forward<GrafanaTokenT>(value));
87 return *this;
88 }
90 private:
91 Aws::String m_workspaceId;
92
93 LicenseType m_licenseType{LicenseType::NOT_SET};
94
95 Aws::String m_grafanaToken;
96 bool m_workspaceIdHasBeenSet = false;
97 bool m_licenseTypeHasBeenSet = false;
98 bool m_grafanaTokenHasBeenSet = false;
99};
100
101} // namespace Model
102} // namespace ManagedGrafana
103} // 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