/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the migration-hub-refactor-spaces-2021-10-26.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Xml.Serialization;
using System.Text;
using System.IO;
using System.Net;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
namespace Amazon.MigrationHubRefactorSpaces.Model
{
///
/// Error associated with a resource returned for a Get or List resource response.
///
public partial class ErrorResponse
{
private string _accountId;
private Dictionary _additionalDetails = new Dictionary();
private ErrorCode _code;
private string _message;
private string _resourceIdentifier;
private ErrorResourceType _resourceType;
///
/// Gets and sets the property AccountId.
///
/// The Amazon Web Services account ID of the resource owner.
///
///
[AWSProperty(Min=12, Max=12)]
public string AccountId
{
get { return this._accountId; }
set { this._accountId = value; }
}
// Check to see if AccountId property is set
internal bool IsSetAccountId()
{
return this._accountId != null;
}
///
/// Gets and sets the property AdditionalDetails.
///
/// Additional details about the error.
///
///
public Dictionary AdditionalDetails
{
get { return this._additionalDetails; }
set { this._additionalDetails = value; }
}
// Check to see if AdditionalDetails property is set
internal bool IsSetAdditionalDetails()
{
return this._additionalDetails != null && this._additionalDetails.Count > 0;
}
///
/// Gets and sets the property Code.
///
/// The error code associated with the error.
///
///
public ErrorCode Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
///
/// Gets and sets the property Message.
///
/// The message associated with the error.
///
///
[AWSProperty(Min=0, Max=255)]
public string Message
{
get { return this._message; }
set { this._message = value; }
}
// Check to see if Message property is set
internal bool IsSetMessage()
{
return this._message != null;
}
///
/// Gets and sets the property ResourceIdentifier.
///
/// The ID of the resource.
///
///
[AWSProperty(Min=3, Max=63)]
public string ResourceIdentifier
{
get { return this._resourceIdentifier; }
set { this._resourceIdentifier = value; }
}
// Check to see if ResourceIdentifier property is set
internal bool IsSetResourceIdentifier()
{
return this._resourceIdentifier != null;
}
///
/// Gets and sets the property ResourceType.
///
/// The type of resource.
///
///
public ErrorResourceType ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
}
}