AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetGrafanaToken(const Aws::String& value) { m_grafanaTokenHasBeenSet = true; m_grafanaToken = value; }
48 inline void SetGrafanaToken(Aws::String&& value) { m_grafanaTokenHasBeenSet = true; m_grafanaToken = std::move(value); }
49 inline void SetGrafanaToken(const char* value) { m_grafanaTokenHasBeenSet = true; m_grafanaToken.assign(value); }
50 inline AssociateLicenseRequest& WithGrafanaToken(const Aws::String& value) { SetGrafanaToken(value); return *this;}
51 inline AssociateLicenseRequest& WithGrafanaToken(Aws::String&& value) { SetGrafanaToken(std::move(value)); return *this;}
52 inline AssociateLicenseRequest& WithGrafanaToken(const char* value) { SetGrafanaToken(value); return *this;}
54
56
61 inline const LicenseType& GetLicenseType() const{ return m_licenseType; }
62 inline bool LicenseTypeHasBeenSet() const { return m_licenseTypeHasBeenSet; }
63 inline void SetLicenseType(const LicenseType& value) { m_licenseTypeHasBeenSet = true; m_licenseType = value; }
64 inline void SetLicenseType(LicenseType&& value) { m_licenseTypeHasBeenSet = true; m_licenseType = std::move(value); }
65 inline AssociateLicenseRequest& WithLicenseType(const LicenseType& value) { SetLicenseType(value); return *this;}
66 inline AssociateLicenseRequest& WithLicenseType(LicenseType&& value) { SetLicenseType(std::move(value)); return *this;}
68
70
73 inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; }
74 inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; }
75 inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; }
76 inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); }
77 inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); }
78 inline AssociateLicenseRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;}
79 inline AssociateLicenseRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;}
80 inline AssociateLicenseRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;}
82 private:
83
84 Aws::String m_grafanaToken;
85 bool m_grafanaTokenHasBeenSet = false;
86
87 LicenseType m_licenseType;
88 bool m_licenseTypeHasBeenSet = false;
89
90 Aws::String m_workspaceId;
91 bool m_workspaceIdHasBeenSet = false;
92 };
93
94} // namespace Model
95} // namespace ManagedGrafana
96} // namespace Aws
AssociateLicenseRequest & WithWorkspaceId(Aws::String &&value)
AssociateLicenseRequest & WithGrafanaToken(const char *value)
AssociateLicenseRequest & WithLicenseType(const LicenseType &value)
AssociateLicenseRequest & WithLicenseType(LicenseType &&value)
AWS_MANAGEDGRAFANA_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override
AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override
AssociateLicenseRequest & WithGrafanaToken(Aws::String &&value)
AssociateLicenseRequest & WithWorkspaceId(const char *value)
virtual const char * GetServiceRequestName() const override
AssociateLicenseRequest & WithWorkspaceId(const Aws::String &value)
AssociateLicenseRequest & WithGrafanaToken(const Aws::String &value)
Aws::Map< Aws::String, Aws::String > HeaderValueCollection
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String