From 6fa607ad6ba93759bf1619488b741a6ed4e081c4 Mon Sep 17 00:00:00 2001
From: aws-sdk-cpp-automation StealFire Service Creates a new StealFire workspace.See Also:
AWS
+ * API Reference
Creates a new StealFire workspace.
Creates a new StealFire workspace.
Deletes a StealFire workspace.
Deletes a StealFire workspace.
Deletes a StealFire workspace.
Describes an existing StealFire workspace.
Describes an existing StealFire workspace.
Describes an existing StealFire workspace.
Lists all StealFire workspaces, including workspaces being created or + * deleted.
Lists all StealFire workspaces, including workspaces being created or + * deleted.
Lists all StealFire workspaces, including workspaces being created or + * deleted.
Updates a StealFire workspace alias.
Updates a StealFire workspace alias.
Updates a StealFire workspace alias.
Updating or deleting a resource can cause an inconsistent + * state.
Description of the error.
+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *Description of the error.
+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *Description of the error.
+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *Description of the error.
+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *Description of the error.
+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *Description of the error.
+ */ + inline ConflictException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *Description of the error.
+ */ + inline ConflictException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *Description of the error.
+ */ + inline ConflictException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *Identifier of the resource affected.
+ */ + inline const Aws::String& GetResourceId() const{ return m_resourceId; } + + /** + *Identifier of the resource affected.
+ */ + inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } + + /** + *Identifier of the resource affected.
+ */ + inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } + + /** + *Identifier of the resource affected.
+ */ + inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } + + /** + *Identifier of the resource affected.
+ */ + inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } + + /** + *Identifier of the resource affected.
+ */ + inline ConflictException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} + + /** + *Identifier of the resource affected.
+ */ + inline ConflictException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} + + /** + *Identifier of the resource affected.
+ */ + inline ConflictException& WithResourceId(const char* value) { SetResourceId(value); return *this;} + + + /** + *Type of the resource affected.
+ */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *Type of the resource affected.
+ */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *Type of the resource affected.
+ */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *Type of the resource affected.
+ */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *Type of the resource affected.
+ */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *Type of the resource affected.
+ */ + inline ConflictException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *Type of the resource affected.
+ */ + inline ConflictException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *Type of the resource affected.
+ */ + inline ConflictException& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_resourceId; + bool m_resourceIdHasBeenSet; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/CreateWorkspaceRequest.h b/aws-cpp-sdk-amp/include/aws/amp/model/CreateWorkspaceRequest.h new file mode 100644 index 00000000000..bb07676ed53 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/CreateWorkspaceRequest.h @@ -0,0 +1,148 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeRepresents the input of a CreateWorkspace operation.
An optional user-assigned alias for this workspace. This alias is for user + * reference and does not need to be unique.
+ */ + inline const Aws::String& GetAlias() const{ return m_alias; } + + /** + *An optional user-assigned alias for this workspace. This alias is for user + * reference and does not need to be unique.
+ */ + inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } + + /** + *An optional user-assigned alias for this workspace. This alias is for user + * reference and does not need to be unique.
+ */ + inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } + + /** + *An optional user-assigned alias for this workspace. This alias is for user + * reference and does not need to be unique.
+ */ + inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } + + /** + *An optional user-assigned alias for this workspace. This alias is for user + * reference and does not need to be unique.
+ */ + inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } + + /** + *An optional user-assigned alias for this workspace. This alias is for user + * reference and does not need to be unique.
+ */ + inline CreateWorkspaceRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} + + /** + *An optional user-assigned alias for this workspace. This alias is for user + * reference and does not need to be unique.
+ */ + inline CreateWorkspaceRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} + + /** + *An optional user-assigned alias for this workspace. This alias is for user + * reference and does not need to be unique.
+ */ + inline CreateWorkspaceRequest& WithAlias(const char* value) { SetAlias(value); return *this;} + + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline CreateWorkspaceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline CreateWorkspaceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline CreateWorkspaceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + private: + + Aws::String m_alias; + bool m_aliasHasBeenSet; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/CreateWorkspaceResult.h b/aws-cpp-sdk-amp/include/aws/amp/model/CreateWorkspaceResult.h new file mode 100644 index 00000000000..6e650c3910a --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/CreateWorkspaceResult.h @@ -0,0 +1,150 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeRepresents the output of a CreateWorkspace operation.
The ARN of the workspace that was just created.
+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *The ARN of the workspace that was just created.
+ */ + inline void SetArn(const Aws::String& value) { m_arn = value; } + + /** + *The ARN of the workspace that was just created.
+ */ + inline void SetArn(Aws::String&& value) { m_arn = std::move(value); } + + /** + *The ARN of the workspace that was just created.
+ */ + inline void SetArn(const char* value) { m_arn.assign(value); } + + /** + *The ARN of the workspace that was just created.
+ */ + inline CreateWorkspaceResult& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *The ARN of the workspace that was just created.
+ */ + inline CreateWorkspaceResult& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *The ARN of the workspace that was just created.
+ */ + inline CreateWorkspaceResult& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *The status of the workspace that was just created (usually CREATING).
+ */ + inline const WorkspaceStatus& GetStatus() const{ return m_status; } + + /** + *The status of the workspace that was just created (usually CREATING).
+ */ + inline void SetStatus(const WorkspaceStatus& value) { m_status = value; } + + /** + *The status of the workspace that was just created (usually CREATING).
+ */ + inline void SetStatus(WorkspaceStatus&& value) { m_status = std::move(value); } + + /** + *The status of the workspace that was just created (usually CREATING).
+ */ + inline CreateWorkspaceResult& WithStatus(const WorkspaceStatus& value) { SetStatus(value); return *this;} + + /** + *The status of the workspace that was just created (usually CREATING).
+ */ + inline CreateWorkspaceResult& WithStatus(WorkspaceStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *The generated ID of the workspace that was just created.
+ */ + inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } + + /** + *The generated ID of the workspace that was just created.
+ */ + inline void SetWorkspaceId(const Aws::String& value) { m_workspaceId = value; } + + /** + *The generated ID of the workspace that was just created.
+ */ + inline void SetWorkspaceId(Aws::String&& value) { m_workspaceId = std::move(value); } + + /** + *The generated ID of the workspace that was just created.
+ */ + inline void SetWorkspaceId(const char* value) { m_workspaceId.assign(value); } + + /** + *The generated ID of the workspace that was just created.
+ */ + inline CreateWorkspaceResult& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} + + /** + *The generated ID of the workspace that was just created.
+ */ + inline CreateWorkspaceResult& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} + + /** + *The generated ID of the workspace that was just created.
+ */ + inline CreateWorkspaceResult& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} + + private: + + Aws::String m_arn; + + WorkspaceStatus m_status; + + Aws::String m_workspaceId; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/DeleteWorkspaceRequest.h b/aws-cpp-sdk-amp/include/aws/amp/model/DeleteWorkspaceRequest.h new file mode 100644 index 00000000000..80343a1dc04 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/DeleteWorkspaceRequest.h @@ -0,0 +1,146 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeRepresents the input of a DeleteWorkspace operation.
Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline DeleteWorkspaceRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline DeleteWorkspaceRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline DeleteWorkspaceRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + + /** + *The ID of the workspace to delete.
+ */ + inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } + + /** + *The ID of the workspace to delete.
+ */ + inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } + + /** + *The ID of the workspace to delete.
+ */ + inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } + + /** + *The ID of the workspace to delete.
+ */ + inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } + + /** + *The ID of the workspace to delete.
+ */ + inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } + + /** + *The ID of the workspace to delete.
+ */ + inline DeleteWorkspaceRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} + + /** + *The ID of the workspace to delete.
+ */ + inline DeleteWorkspaceRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} + + /** + *The ID of the workspace to delete.
+ */ + inline DeleteWorkspaceRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} + + private: + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet; + + Aws::String m_workspaceId; + bool m_workspaceIdHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/DescribeWorkspaceRequest.h b/aws-cpp-sdk-amp/include/aws/amp/model/DescribeWorkspaceRequest.h new file mode 100644 index 00000000000..29a42e379ba --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/DescribeWorkspaceRequest.h @@ -0,0 +1,87 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeRepresents the input of a DescribeWorkspace operation.
The ID of the workspace to describe.
+ */ + inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } + + /** + *The ID of the workspace to describe.
+ */ + inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } + + /** + *The ID of the workspace to describe.
+ */ + inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } + + /** + *The ID of the workspace to describe.
+ */ + inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } + + /** + *The ID of the workspace to describe.
+ */ + inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } + + /** + *The ID of the workspace to describe.
+ */ + inline DescribeWorkspaceRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} + + /** + *The ID of the workspace to describe.
+ */ + inline DescribeWorkspaceRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} + + /** + *The ID of the workspace to describe.
+ */ + inline DescribeWorkspaceRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} + + private: + + Aws::String m_workspaceId; + bool m_workspaceIdHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/DescribeWorkspaceResult.h b/aws-cpp-sdk-amp/include/aws/amp/model/DescribeWorkspaceResult.h new file mode 100644 index 00000000000..f27e389b30a --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/DescribeWorkspaceResult.h @@ -0,0 +1,73 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeRepresents the output of a DescribeWorkspace operation.
The properties of the selected workspace.
+ */ + inline const WorkspaceDescription& GetWorkspace() const{ return m_workspace; } + + /** + *The properties of the selected workspace.
+ */ + inline void SetWorkspace(const WorkspaceDescription& value) { m_workspace = value; } + + /** + *The properties of the selected workspace.
+ */ + inline void SetWorkspace(WorkspaceDescription&& value) { m_workspace = std::move(value); } + + /** + *The properties of the selected workspace.
+ */ + inline DescribeWorkspaceResult& WithWorkspace(const WorkspaceDescription& value) { SetWorkspace(value); return *this;} + + /** + *The properties of the selected workspace.
+ */ + inline DescribeWorkspaceResult& WithWorkspace(WorkspaceDescription&& value) { SetWorkspace(std::move(value)); return *this;} + + private: + + WorkspaceDescription m_workspace; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/InternalServerException.h b/aws-cpp-sdk-amp/include/aws/amp/model/InternalServerException.h new file mode 100644 index 00000000000..3f25d9b109c --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/InternalServerException.h @@ -0,0 +1,112 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeUnexpected error during processing of request.
Description of the error.
+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *Description of the error.
+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *Description of the error.
+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *Description of the error.
+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *Description of the error.
+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *Description of the error.
+ */ + inline InternalServerException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *Description of the error.
+ */ + inline InternalServerException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *Description of the error.
+ */ + inline InternalServerException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *Advice to clients on when the call can be safely retried.
+ */ + inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; } + + /** + *Advice to clients on when the call can be safely retried.
+ */ + inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; } + + /** + *Advice to clients on when the call can be safely retried.
+ */ + inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; } + + /** + *Advice to clients on when the call can be safely retried.
+ */ + inline InternalServerException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + int m_retryAfterSeconds; + bool m_retryAfterSecondsHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/ListWorkspacesRequest.h b/aws-cpp-sdk-amp/include/aws/amp/model/ListWorkspacesRequest.h new file mode 100644 index 00000000000..a1932d29da4 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/ListWorkspacesRequest.h @@ -0,0 +1,177 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeRepresents the input of a ListWorkspaces operation.
Optional filter for workspace alias. Only the workspaces with aliases that + * begin with this value will be returned.
+ */ + inline const Aws::String& GetAlias() const{ return m_alias; } + + /** + *Optional filter for workspace alias. Only the workspaces with aliases that + * begin with this value will be returned.
+ */ + inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } + + /** + *Optional filter for workspace alias. Only the workspaces with aliases that + * begin with this value will be returned.
+ */ + inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } + + /** + *Optional filter for workspace alias. Only the workspaces with aliases that + * begin with this value will be returned.
+ */ + inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } + + /** + *Optional filter for workspace alias. Only the workspaces with aliases that + * begin with this value will be returned.
+ */ + inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } + + /** + *Optional filter for workspace alias. Only the workspaces with aliases that + * begin with this value will be returned.
+ */ + inline ListWorkspacesRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} + + /** + *Optional filter for workspace alias. Only the workspaces with aliases that + * begin with this value will be returned.
+ */ + inline ListWorkspacesRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} + + /** + *Optional filter for workspace alias. Only the workspaces with aliases that + * begin with this value will be returned.
+ */ + inline ListWorkspacesRequest& WithAlias(const char* value) { SetAlias(value); return *this;} + + + /** + *Maximum results to return in response (default=100, maximum=1000).
+ */ + inline int GetMaxResults() const{ return m_maxResults; } + + /** + *Maximum results to return in response (default=100, maximum=1000).
+ */ + inline bool MaxResultsHasBeenSet() const { return m_maxResultsHasBeenSet; } + + /** + *Maximum results to return in response (default=100, maximum=1000).
+ */ + inline void SetMaxResults(int value) { m_maxResultsHasBeenSet = true; m_maxResults = value; } + + /** + *Maximum results to return in response (default=100, maximum=1000).
+ */ + inline ListWorkspacesRequest& WithMaxResults(int value) { SetMaxResults(value); return *this;} + + + /** + *Pagination token to request the next page in a paginated list. This token is + * obtained from the output of the previous ListWorkspaces request.
+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *Pagination token to request the next page in a paginated list. This token is + * obtained from the output of the previous ListWorkspaces request.
+ */ + inline bool NextTokenHasBeenSet() const { return m_nextTokenHasBeenSet; } + + /** + *Pagination token to request the next page in a paginated list. This token is + * obtained from the output of the previous ListWorkspaces request.
+ */ + inline void SetNextToken(const Aws::String& value) { m_nextTokenHasBeenSet = true; m_nextToken = value; } + + /** + *Pagination token to request the next page in a paginated list. This token is + * obtained from the output of the previous ListWorkspaces request.
+ */ + inline void SetNextToken(Aws::String&& value) { m_nextTokenHasBeenSet = true; m_nextToken = std::move(value); } + + /** + *Pagination token to request the next page in a paginated list. This token is + * obtained from the output of the previous ListWorkspaces request.
+ */ + inline void SetNextToken(const char* value) { m_nextTokenHasBeenSet = true; m_nextToken.assign(value); } + + /** + *Pagination token to request the next page in a paginated list. This token is + * obtained from the output of the previous ListWorkspaces request.
+ */ + inline ListWorkspacesRequest& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *Pagination token to request the next page in a paginated list. This token is + * obtained from the output of the previous ListWorkspaces request.
+ */ + inline ListWorkspacesRequest& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *Pagination token to request the next page in a paginated list. This token is + * obtained from the output of the previous ListWorkspaces request.
+ */ + inline ListWorkspacesRequest& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + private: + + Aws::String m_alias; + bool m_aliasHasBeenSet; + + int m_maxResults; + bool m_maxResultsHasBeenSet; + + Aws::String m_nextToken; + bool m_nextTokenHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/ListWorkspacesResult.h b/aws-cpp-sdk-amp/include/aws/amp/model/ListWorkspacesResult.h new file mode 100644 index 00000000000..b13df67f821 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/ListWorkspacesResult.h @@ -0,0 +1,130 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeRepresents the output of a ListWorkspaces operation.
Pagination token to use when requesting the next page in this list.
+ */ + inline const Aws::String& GetNextToken() const{ return m_nextToken; } + + /** + *Pagination token to use when requesting the next page in this list.
+ */ + inline void SetNextToken(const Aws::String& value) { m_nextToken = value; } + + /** + *Pagination token to use when requesting the next page in this list.
+ */ + inline void SetNextToken(Aws::String&& value) { m_nextToken = std::move(value); } + + /** + *Pagination token to use when requesting the next page in this list.
+ */ + inline void SetNextToken(const char* value) { m_nextToken.assign(value); } + + /** + *Pagination token to use when requesting the next page in this list.
+ */ + inline ListWorkspacesResult& WithNextToken(const Aws::String& value) { SetNextToken(value); return *this;} + + /** + *Pagination token to use when requesting the next page in this list.
+ */ + inline ListWorkspacesResult& WithNextToken(Aws::String&& value) { SetNextToken(std::move(value)); return *this;} + + /** + *Pagination token to use when requesting the next page in this list.
+ */ + inline ListWorkspacesResult& WithNextToken(const char* value) { SetNextToken(value); return *this;} + + + /** + *The list of existing workspaces, including those undergoing creation or + * deletion.
+ */ + inline const Aws::VectorThe list of existing workspaces, including those undergoing creation or + * deletion.
+ */ + inline void SetWorkspaces(const Aws::VectorThe list of existing workspaces, including those undergoing creation or + * deletion.
+ */ + inline void SetWorkspaces(Aws::VectorThe list of existing workspaces, including those undergoing creation or + * deletion.
+ */ + inline ListWorkspacesResult& WithWorkspaces(const Aws::VectorThe list of existing workspaces, including those undergoing creation or + * deletion.
+ */ + inline ListWorkspacesResult& WithWorkspaces(Aws::VectorThe list of existing workspaces, including those undergoing creation or + * deletion.
+ */ + inline ListWorkspacesResult& AddWorkspaces(const WorkspaceSummary& value) { m_workspaces.push_back(value); return *this; } + + /** + *The list of existing workspaces, including those undergoing creation or + * deletion.
+ */ + inline ListWorkspacesResult& AddWorkspaces(WorkspaceSummary&& value) { m_workspaces.push_back(std::move(value)); return *this; } + + private: + + Aws::String m_nextToken; + + Aws::VectorRequest references a resource which does not exist.
Description of the error.
+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *Description of the error.
+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *Description of the error.
+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *Description of the error.
+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *Description of the error.
+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *Description of the error.
+ */ + inline ResourceNotFoundException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *Description of the error.
+ */ + inline ResourceNotFoundException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *Description of the error.
+ */ + inline ResourceNotFoundException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *Identifier of the resource affected.
+ */ + inline const Aws::String& GetResourceId() const{ return m_resourceId; } + + /** + *Identifier of the resource affected.
+ */ + inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } + + /** + *Identifier of the resource affected.
+ */ + inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } + + /** + *Identifier of the resource affected.
+ */ + inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } + + /** + *Identifier of the resource affected.
+ */ + inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } + + /** + *Identifier of the resource affected.
+ */ + inline ResourceNotFoundException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} + + /** + *Identifier of the resource affected.
+ */ + inline ResourceNotFoundException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} + + /** + *Identifier of the resource affected.
+ */ + inline ResourceNotFoundException& WithResourceId(const char* value) { SetResourceId(value); return *this;} + + + /** + *Type of the resource affected.
+ */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *Type of the resource affected.
+ */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *Type of the resource affected.
+ */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *Type of the resource affected.
+ */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *Type of the resource affected.
+ */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *Type of the resource affected.
+ */ + inline ResourceNotFoundException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *Type of the resource affected.
+ */ + inline ResourceNotFoundException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *Type of the resource affected.
+ */ + inline ResourceNotFoundException& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_resourceId; + bool m_resourceIdHasBeenSet; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/ServiceQuotaExceededException.h b/aws-cpp-sdk-amp/include/aws/amp/model/ServiceQuotaExceededException.h new file mode 100644 index 00000000000..839fe31d46a --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/ServiceQuotaExceededException.h @@ -0,0 +1,265 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeRequest would cause a service quota to be exceeded.
Description of the error.
+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *Description of the error.
+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *Description of the error.
+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *Description of the error.
+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *Description of the error.
+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *Description of the error.
+ */ + inline ServiceQuotaExceededException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *Description of the error.
+ */ + inline ServiceQuotaExceededException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *Description of the error.
+ */ + inline ServiceQuotaExceededException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *Service Quotas requirement to identify originating quota.
+ */ + inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; } + + /** + *Service Quotas requirement to identify originating quota.
+ */ + inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; } + + /** + *Service Quotas requirement to identify originating quota.
+ */ + inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; } + + /** + *Service Quotas requirement to identify originating quota.
+ */ + inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); } + + /** + *Service Quotas requirement to identify originating quota.
+ */ + inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); } + + /** + *Service Quotas requirement to identify originating quota.
+ */ + inline ServiceQuotaExceededException& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;} + + /** + *Service Quotas requirement to identify originating quota.
+ */ + inline ServiceQuotaExceededException& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;} + + /** + *Service Quotas requirement to identify originating quota.
+ */ + inline ServiceQuotaExceededException& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;} + + + /** + *Identifier of the resource affected.
+ */ + inline const Aws::String& GetResourceId() const{ return m_resourceId; } + + /** + *Identifier of the resource affected.
+ */ + inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; } + + /** + *Identifier of the resource affected.
+ */ + inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; } + + /** + *Identifier of the resource affected.
+ */ + inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); } + + /** + *Identifier of the resource affected.
+ */ + inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); } + + /** + *Identifier of the resource affected.
+ */ + inline ServiceQuotaExceededException& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;} + + /** + *Identifier of the resource affected.
+ */ + inline ServiceQuotaExceededException& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;} + + /** + *Identifier of the resource affected.
+ */ + inline ServiceQuotaExceededException& WithResourceId(const char* value) { SetResourceId(value); return *this;} + + + /** + *Type of the resource affected.
+ */ + inline const Aws::String& GetResourceType() const{ return m_resourceType; } + + /** + *Type of the resource affected.
+ */ + inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } + + /** + *Type of the resource affected.
+ */ + inline void SetResourceType(const Aws::String& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } + + /** + *Type of the resource affected.
+ */ + inline void SetResourceType(Aws::String&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } + + /** + *Type of the resource affected.
+ */ + inline void SetResourceType(const char* value) { m_resourceTypeHasBeenSet = true; m_resourceType.assign(value); } + + /** + *Type of the resource affected.
+ */ + inline ServiceQuotaExceededException& WithResourceType(const Aws::String& value) { SetResourceType(value); return *this;} + + /** + *Type of the resource affected.
+ */ + inline ServiceQuotaExceededException& WithResourceType(Aws::String&& value) { SetResourceType(std::move(value)); return *this;} + + /** + *Type of the resource affected.
+ */ + inline ServiceQuotaExceededException& WithResourceType(const char* value) { SetResourceType(value); return *this;} + + + /** + *Service Quotas requirement to identify originating service.
+ */ + inline const Aws::String& GetServiceCode() const{ return m_serviceCode; } + + /** + *Service Quotas requirement to identify originating service.
+ */ + inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; } + + /** + *Service Quotas requirement to identify originating service.
+ */ + inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; } + + /** + *Service Quotas requirement to identify originating service.
+ */ + inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); } + + /** + *Service Quotas requirement to identify originating service.
+ */ + inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); } + + /** + *Service Quotas requirement to identify originating service.
+ */ + inline ServiceQuotaExceededException& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;} + + /** + *Service Quotas requirement to identify originating service.
+ */ + inline ServiceQuotaExceededException& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;} + + /** + *Service Quotas requirement to identify originating service.
+ */ + inline ServiceQuotaExceededException& WithServiceCode(const char* value) { SetServiceCode(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_quotaCode; + bool m_quotaCodeHasBeenSet; + + Aws::String m_resourceId; + bool m_resourceIdHasBeenSet; + + Aws::String m_resourceType; + bool m_resourceTypeHasBeenSet; + + Aws::String m_serviceCode; + bool m_serviceCodeHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/ThrottlingException.h b/aws-cpp-sdk-amp/include/aws/amp/model/ThrottlingException.h new file mode 100644 index 00000000000..9b48816b1a2 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/ThrottlingException.h @@ -0,0 +1,200 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeRequest was denied due to request throttling.
Description of the error.
+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *Description of the error.
+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *Description of the error.
+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *Description of the error.
+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *Description of the error.
+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *Description of the error.
+ */ + inline ThrottlingException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *Description of the error.
+ */ + inline ThrottlingException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *Description of the error.
+ */ + inline ThrottlingException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *Service Quotas requirement to identify originating quota.
+ */ + inline const Aws::String& GetQuotaCode() const{ return m_quotaCode; } + + /** + *Service Quotas requirement to identify originating quota.
+ */ + inline bool QuotaCodeHasBeenSet() const { return m_quotaCodeHasBeenSet; } + + /** + *Service Quotas requirement to identify originating quota.
+ */ + inline void SetQuotaCode(const Aws::String& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = value; } + + /** + *Service Quotas requirement to identify originating quota.
+ */ + inline void SetQuotaCode(Aws::String&& value) { m_quotaCodeHasBeenSet = true; m_quotaCode = std::move(value); } + + /** + *Service Quotas requirement to identify originating quota.
+ */ + inline void SetQuotaCode(const char* value) { m_quotaCodeHasBeenSet = true; m_quotaCode.assign(value); } + + /** + *Service Quotas requirement to identify originating quota.
+ */ + inline ThrottlingException& WithQuotaCode(const Aws::String& value) { SetQuotaCode(value); return *this;} + + /** + *Service Quotas requirement to identify originating quota.
+ */ + inline ThrottlingException& WithQuotaCode(Aws::String&& value) { SetQuotaCode(std::move(value)); return *this;} + + /** + *Service Quotas requirement to identify originating quota.
+ */ + inline ThrottlingException& WithQuotaCode(const char* value) { SetQuotaCode(value); return *this;} + + + /** + *Advice to clients on when the call can be safely retried.
+ */ + inline int GetRetryAfterSeconds() const{ return m_retryAfterSeconds; } + + /** + *Advice to clients on when the call can be safely retried.
+ */ + inline bool RetryAfterSecondsHasBeenSet() const { return m_retryAfterSecondsHasBeenSet; } + + /** + *Advice to clients on when the call can be safely retried.
+ */ + inline void SetRetryAfterSeconds(int value) { m_retryAfterSecondsHasBeenSet = true; m_retryAfterSeconds = value; } + + /** + *Advice to clients on when the call can be safely retried.
+ */ + inline ThrottlingException& WithRetryAfterSeconds(int value) { SetRetryAfterSeconds(value); return *this;} + + + /** + *Service Quotas requirement to identify originating service.
+ */ + inline const Aws::String& GetServiceCode() const{ return m_serviceCode; } + + /** + *Service Quotas requirement to identify originating service.
+ */ + inline bool ServiceCodeHasBeenSet() const { return m_serviceCodeHasBeenSet; } + + /** + *Service Quotas requirement to identify originating service.
+ */ + inline void SetServiceCode(const Aws::String& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = value; } + + /** + *Service Quotas requirement to identify originating service.
+ */ + inline void SetServiceCode(Aws::String&& value) { m_serviceCodeHasBeenSet = true; m_serviceCode = std::move(value); } + + /** + *Service Quotas requirement to identify originating service.
+ */ + inline void SetServiceCode(const char* value) { m_serviceCodeHasBeenSet = true; m_serviceCode.assign(value); } + + /** + *Service Quotas requirement to identify originating service.
+ */ + inline ThrottlingException& WithServiceCode(const Aws::String& value) { SetServiceCode(value); return *this;} + + /** + *Service Quotas requirement to identify originating service.
+ */ + inline ThrottlingException& WithServiceCode(Aws::String&& value) { SetServiceCode(std::move(value)); return *this;} + + /** + *Service Quotas requirement to identify originating service.
+ */ + inline ThrottlingException& WithServiceCode(const char* value) { SetServiceCode(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_quotaCode; + bool m_quotaCodeHasBeenSet; + + int m_retryAfterSeconds; + bool m_retryAfterSecondsHasBeenSet; + + Aws::String m_serviceCode; + bool m_serviceCodeHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/UpdateWorkspaceAliasRequest.h b/aws-cpp-sdk-amp/include/aws/amp/model/UpdateWorkspaceAliasRequest.h new file mode 100644 index 00000000000..b71450452e9 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/UpdateWorkspaceAliasRequest.h @@ -0,0 +1,184 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeRepresents the input of an UpdateWorkspaceAlias operation.
The new alias of the workspace.
+ */ + inline const Aws::String& GetAlias() const{ return m_alias; } + + /** + *The new alias of the workspace.
+ */ + inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } + + /** + *The new alias of the workspace.
+ */ + inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } + + /** + *The new alias of the workspace.
+ */ + inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } + + /** + *The new alias of the workspace.
+ */ + inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } + + /** + *The new alias of the workspace.
+ */ + inline UpdateWorkspaceAliasRequest& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} + + /** + *The new alias of the workspace.
+ */ + inline UpdateWorkspaceAliasRequest& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} + + /** + *The new alias of the workspace.
+ */ + inline UpdateWorkspaceAliasRequest& WithAlias(const char* value) { SetAlias(value); return *this;} + + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline const Aws::String& GetClientToken() const{ return m_clientToken; } + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline UpdateWorkspaceAliasRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline UpdateWorkspaceAliasRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} + + /** + *Optional, unique, case-sensitive, user-provided identifier to ensure the + * idempotency of the request.
+ */ + inline UpdateWorkspaceAliasRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} + + + /** + *The ID of the workspace being updated.
+ */ + inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } + + /** + *The ID of the workspace being updated.
+ */ + inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } + + /** + *The ID of the workspace being updated.
+ */ + inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } + + /** + *The ID of the workspace being updated.
+ */ + inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } + + /** + *The ID of the workspace being updated.
+ */ + inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } + + /** + *The ID of the workspace being updated.
+ */ + inline UpdateWorkspaceAliasRequest& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} + + /** + *The ID of the workspace being updated.
+ */ + inline UpdateWorkspaceAliasRequest& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} + + /** + *The ID of the workspace being updated.
+ */ + inline UpdateWorkspaceAliasRequest& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} + + private: + + Aws::String m_alias; + bool m_aliasHasBeenSet; + + Aws::String m_clientToken; + bool m_clientTokenHasBeenSet; + + Aws::String m_workspaceId; + bool m_workspaceIdHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/ValidationException.h b/aws-cpp-sdk-amp/include/aws/amp/model/ValidationException.h new file mode 100644 index 00000000000..f80219cacf2 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/ValidationException.h @@ -0,0 +1,178 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeThe input fails to satisfy the constraints specified by an AWS + * service.
The field that caused the error, if applicable. If more than one field caused + * the error, pick one and elaborate in the message.
+ */ + inline const Aws::VectorThe field that caused the error, if applicable. If more than one field caused + * the error, pick one and elaborate in the message.
+ */ + inline bool FieldListHasBeenSet() const { return m_fieldListHasBeenSet; } + + /** + *The field that caused the error, if applicable. If more than one field caused + * the error, pick one and elaborate in the message.
+ */ + inline void SetFieldList(const Aws::VectorThe field that caused the error, if applicable. If more than one field caused + * the error, pick one and elaborate in the message.
+ */ + inline void SetFieldList(Aws::VectorThe field that caused the error, if applicable. If more than one field caused + * the error, pick one and elaborate in the message.
+ */ + inline ValidationException& WithFieldList(const Aws::VectorThe field that caused the error, if applicable. If more than one field caused + * the error, pick one and elaborate in the message.
+ */ + inline ValidationException& WithFieldList(Aws::VectorThe field that caused the error, if applicable. If more than one field caused + * the error, pick one and elaborate in the message.
+ */ + inline ValidationException& AddFieldList(const ValidationExceptionField& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(value); return *this; } + + /** + *The field that caused the error, if applicable. If more than one field caused + * the error, pick one and elaborate in the message.
+ */ + inline ValidationException& AddFieldList(ValidationExceptionField&& value) { m_fieldListHasBeenSet = true; m_fieldList.push_back(std::move(value)); return *this; } + + + /** + *Description of the error.
+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *Description of the error.
+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *Description of the error.
+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *Description of the error.
+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *Description of the error.
+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *Description of the error.
+ */ + inline ValidationException& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *Description of the error.
+ */ + inline ValidationException& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *Description of the error.
+ */ + inline ValidationException& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *Reason the request failed validation.
+ */ + inline const ValidationExceptionReason& GetReason() const{ return m_reason; } + + /** + *Reason the request failed validation.
+ */ + inline bool ReasonHasBeenSet() const { return m_reasonHasBeenSet; } + + /** + *Reason the request failed validation.
+ */ + inline void SetReason(const ValidationExceptionReason& value) { m_reasonHasBeenSet = true; m_reason = value; } + + /** + *Reason the request failed validation.
+ */ + inline void SetReason(ValidationExceptionReason&& value) { m_reasonHasBeenSet = true; m_reason = std::move(value); } + + /** + *Reason the request failed validation.
+ */ + inline ValidationException& WithReason(const ValidationExceptionReason& value) { SetReason(value); return *this;} + + /** + *Reason the request failed validation.
+ */ + inline ValidationException& WithReason(ValidationExceptionReason&& value) { SetReason(std::move(value)); return *this;} + + private: + + Aws::VectorStores information about a field passed inside a request that resulted in an + * exception.
Message describing why the field failed validation.
+ */ + inline const Aws::String& GetMessage() const{ return m_message; } + + /** + *Message describing why the field failed validation.
+ */ + inline bool MessageHasBeenSet() const { return m_messageHasBeenSet; } + + /** + *Message describing why the field failed validation.
+ */ + inline void SetMessage(const Aws::String& value) { m_messageHasBeenSet = true; m_message = value; } + + /** + *Message describing why the field failed validation.
+ */ + inline void SetMessage(Aws::String&& value) { m_messageHasBeenSet = true; m_message = std::move(value); } + + /** + *Message describing why the field failed validation.
+ */ + inline void SetMessage(const char* value) { m_messageHasBeenSet = true; m_message.assign(value); } + + /** + *Message describing why the field failed validation.
+ */ + inline ValidationExceptionField& WithMessage(const Aws::String& value) { SetMessage(value); return *this;} + + /** + *Message describing why the field failed validation.
+ */ + inline ValidationExceptionField& WithMessage(Aws::String&& value) { SetMessage(std::move(value)); return *this;} + + /** + *Message describing why the field failed validation.
+ */ + inline ValidationExceptionField& WithMessage(const char* value) { SetMessage(value); return *this;} + + + /** + *The field name.
+ */ + inline const Aws::String& GetName() const{ return m_name; } + + /** + *The field name.
+ */ + inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } + + /** + *The field name.
+ */ + inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } + + /** + *The field name.
+ */ + inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } + + /** + *The field name.
+ */ + inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } + + /** + *The field name.
+ */ + inline ValidationExceptionField& WithName(const Aws::String& value) { SetName(value); return *this;} + + /** + *The field name.
+ */ + inline ValidationExceptionField& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} + + /** + *The field name.
+ */ + inline ValidationExceptionField& WithName(const char* value) { SetName(value); return *this;} + + private: + + Aws::String m_message; + bool m_messageHasBeenSet; + + Aws::String m_name; + bool m_nameHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/ValidationExceptionReason.h b/aws-cpp-sdk-amp/include/aws/amp/model/ValidationExceptionReason.h new file mode 100644 index 00000000000..fd8e72dcd77 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/ValidationExceptionReason.h @@ -0,0 +1,33 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeRepresents the properties of a workspace.
Alias of this workspace.
+ */ + inline const Aws::String& GetAlias() const{ return m_alias; } + + /** + *Alias of this workspace.
+ */ + inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } + + /** + *Alias of this workspace.
+ */ + inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } + + /** + *Alias of this workspace.
+ */ + inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } + + /** + *Alias of this workspace.
+ */ + inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } + + /** + *Alias of this workspace.
+ */ + inline WorkspaceDescription& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} + + /** + *Alias of this workspace.
+ */ + inline WorkspaceDescription& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} + + /** + *Alias of this workspace.
+ */ + inline WorkspaceDescription& WithAlias(const char* value) { SetAlias(value); return *this;} + + + /** + *The Amazon Resource Name (ARN) of this workspace.
+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *The Amazon Resource Name (ARN) of this workspace.
+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *The Amazon Resource Name (ARN) of this workspace.
+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *The Amazon Resource Name (ARN) of this workspace.
+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *The Amazon Resource Name (ARN) of this workspace.
+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *The Amazon Resource Name (ARN) of this workspace.
+ */ + inline WorkspaceDescription& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *The Amazon Resource Name (ARN) of this workspace.
+ */ + inline WorkspaceDescription& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *The Amazon Resource Name (ARN) of this workspace.
+ */ + inline WorkspaceDescription& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *The time when the workspace was created.
+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + + /** + *The time when the workspace was created.
+ */ + inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } + + /** + *The time when the workspace was created.
+ */ + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } + + /** + *The time when the workspace was created.
+ */ + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } + + /** + *The time when the workspace was created.
+ */ + inline WorkspaceDescription& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + + /** + *The time when the workspace was created.
+ */ + inline WorkspaceDescription& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + + + /** + *Prometheus endpoint URI.
+ */ + inline const Aws::String& GetPrometheusEndpoint() const{ return m_prometheusEndpoint; } + + /** + *Prometheus endpoint URI.
+ */ + inline bool PrometheusEndpointHasBeenSet() const { return m_prometheusEndpointHasBeenSet; } + + /** + *Prometheus endpoint URI.
+ */ + inline void SetPrometheusEndpoint(const Aws::String& value) { m_prometheusEndpointHasBeenSet = true; m_prometheusEndpoint = value; } + + /** + *Prometheus endpoint URI.
+ */ + inline void SetPrometheusEndpoint(Aws::String&& value) { m_prometheusEndpointHasBeenSet = true; m_prometheusEndpoint = std::move(value); } + + /** + *Prometheus endpoint URI.
+ */ + inline void SetPrometheusEndpoint(const char* value) { m_prometheusEndpointHasBeenSet = true; m_prometheusEndpoint.assign(value); } + + /** + *Prometheus endpoint URI.
+ */ + inline WorkspaceDescription& WithPrometheusEndpoint(const Aws::String& value) { SetPrometheusEndpoint(value); return *this;} + + /** + *Prometheus endpoint URI.
+ */ + inline WorkspaceDescription& WithPrometheusEndpoint(Aws::String&& value) { SetPrometheusEndpoint(std::move(value)); return *this;} + + /** + *Prometheus endpoint URI.
+ */ + inline WorkspaceDescription& WithPrometheusEndpoint(const char* value) { SetPrometheusEndpoint(value); return *this;} + + + /** + *The status of this workspace.
+ */ + inline const WorkspaceStatus& GetStatus() const{ return m_status; } + + /** + *The status of this workspace.
+ */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *The status of this workspace.
+ */ + inline void SetStatus(const WorkspaceStatus& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *The status of this workspace.
+ */ + inline void SetStatus(WorkspaceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *The status of this workspace.
+ */ + inline WorkspaceDescription& WithStatus(const WorkspaceStatus& value) { SetStatus(value); return *this;} + + /** + *The status of this workspace.
+ */ + inline WorkspaceDescription& WithStatus(WorkspaceStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *Unique string identifying this workspace.
+ */ + inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } + + /** + *Unique string identifying this workspace.
+ */ + inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } + + /** + *Unique string identifying this workspace.
+ */ + inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } + + /** + *Unique string identifying this workspace.
+ */ + inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } + + /** + *Unique string identifying this workspace.
+ */ + inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } + + /** + *Unique string identifying this workspace.
+ */ + inline WorkspaceDescription& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} + + /** + *Unique string identifying this workspace.
+ */ + inline WorkspaceDescription& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} + + /** + *Unique string identifying this workspace.
+ */ + inline WorkspaceDescription& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} + + private: + + Aws::String m_alias; + bool m_aliasHasBeenSet; + + Aws::String m_arn; + bool m_arnHasBeenSet; + + Aws::Utils::DateTime m_createdAt; + bool m_createdAtHasBeenSet; + + Aws::String m_prometheusEndpoint; + bool m_prometheusEndpointHasBeenSet; + + WorkspaceStatus m_status; + bool m_statusHasBeenSet; + + Aws::String m_workspaceId; + bool m_workspaceIdHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceStatus.h b/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceStatus.h new file mode 100644 index 00000000000..46277508301 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceStatus.h @@ -0,0 +1,78 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeRepresents the status of a workspace.
Status code of this workspace.
+ */ + inline const WorkspaceStatusCode& GetStatusCode() const{ return m_statusCode; } + + /** + *Status code of this workspace.
+ */ + inline bool StatusCodeHasBeenSet() const { return m_statusCodeHasBeenSet; } + + /** + *Status code of this workspace.
+ */ + inline void SetStatusCode(const WorkspaceStatusCode& value) { m_statusCodeHasBeenSet = true; m_statusCode = value; } + + /** + *Status code of this workspace.
+ */ + inline void SetStatusCode(WorkspaceStatusCode&& value) { m_statusCodeHasBeenSet = true; m_statusCode = std::move(value); } + + /** + *Status code of this workspace.
+ */ + inline WorkspaceStatus& WithStatusCode(const WorkspaceStatusCode& value) { SetStatusCode(value); return *this;} + + /** + *Status code of this workspace.
+ */ + inline WorkspaceStatus& WithStatusCode(WorkspaceStatusCode&& value) { SetStatusCode(std::move(value)); return *this;} + + private: + + WorkspaceStatusCode m_statusCode; + bool m_statusCodeHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceStatusCode.h b/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceStatusCode.h new file mode 100644 index 00000000000..2cdbbf250c1 --- /dev/null +++ b/aws-cpp-sdk-amp/include/aws/amp/model/WorkspaceStatusCode.h @@ -0,0 +1,34 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#pragma once +#includeRepresents a summary of the properties of a workspace.
Alias of this workspace.
+ */ + inline const Aws::String& GetAlias() const{ return m_alias; } + + /** + *Alias of this workspace.
+ */ + inline bool AliasHasBeenSet() const { return m_aliasHasBeenSet; } + + /** + *Alias of this workspace.
+ */ + inline void SetAlias(const Aws::String& value) { m_aliasHasBeenSet = true; m_alias = value; } + + /** + *Alias of this workspace.
+ */ + inline void SetAlias(Aws::String&& value) { m_aliasHasBeenSet = true; m_alias = std::move(value); } + + /** + *Alias of this workspace.
+ */ + inline void SetAlias(const char* value) { m_aliasHasBeenSet = true; m_alias.assign(value); } + + /** + *Alias of this workspace.
+ */ + inline WorkspaceSummary& WithAlias(const Aws::String& value) { SetAlias(value); return *this;} + + /** + *Alias of this workspace.
+ */ + inline WorkspaceSummary& WithAlias(Aws::String&& value) { SetAlias(std::move(value)); return *this;} + + /** + *Alias of this workspace.
+ */ + inline WorkspaceSummary& WithAlias(const char* value) { SetAlias(value); return *this;} + + + /** + *The AmazonResourceName of this workspace.
+ */ + inline const Aws::String& GetArn() const{ return m_arn; } + + /** + *The AmazonResourceName of this workspace.
+ */ + inline bool ArnHasBeenSet() const { return m_arnHasBeenSet; } + + /** + *The AmazonResourceName of this workspace.
+ */ + inline void SetArn(const Aws::String& value) { m_arnHasBeenSet = true; m_arn = value; } + + /** + *The AmazonResourceName of this workspace.
+ */ + inline void SetArn(Aws::String&& value) { m_arnHasBeenSet = true; m_arn = std::move(value); } + + /** + *The AmazonResourceName of this workspace.
+ */ + inline void SetArn(const char* value) { m_arnHasBeenSet = true; m_arn.assign(value); } + + /** + *The AmazonResourceName of this workspace.
+ */ + inline WorkspaceSummary& WithArn(const Aws::String& value) { SetArn(value); return *this;} + + /** + *The AmazonResourceName of this workspace.
+ */ + inline WorkspaceSummary& WithArn(Aws::String&& value) { SetArn(std::move(value)); return *this;} + + /** + *The AmazonResourceName of this workspace.
+ */ + inline WorkspaceSummary& WithArn(const char* value) { SetArn(value); return *this;} + + + /** + *The time when the workspace was created.
+ */ + inline const Aws::Utils::DateTime& GetCreatedAt() const{ return m_createdAt; } + + /** + *The time when the workspace was created.
+ */ + inline bool CreatedAtHasBeenSet() const { return m_createdAtHasBeenSet; } + + /** + *The time when the workspace was created.
+ */ + inline void SetCreatedAt(const Aws::Utils::DateTime& value) { m_createdAtHasBeenSet = true; m_createdAt = value; } + + /** + *The time when the workspace was created.
+ */ + inline void SetCreatedAt(Aws::Utils::DateTime&& value) { m_createdAtHasBeenSet = true; m_createdAt = std::move(value); } + + /** + *The time when the workspace was created.
+ */ + inline WorkspaceSummary& WithCreatedAt(const Aws::Utils::DateTime& value) { SetCreatedAt(value); return *this;} + + /** + *The time when the workspace was created.
+ */ + inline WorkspaceSummary& WithCreatedAt(Aws::Utils::DateTime&& value) { SetCreatedAt(std::move(value)); return *this;} + + + /** + *The status of this workspace.
+ */ + inline const WorkspaceStatus& GetStatus() const{ return m_status; } + + /** + *The status of this workspace.
+ */ + inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } + + /** + *The status of this workspace.
+ */ + inline void SetStatus(const WorkspaceStatus& value) { m_statusHasBeenSet = true; m_status = value; } + + /** + *The status of this workspace.
+ */ + inline void SetStatus(WorkspaceStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } + + /** + *The status of this workspace.
+ */ + inline WorkspaceSummary& WithStatus(const WorkspaceStatus& value) { SetStatus(value); return *this;} + + /** + *The status of this workspace.
+ */ + inline WorkspaceSummary& WithStatus(WorkspaceStatus&& value) { SetStatus(std::move(value)); return *this;} + + + /** + *Unique string identifying this workspace.
+ */ + inline const Aws::String& GetWorkspaceId() const{ return m_workspaceId; } + + /** + *Unique string identifying this workspace.
+ */ + inline bool WorkspaceIdHasBeenSet() const { return m_workspaceIdHasBeenSet; } + + /** + *Unique string identifying this workspace.
+ */ + inline void SetWorkspaceId(const Aws::String& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = value; } + + /** + *Unique string identifying this workspace.
+ */ + inline void SetWorkspaceId(Aws::String&& value) { m_workspaceIdHasBeenSet = true; m_workspaceId = std::move(value); } + + /** + *Unique string identifying this workspace.
+ */ + inline void SetWorkspaceId(const char* value) { m_workspaceIdHasBeenSet = true; m_workspaceId.assign(value); } + + /** + *Unique string identifying this workspace.
+ */ + inline WorkspaceSummary& WithWorkspaceId(const Aws::String& value) { SetWorkspaceId(value); return *this;} + + /** + *Unique string identifying this workspace.
+ */ + inline WorkspaceSummary& WithWorkspaceId(Aws::String&& value) { SetWorkspaceId(std::move(value)); return *this;} + + /** + *Unique string identifying this workspace.
+ */ + inline WorkspaceSummary& WithWorkspaceId(const char* value) { SetWorkspaceId(value); return *this;} + + private: + + Aws::String m_alias; + bool m_aliasHasBeenSet; + + Aws::String m_arn; + bool m_arnHasBeenSet; + + Aws::Utils::DateTime m_createdAt; + bool m_createdAtHasBeenSet; + + WorkspaceStatus m_status; + bool m_statusHasBeenSet; + + Aws::String m_workspaceId; + bool m_workspaceIdHasBeenSet; + }; + +} // namespace Model +} // namespace PrometheusService +} // namespace Aws diff --git a/aws-cpp-sdk-amp/source/PrometheusServiceClient.cpp b/aws-cpp-sdk-amp/source/PrometheusServiceClient.cpp new file mode 100644 index 00000000000..f5227615e8c --- /dev/null +++ b/aws-cpp-sdk-amp/source/PrometheusServiceClient.cpp @@ -0,0 +1,255 @@ +/** + * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. + * SPDX-License-Identifier: Apache-2.0. + */ + +#include