7#include <aws/grafana/ManagedGrafana_EXPORTS.h>
8#include <aws/grafana/ManagedGrafanaRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
14namespace ManagedGrafana
43 inline void SetKeyName(
const char* value) { m_keyNameHasBeenSet =
true; m_keyName.assign(value); }
58 inline void SetKeyRole(
const char* value) { m_keyRoleHasBeenSet =
true; m_keyRole.assign(value); }
71 inline void SetSecondsToLive(
int value) { m_secondsToLiveHasBeenSet =
true; m_secondsToLive = value; }
83 inline void SetWorkspaceId(
const char* value) { m_workspaceIdHasBeenSet =
true; m_workspaceId.assign(value); }
91 bool m_keyNameHasBeenSet =
false;
94 bool m_keyRoleHasBeenSet =
false;
97 bool m_secondsToLiveHasBeenSet =
false;
100 bool m_workspaceIdHasBeenSet =
false;
const Aws::String & GetWorkspaceId() const
void SetSecondsToLive(int value)
void SetKeyName(const char *value)
CreateWorkspaceApiKeyRequest & WithKeyRole(const Aws::String &value)
bool WorkspaceIdHasBeenSet() const
void SetKeyName(const Aws::String &value)
void SetKeyName(Aws::String &&value)
CreateWorkspaceApiKeyRequest & WithKeyRole(Aws::String &&value)
CreateWorkspaceApiKeyRequest & WithWorkspaceId(const char *value)
void SetWorkspaceId(Aws::String &&value)
AWS_MANAGEDGRAFANA_API CreateWorkspaceApiKeyRequest()
void SetKeyRole(const Aws::String &value)
CreateWorkspaceApiKeyRequest & WithWorkspaceId(const Aws::String &value)
void SetKeyRole(Aws::String &&value)
CreateWorkspaceApiKeyRequest & WithSecondsToLive(int value)
bool SecondsToLiveHasBeenSet() const
bool KeyNameHasBeenSet() const
bool KeyRoleHasBeenSet() const
CreateWorkspaceApiKeyRequest & WithWorkspaceId(Aws::String &&value)
CreateWorkspaceApiKeyRequest & WithKeyName(Aws::String &&value)
AWS_MANAGEDGRAFANA_API Aws::String SerializePayload() const override
int GetSecondsToLive() const
void SetWorkspaceId(const Aws::String &value)
void SetKeyRole(const char *value)
const Aws::String & GetKeyName() const
CreateWorkspaceApiKeyRequest & WithKeyRole(const char *value)
CreateWorkspaceApiKeyRequest & WithKeyName(const char *value)
virtual const char * GetServiceRequestName() const override
const Aws::String & GetKeyRole() const
void SetWorkspaceId(const char *value)
CreateWorkspaceApiKeyRequest & WithKeyName(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String