/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the failure of a license operation.See Also:
AWS
* API Reference
Amazon Resource Name (ARN) of the resource.
*/ inline const Aws::String& GetResourceArn() const{ return m_resourceArn; } /** *Amazon Resource Name (ARN) of the resource.
*/ inline bool ResourceArnHasBeenSet() const { return m_resourceArnHasBeenSet; } /** *Amazon Resource Name (ARN) of the resource.
*/ inline void SetResourceArn(const Aws::String& value) { m_resourceArnHasBeenSet = true; m_resourceArn = value; } /** *Amazon Resource Name (ARN) of the resource.
*/ inline void SetResourceArn(Aws::String&& value) { m_resourceArnHasBeenSet = true; m_resourceArn = std::move(value); } /** *Amazon Resource Name (ARN) of the resource.
*/ inline void SetResourceArn(const char* value) { m_resourceArnHasBeenSet = true; m_resourceArn.assign(value); } /** *Amazon Resource Name (ARN) of the resource.
*/ inline LicenseOperationFailure& WithResourceArn(const Aws::String& value) { SetResourceArn(value); return *this;} /** *Amazon Resource Name (ARN) of the resource.
*/ inline LicenseOperationFailure& WithResourceArn(Aws::String&& value) { SetResourceArn(std::move(value)); return *this;} /** *Amazon Resource Name (ARN) of the resource.
*/ inline LicenseOperationFailure& WithResourceArn(const char* value) { SetResourceArn(value); return *this;} /** *Resource type.
*/ inline const ResourceType& GetResourceType() const{ return m_resourceType; } /** *Resource type.
*/ inline bool ResourceTypeHasBeenSet() const { return m_resourceTypeHasBeenSet; } /** *Resource type.
*/ inline void SetResourceType(const ResourceType& value) { m_resourceTypeHasBeenSet = true; m_resourceType = value; } /** *Resource type.
*/ inline void SetResourceType(ResourceType&& value) { m_resourceTypeHasBeenSet = true; m_resourceType = std::move(value); } /** *Resource type.
*/ inline LicenseOperationFailure& WithResourceType(const ResourceType& value) { SetResourceType(value); return *this;} /** *Resource type.
*/ inline LicenseOperationFailure& WithResourceType(ResourceType&& value) { SetResourceType(std::move(value)); return *this;} /** *Error message.
*/ inline const Aws::String& GetErrorMessage() const{ return m_errorMessage; } /** *Error message.
*/ inline bool ErrorMessageHasBeenSet() const { return m_errorMessageHasBeenSet; } /** *Error message.
*/ inline void SetErrorMessage(const Aws::String& value) { m_errorMessageHasBeenSet = true; m_errorMessage = value; } /** *Error message.
*/ inline void SetErrorMessage(Aws::String&& value) { m_errorMessageHasBeenSet = true; m_errorMessage = std::move(value); } /** *Error message.
*/ inline void SetErrorMessage(const char* value) { m_errorMessageHasBeenSet = true; m_errorMessage.assign(value); } /** *Error message.
*/ inline LicenseOperationFailure& WithErrorMessage(const Aws::String& value) { SetErrorMessage(value); return *this;} /** *Error message.
*/ inline LicenseOperationFailure& WithErrorMessage(Aws::String&& value) { SetErrorMessage(std::move(value)); return *this;} /** *Error message.
*/ inline LicenseOperationFailure& WithErrorMessage(const char* value) { SetErrorMessage(value); return *this;} /** *Failure time.
*/ inline const Aws::Utils::DateTime& GetFailureTime() const{ return m_failureTime; } /** *Failure time.
*/ inline bool FailureTimeHasBeenSet() const { return m_failureTimeHasBeenSet; } /** *Failure time.
*/ inline void SetFailureTime(const Aws::Utils::DateTime& value) { m_failureTimeHasBeenSet = true; m_failureTime = value; } /** *Failure time.
*/ inline void SetFailureTime(Aws::Utils::DateTime&& value) { m_failureTimeHasBeenSet = true; m_failureTime = std::move(value); } /** *Failure time.
*/ inline LicenseOperationFailure& WithFailureTime(const Aws::Utils::DateTime& value) { SetFailureTime(value); return *this;} /** *Failure time.
*/ inline LicenseOperationFailure& WithFailureTime(Aws::Utils::DateTime&& value) { SetFailureTime(std::move(value)); return *this;} /** *Name of the operation.
*/ inline const Aws::String& GetOperationName() const{ return m_operationName; } /** *Name of the operation.
*/ inline bool OperationNameHasBeenSet() const { return m_operationNameHasBeenSet; } /** *Name of the operation.
*/ inline void SetOperationName(const Aws::String& value) { m_operationNameHasBeenSet = true; m_operationName = value; } /** *Name of the operation.
*/ inline void SetOperationName(Aws::String&& value) { m_operationNameHasBeenSet = true; m_operationName = std::move(value); } /** *Name of the operation.
*/ inline void SetOperationName(const char* value) { m_operationNameHasBeenSet = true; m_operationName.assign(value); } /** *Name of the operation.
*/ inline LicenseOperationFailure& WithOperationName(const Aws::String& value) { SetOperationName(value); return *this;} /** *Name of the operation.
*/ inline LicenseOperationFailure& WithOperationName(Aws::String&& value) { SetOperationName(std::move(value)); return *this;} /** *Name of the operation.
*/ inline LicenseOperationFailure& WithOperationName(const char* value) { SetOperationName(value); return *this;} /** *ID of the Amazon Web Services account that owns the resource.
*/ inline const Aws::String& GetResourceOwnerId() const{ return m_resourceOwnerId; } /** *ID of the Amazon Web Services account that owns the resource.
*/ inline bool ResourceOwnerIdHasBeenSet() const { return m_resourceOwnerIdHasBeenSet; } /** *ID of the Amazon Web Services account that owns the resource.
*/ inline void SetResourceOwnerId(const Aws::String& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = value; } /** *ID of the Amazon Web Services account that owns the resource.
*/ inline void SetResourceOwnerId(Aws::String&& value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId = std::move(value); } /** *ID of the Amazon Web Services account that owns the resource.
*/ inline void SetResourceOwnerId(const char* value) { m_resourceOwnerIdHasBeenSet = true; m_resourceOwnerId.assign(value); } /** *ID of the Amazon Web Services account that owns the resource.
*/ inline LicenseOperationFailure& WithResourceOwnerId(const Aws::String& value) { SetResourceOwnerId(value); return *this;} /** *ID of the Amazon Web Services account that owns the resource.
*/ inline LicenseOperationFailure& WithResourceOwnerId(Aws::String&& value) { SetResourceOwnerId(std::move(value)); return *this;} /** *ID of the Amazon Web Services account that owns the resource.
*/ inline LicenseOperationFailure& WithResourceOwnerId(const char* value) { SetResourceOwnerId(value); return *this;} /** *The requester is "License Manager Automated Discovery".
*/ inline const Aws::String& GetOperationRequestedBy() const{ return m_operationRequestedBy; } /** *The requester is "License Manager Automated Discovery".
*/ inline bool OperationRequestedByHasBeenSet() const { return m_operationRequestedByHasBeenSet; } /** *The requester is "License Manager Automated Discovery".
*/ inline void SetOperationRequestedBy(const Aws::String& value) { m_operationRequestedByHasBeenSet = true; m_operationRequestedBy = value; } /** *The requester is "License Manager Automated Discovery".
*/ inline void SetOperationRequestedBy(Aws::String&& value) { m_operationRequestedByHasBeenSet = true; m_operationRequestedBy = std::move(value); } /** *The requester is "License Manager Automated Discovery".
*/ inline void SetOperationRequestedBy(const char* value) { m_operationRequestedByHasBeenSet = true; m_operationRequestedBy.assign(value); } /** *The requester is "License Manager Automated Discovery".
*/ inline LicenseOperationFailure& WithOperationRequestedBy(const Aws::String& value) { SetOperationRequestedBy(value); return *this;} /** *The requester is "License Manager Automated Discovery".
*/ inline LicenseOperationFailure& WithOperationRequestedBy(Aws::String&& value) { SetOperationRequestedBy(std::move(value)); return *this;} /** *The requester is "License Manager Automated Discovery".
*/ inline LicenseOperationFailure& WithOperationRequestedBy(const char* value) { SetOperationRequestedBy(value); return *this;} /** *Reserved.
*/ inline const Aws::VectorReserved.
*/ inline bool MetadataListHasBeenSet() const { return m_metadataListHasBeenSet; } /** *Reserved.
*/ inline void SetMetadataList(const Aws::VectorReserved.
*/ inline void SetMetadataList(Aws::VectorReserved.
*/ inline LicenseOperationFailure& WithMetadataList(const Aws::VectorReserved.
*/ inline LicenseOperationFailure& WithMetadataList(Aws::VectorReserved.
*/ inline LicenseOperationFailure& AddMetadataList(const Metadata& value) { m_metadataListHasBeenSet = true; m_metadataList.push_back(value); return *this; } /** *Reserved.
*/ inline LicenseOperationFailure& AddMetadataList(Metadata&& value) { m_metadataListHasBeenSet = true; m_metadataList.push_back(std::move(value)); return *this; } private: Aws::String m_resourceArn; bool m_resourceArnHasBeenSet = false; ResourceType m_resourceType; bool m_resourceTypeHasBeenSet = false; Aws::String m_errorMessage; bool m_errorMessageHasBeenSet = false; Aws::Utils::DateTime m_failureTime; bool m_failureTimeHasBeenSet = false; Aws::String m_operationName; bool m_operationNameHasBeenSet = false; Aws::String m_resourceOwnerId; bool m_resourceOwnerIdHasBeenSet = false; Aws::String m_operationRequestedBy; bool m_operationRequestedByHasBeenSet = false; Aws::Vector