/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the API operation.See Also:
AWS
* API Reference
The ID of the operation.
*/ inline const Aws::String& GetId() const{ return m_id; } /** *The ID of the operation.
*/ inline bool IdHasBeenSet() const { return m_idHasBeenSet; } /** *The ID of the operation.
*/ inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; } /** *The ID of the operation.
*/ inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); } /** *The ID of the operation.
*/ inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); } /** *The ID of the operation.
*/ inline Operation& WithId(const Aws::String& value) { SetId(value); return *this;} /** *The ID of the operation.
*/ inline Operation& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;} /** *The ID of the operation.
*/ inline Operation& WithId(const char* value) { SetId(value); return *this;} /** *The resource name.
*/ inline const Aws::String& GetResourceName() const{ return m_resourceName; } /** *The resource name.
*/ inline bool ResourceNameHasBeenSet() const { return m_resourceNameHasBeenSet; } /** *The resource name.
*/ inline void SetResourceName(const Aws::String& value) { m_resourceNameHasBeenSet = true; m_resourceName = value; } /** *The resource name.
*/ inline void SetResourceName(Aws::String&& value) { m_resourceNameHasBeenSet = true; m_resourceName = std::move(value); } /** *The resource name.
*/ inline void SetResourceName(const char* value) { m_resourceNameHasBeenSet = true; m_resourceName.assign(value); } /** *The resource name.
*/ inline Operation& WithResourceName(const Aws::String& value) { SetResourceName(value); return *this;} /** *The resource name.
*/ inline Operation& WithResourceName(Aws::String&& value) { SetResourceName(std::move(value)); return *this;} /** *The resource name.
*/ inline Operation& WithResourceName(const char* value) { SetResourceName(value); return *this;} /** *The resource type.
*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *The resource type.
*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *The resource type.
*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *The resource type.
*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *The resource type.
*/ inline Operation& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *The resource type.
*/ inline Operation& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *The timestamp when the operation was initialized (e.g.,
* 1479816991.349
).
The timestamp when the operation was initialized (e.g.,
* 1479816991.349
).
The timestamp when the operation was initialized (e.g.,
* 1479816991.349
).
The timestamp when the operation was initialized (e.g.,
* 1479816991.349
).
The timestamp when the operation was initialized (e.g.,
* 1479816991.349
).
The timestamp when the operation was initialized (e.g.,
* 1479816991.349
).
The Amazon Web Services Region and Availability Zone.
*/ inline const ResourceLocation& GetLocation() const{ return m_location; } /** *The Amazon Web Services Region and Availability Zone.
*/ inline bool LocationHasBeenSet() const { return m_locationHasBeenSet; } /** *The Amazon Web Services Region and Availability Zone.
*/ inline void SetLocation(const ResourceLocation& value) { m_locationHasBeenSet = true; m_location = value; } /** *The Amazon Web Services Region and Availability Zone.
*/ inline void SetLocation(ResourceLocation&& value) { m_locationHasBeenSet = true; m_location = std::move(value); } /** *The Amazon Web Services Region and Availability Zone.
*/ inline Operation& WithLocation(const ResourceLocation& value) { SetLocation(value); return *this;} /** *The Amazon Web Services Region and Availability Zone.
*/ inline Operation& WithLocation(ResourceLocation&& value) { SetLocation(std::move(value)); return *this;} /** *A Boolean value indicating whether the operation is terminal.
*/ inline bool GetIsTerminal() const{ return m_isTerminal; } /** *A Boolean value indicating whether the operation is terminal.
*/ inline bool IsTerminalHasBeenSet() const { return m_isTerminalHasBeenSet; } /** *A Boolean value indicating whether the operation is terminal.
*/ inline void SetIsTerminal(bool value) { m_isTerminalHasBeenSet = true; m_isTerminal = value; } /** *A Boolean value indicating whether the operation is terminal.
*/ inline Operation& WithIsTerminal(bool value) { SetIsTerminal(value); return *this;} /** *Details about the operation (e.g., Debian-1GB-Ohio-1
).
Details about the operation (e.g., Debian-1GB-Ohio-1
).
Details about the operation (e.g., Debian-1GB-Ohio-1
).
Details about the operation (e.g., Debian-1GB-Ohio-1
).
Details about the operation (e.g., Debian-1GB-Ohio-1
).
Details about the operation (e.g., Debian-1GB-Ohio-1
).
Details about the operation (e.g., Debian-1GB-Ohio-1
).
Details about the operation (e.g., Debian-1GB-Ohio-1
).
The type of operation.
*/ inline const OperationType& GetOperationType() const{ return m_operationType; } /** *The type of operation.
*/ inline bool OperationTypeHasBeenSet() const { return m_operationTypeHasBeenSet; } /** *The type of operation.
*/ inline void SetOperationType(const OperationType& value) { m_operationTypeHasBeenSet = true; m_operationType = value; } /** *The type of operation.
*/ inline void SetOperationType(OperationType&& value) { m_operationTypeHasBeenSet = true; m_operationType = std::move(value); } /** *The type of operation.
*/ inline Operation& WithOperationType(const OperationType& value) { SetOperationType(value); return *this;} /** *The type of operation.
*/ inline Operation& WithOperationType(OperationType&& value) { SetOperationType(std::move(value)); return *this;} /** *The status of the operation.
*/ inline const OperationStatus& GetStatus() const{ return m_status; } /** *The status of the operation.
*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *The status of the operation.
*/ inline void SetStatus(const OperationStatus& value) { m_statusHasBeenSet = true; m_status = value; } /** *The status of the operation.
*/ inline void SetStatus(OperationStatus&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *The status of the operation.
*/ inline Operation& WithStatus(const OperationStatus& value) { SetStatus(value); return *this;} /** *The status of the operation.
*/ inline Operation& WithStatus(OperationStatus&& value) { SetStatus(std::move(value)); return *this;} /** *The timestamp when the status was changed (e.g.,
* 1479816991.349
).
The timestamp when the status was changed (e.g.,
* 1479816991.349
).
The timestamp when the status was changed (e.g.,
* 1479816991.349
).
The timestamp when the status was changed (e.g.,
* 1479816991.349
).
The timestamp when the status was changed (e.g.,
* 1479816991.349
).
The timestamp when the status was changed (e.g.,
* 1479816991.349
).
The error code.
*/ inline const Aws::String& GetErrorCode() const{ return m_errorCode; } /** *The error code.
*/ inline bool ErrorCodeHasBeenSet() const { return m_errorCodeHasBeenSet; } /** *The error code.
*/ inline void SetErrorCode(const Aws::String& value) { m_errorCodeHasBeenSet = true; m_errorCode = value; } /** *The error code.
*/ inline void SetErrorCode(Aws::String&& value) { m_errorCodeHasBeenSet = true; m_errorCode = std::move(value); } /** *The error code.
*/ inline void SetErrorCode(const char* value) { m_errorCodeHasBeenSet = true; m_errorCode.assign(value); } /** *The error code.
*/ inline Operation& WithErrorCode(const Aws::String& value) { SetErrorCode(value); return *this;} /** *The error code.
*/ inline Operation& WithErrorCode(Aws::String&& value) { SetErrorCode(std::move(value)); return *this;} /** *The error code.
*/ inline Operation& WithErrorCode(const char* value) { SetErrorCode(value); return *this;} /** *The error details.
*/ inline const Aws::String& GetErrorDetails() const{ return m_errorDetails; } /** *The error details.
*/ inline bool ErrorDetailsHasBeenSet() const { return m_errorDetailsHasBeenSet; } /** *The error details.
*/ inline void SetErrorDetails(const Aws::String& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = value; } /** *The error details.
*/ inline void SetErrorDetails(Aws::String&& value) { m_errorDetailsHasBeenSet = true; m_errorDetails = std::move(value); } /** *The error details.
*/ inline void SetErrorDetails(const char* value) { m_errorDetailsHasBeenSet = true; m_errorDetails.assign(value); } /** *The error details.
*/ inline Operation& WithErrorDetails(const Aws::String& value) { SetErrorDetails(value); return *this;} /** *The error details.
*/ inline Operation& WithErrorDetails(Aws::String&& value) { SetErrorDetails(std::move(value)); return *this;} /** *The error details.
*/ inline Operation& WithErrorDetails(const char* value) { SetErrorDetails(value); return *this;} private: Aws::String m_id; bool m_idHasBeenSet = false; Aws::String m_resourceName; bool m_resourceNameHasBeenSet = false; ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::Utils::DateTime m_createdAt; bool m_createdAtHasBeenSet = false; ResourceLocation m_location; bool m_locationHasBeenSet = false; bool m_isTerminal; bool m_isTerminalHasBeenSet = false; Aws::String m_operationDetails; bool m_operationDetailsHasBeenSet = false; OperationType m_operationType; bool m_operationTypeHasBeenSet = false; OperationStatus m_status; bool m_statusHasBeenSet = false; Aws::Utils::DateTime m_statusChangedAt; bool m_statusChangedAtHasBeenSet = false; Aws::String m_errorCode; bool m_errorCodeHasBeenSet = false; Aws::String m_errorDetails; bool m_errorDetailsHasBeenSet = false; }; } // namespace Model } // namespace Lightsail } // namespace Aws