repo_name
stringlengths 1
52
| repo_creator
stringclasses 6
values | programming_language
stringclasses 4
values | code
stringlengths 0
9.68M
| num_lines
int64 1
234k
|
---|---|---|---|---|
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Category Object
/// </summary>
public class CategoryUnmarshaller : IUnmarshaller<Category, XmlUnmarshallerContext>, IUnmarshaller<Category, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Category IUnmarshaller<Category, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public Category Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Category unmarshalledObject = new Category();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("code", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Code = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Name = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static CategoryUnmarshaller _instance = new CategoryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static CategoryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 98 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CommunicationTypeOptions Object
/// </summary>
public class CommunicationTypeOptionsUnmarshaller : IUnmarshaller<CommunicationTypeOptions, XmlUnmarshallerContext>, IUnmarshaller<CommunicationTypeOptions, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
CommunicationTypeOptions IUnmarshaller<CommunicationTypeOptions, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public CommunicationTypeOptions Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
CommunicationTypeOptions unmarshalledObject = new CommunicationTypeOptions();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("datesWithoutSupport", targetDepth))
{
var unmarshaller = new ListUnmarshaller<DateInterval, DateIntervalUnmarshaller>(DateIntervalUnmarshaller.Instance);
unmarshalledObject.DatesWithoutSupport = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("supportedHours", targetDepth))
{
var unmarshaller = new ListUnmarshaller<SupportedHour, SupportedHourUnmarshaller>(SupportedHourUnmarshaller.Instance);
unmarshalledObject.SupportedHours = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("type", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Type = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static CommunicationTypeOptionsUnmarshaller _instance = new CommunicationTypeOptionsUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static CommunicationTypeOptionsUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 104 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Communication Object
/// </summary>
public class CommunicationUnmarshaller : IUnmarshaller<Communication, XmlUnmarshallerContext>, IUnmarshaller<Communication, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Communication IUnmarshaller<Communication, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public Communication Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Communication unmarshalledObject = new Communication();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("attachmentSet", targetDepth))
{
var unmarshaller = new ListUnmarshaller<AttachmentDetails, AttachmentDetailsUnmarshaller>(AttachmentDetailsUnmarshaller.Instance);
unmarshalledObject.AttachmentSet = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("body", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Body = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("caseId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CaseId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("submittedBy", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.SubmittedBy = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("timeCreated", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.TimeCreated = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static CommunicationUnmarshaller _instance = new CommunicationUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static CommunicationUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 116 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// CreateCase Request Marshaller
/// </summary>
public class CreateCaseRequestMarshaller : IMarshaller<IRequest, CreateCaseRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((CreateCaseRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(CreateCaseRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSSupport");
string target = "AWSSupport_20130415.CreateCase";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-04-15";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAttachmentSetId())
{
context.Writer.WritePropertyName("attachmentSetId");
context.Writer.Write(publicRequest.AttachmentSetId);
}
if(publicRequest.IsSetCategoryCode())
{
context.Writer.WritePropertyName("categoryCode");
context.Writer.Write(publicRequest.CategoryCode);
}
if(publicRequest.IsSetCcEmailAddresses())
{
context.Writer.WritePropertyName("ccEmailAddresses");
context.Writer.WriteArrayStart();
foreach(var publicRequestCcEmailAddressesListValue in publicRequest.CcEmailAddresses)
{
context.Writer.Write(publicRequestCcEmailAddressesListValue);
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetCommunicationBody())
{
context.Writer.WritePropertyName("communicationBody");
context.Writer.Write(publicRequest.CommunicationBody);
}
if(publicRequest.IsSetIssueType())
{
context.Writer.WritePropertyName("issueType");
context.Writer.Write(publicRequest.IssueType);
}
if(publicRequest.IsSetLanguage())
{
context.Writer.WritePropertyName("language");
context.Writer.Write(publicRequest.Language);
}
if(publicRequest.IsSetServiceCode())
{
context.Writer.WritePropertyName("serviceCode");
context.Writer.Write(publicRequest.ServiceCode);
}
if(publicRequest.IsSetSeverityCode())
{
context.Writer.WritePropertyName("severityCode");
context.Writer.Write(publicRequest.SeverityCode);
}
if(publicRequest.IsSetSubject())
{
context.Writer.WritePropertyName("subject");
context.Writer.Write(publicRequest.Subject);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static CreateCaseRequestMarshaller _instance = new CreateCaseRequestMarshaller();
internal static CreateCaseRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateCaseRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 156 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for CreateCase operation
/// </summary>
public class CreateCaseResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
CreateCaseResponse response = new CreateCaseResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("caseId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.CaseId = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AttachmentSetExpired"))
{
return AttachmentSetExpiredExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("AttachmentSetIdNotFound"))
{
return AttachmentSetIdNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("CaseCreationLimitExceeded"))
{
return CaseCreationLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError"))
{
return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSSupportException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static CreateCaseResponseUnmarshaller _instance = new CreateCaseResponseUnmarshaller();
internal static CreateCaseResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static CreateCaseResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 122 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DateInterval Object
/// </summary>
public class DateIntervalUnmarshaller : IUnmarshaller<DateInterval, XmlUnmarshallerContext>, IUnmarshaller<DateInterval, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
DateInterval IUnmarshaller<DateInterval, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public DateInterval Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
DateInterval unmarshalledObject = new DateInterval();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("endDateTime", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EndDateTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("startDateTime", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StartDateTime = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static DateIntervalUnmarshaller _instance = new DateIntervalUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static DateIntervalUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 98 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeAttachmentLimitExceededException Object
/// </summary>
public class DescribeAttachmentLimitExceededExceptionUnmarshaller : IErrorResponseUnmarshaller<DescribeAttachmentLimitExceededException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public DescribeAttachmentLimitExceededException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public DescribeAttachmentLimitExceededException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
DescribeAttachmentLimitExceededException unmarshalledObject = new DescribeAttachmentLimitExceededException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static DescribeAttachmentLimitExceededExceptionUnmarshaller _instance = new DescribeAttachmentLimitExceededExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeAttachmentLimitExceededExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 85 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeAttachment Request Marshaller
/// </summary>
public class DescribeAttachmentRequestMarshaller : IMarshaller<IRequest, DescribeAttachmentRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeAttachmentRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeAttachmentRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSSupport");
string target = "AWSSupport_20130415.DescribeAttachment";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-04-15";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAttachmentId())
{
context.Writer.WritePropertyName("attachmentId");
context.Writer.Write(publicRequest.AttachmentId);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeAttachmentRequestMarshaller _instance = new DescribeAttachmentRequestMarshaller();
internal static DescribeAttachmentRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeAttachmentRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeAttachment operation
/// </summary>
public class DescribeAttachmentResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeAttachmentResponse response = new DescribeAttachmentResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("attachment", targetDepth))
{
var unmarshaller = AttachmentUnmarshaller.Instance;
response.Attachment = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("AttachmentIdNotFound"))
{
return AttachmentIdNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("DescribeAttachmentLimitExceeded"))
{
return DescribeAttachmentLimitExceededExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError"))
{
return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSSupportException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeAttachmentResponseUnmarshaller _instance = new DescribeAttachmentResponseUnmarshaller();
internal static DescribeAttachmentResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeAttachmentResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 118 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeCases Request Marshaller
/// </summary>
public class DescribeCasesRequestMarshaller : IMarshaller<IRequest, DescribeCasesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeCasesRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeCasesRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSSupport");
string target = "AWSSupport_20130415.DescribeCases";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-04-15";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAfterTime())
{
context.Writer.WritePropertyName("afterTime");
context.Writer.Write(publicRequest.AfterTime);
}
if(publicRequest.IsSetBeforeTime())
{
context.Writer.WritePropertyName("beforeTime");
context.Writer.Write(publicRequest.BeforeTime);
}
if(publicRequest.IsSetCaseIdList())
{
context.Writer.WritePropertyName("caseIdList");
context.Writer.WriteArrayStart();
foreach(var publicRequestCaseIdListListValue in publicRequest.CaseIdList)
{
context.Writer.Write(publicRequestCaseIdListListValue);
}
context.Writer.WriteArrayEnd();
}
if(publicRequest.IsSetDisplayId())
{
context.Writer.WritePropertyName("displayId");
context.Writer.Write(publicRequest.DisplayId);
}
if(publicRequest.IsSetIncludeCommunications())
{
context.Writer.WritePropertyName("includeCommunications");
context.Writer.Write(publicRequest.IncludeCommunications);
}
if(publicRequest.IsSetIncludeResolvedCases())
{
context.Writer.WritePropertyName("includeResolvedCases");
context.Writer.Write(publicRequest.IncludeResolvedCases);
}
if(publicRequest.IsSetLanguage())
{
context.Writer.WritePropertyName("language");
context.Writer.Write(publicRequest.Language);
}
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("maxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("nextToken");
context.Writer.Write(publicRequest.NextToken);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeCasesRequestMarshaller _instance = new DescribeCasesRequestMarshaller();
internal static DescribeCasesRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeCasesRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 156 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeCases operation
/// </summary>
public class DescribeCasesResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeCasesResponse response = new DescribeCasesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("cases", targetDepth))
{
var unmarshaller = new ListUnmarshaller<CaseDetails, CaseDetailsUnmarshaller>(CaseDetailsUnmarshaller.Instance);
response.Cases = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("CaseIdNotFound"))
{
return CaseIdNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError"))
{
return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSSupportException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeCasesResponseUnmarshaller _instance = new DescribeCasesResponseUnmarshaller();
internal static DescribeCasesResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeCasesResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 120 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeCommunications Request Marshaller
/// </summary>
public class DescribeCommunicationsRequestMarshaller : IMarshaller<IRequest, DescribeCommunicationsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeCommunicationsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeCommunicationsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSSupport");
string target = "AWSSupport_20130415.DescribeCommunications";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-04-15";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetAfterTime())
{
context.Writer.WritePropertyName("afterTime");
context.Writer.Write(publicRequest.AfterTime);
}
if(publicRequest.IsSetBeforeTime())
{
context.Writer.WritePropertyName("beforeTime");
context.Writer.Write(publicRequest.BeforeTime);
}
if(publicRequest.IsSetCaseId())
{
context.Writer.WritePropertyName("caseId");
context.Writer.Write(publicRequest.CaseId);
}
if(publicRequest.IsSetMaxResults())
{
context.Writer.WritePropertyName("maxResults");
context.Writer.Write(publicRequest.MaxResults);
}
if(publicRequest.IsSetNextToken())
{
context.Writer.WritePropertyName("nextToken");
context.Writer.Write(publicRequest.NextToken);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeCommunicationsRequestMarshaller _instance = new DescribeCommunicationsRequestMarshaller();
internal static DescribeCommunicationsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeCommunicationsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 127 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeCommunications operation
/// </summary>
public class DescribeCommunicationsResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeCommunicationsResponse response = new DescribeCommunicationsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("communications", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Communication, CommunicationUnmarshaller>(CommunicationUnmarshaller.Instance);
response.Communications = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("CaseIdNotFound"))
{
return CaseIdNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError"))
{
return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSSupportException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeCommunicationsResponseUnmarshaller _instance = new DescribeCommunicationsResponseUnmarshaller();
internal static DescribeCommunicationsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeCommunicationsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 120 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeCreateCaseOptions Request Marshaller
/// </summary>
public class DescribeCreateCaseOptionsRequestMarshaller : IMarshaller<IRequest, DescribeCreateCaseOptionsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeCreateCaseOptionsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeCreateCaseOptionsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSSupport");
string target = "AWSSupport_20130415.DescribeCreateCaseOptions";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-04-15";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetCategoryCode())
{
context.Writer.WritePropertyName("categoryCode");
context.Writer.Write(publicRequest.CategoryCode);
}
if(publicRequest.IsSetIssueType())
{
context.Writer.WritePropertyName("issueType");
context.Writer.Write(publicRequest.IssueType);
}
if(publicRequest.IsSetLanguage())
{
context.Writer.WritePropertyName("language");
context.Writer.Write(publicRequest.Language);
}
if(publicRequest.IsSetServiceCode())
{
context.Writer.WritePropertyName("serviceCode");
context.Writer.Write(publicRequest.ServiceCode);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeCreateCaseOptionsRequestMarshaller _instance = new DescribeCreateCaseOptionsRequestMarshaller();
internal static DescribeCreateCaseOptionsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeCreateCaseOptionsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 121 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeCreateCaseOptions operation
/// </summary>
public class DescribeCreateCaseOptionsResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeCreateCaseOptionsResponse response = new DescribeCreateCaseOptionsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("communicationTypes", targetDepth))
{
var unmarshaller = new ListUnmarshaller<CommunicationTypeOptions, CommunicationTypeOptionsUnmarshaller>(CommunicationTypeOptionsUnmarshaller.Instance);
response.CommunicationTypes = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("languageAvailability", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.LanguageAvailability = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError"))
{
return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSSupportException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeCreateCaseOptionsResponseUnmarshaller _instance = new DescribeCreateCaseOptionsResponseUnmarshaller();
internal static DescribeCreateCaseOptionsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeCreateCaseOptionsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 120 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeServices Request Marshaller
/// </summary>
public class DescribeServicesRequestMarshaller : IMarshaller<IRequest, DescribeServicesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeServicesRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeServicesRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSSupport");
string target = "AWSSupport_20130415.DescribeServices";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-04-15";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetLanguage())
{
context.Writer.WritePropertyName("language");
context.Writer.Write(publicRequest.Language);
}
if(publicRequest.IsSetServiceCodeList())
{
context.Writer.WritePropertyName("serviceCodeList");
context.Writer.WriteArrayStart();
foreach(var publicRequestServiceCodeListListValue in publicRequest.ServiceCodeList)
{
context.Writer.Write(publicRequestServiceCodeListListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeServicesRequestMarshaller _instance = new DescribeServicesRequestMarshaller();
internal static DescribeServicesRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeServicesRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 114 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeServices operation
/// </summary>
public class DescribeServicesResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeServicesResponse response = new DescribeServicesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("services", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Service, ServiceUnmarshaller>(ServiceUnmarshaller.Instance);
response.Services = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError"))
{
return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSSupportException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeServicesResponseUnmarshaller _instance = new DescribeServicesResponseUnmarshaller();
internal static DescribeServicesResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeServicesResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 110 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeSeverityLevels Request Marshaller
/// </summary>
public class DescribeSeverityLevelsRequestMarshaller : IMarshaller<IRequest, DescribeSeverityLevelsRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeSeverityLevelsRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeSeverityLevelsRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSSupport");
string target = "AWSSupport_20130415.DescribeSeverityLevels";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-04-15";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetLanguage())
{
context.Writer.WritePropertyName("language");
context.Writer.Write(publicRequest.Language);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeSeverityLevelsRequestMarshaller _instance = new DescribeSeverityLevelsRequestMarshaller();
internal static DescribeSeverityLevelsRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeSeverityLevelsRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeSeverityLevels operation
/// </summary>
public class DescribeSeverityLevelsResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeSeverityLevelsResponse response = new DescribeSeverityLevelsResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("severityLevels", targetDepth))
{
var unmarshaller = new ListUnmarshaller<SeverityLevel, SeverityLevelUnmarshaller>(SeverityLevelUnmarshaller.Instance);
response.SeverityLevels = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError"))
{
return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSSupportException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeSeverityLevelsResponseUnmarshaller _instance = new DescribeSeverityLevelsResponseUnmarshaller();
internal static DescribeSeverityLevelsResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeSeverityLevelsResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 110 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeSupportedLanguages Request Marshaller
/// </summary>
public class DescribeSupportedLanguagesRequestMarshaller : IMarshaller<IRequest, DescribeSupportedLanguagesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeSupportedLanguagesRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeSupportedLanguagesRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSSupport");
string target = "AWSSupport_20130415.DescribeSupportedLanguages";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-04-15";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetCategoryCode())
{
context.Writer.WritePropertyName("categoryCode");
context.Writer.Write(publicRequest.CategoryCode);
}
if(publicRequest.IsSetIssueType())
{
context.Writer.WritePropertyName("issueType");
context.Writer.Write(publicRequest.IssueType);
}
if(publicRequest.IsSetServiceCode())
{
context.Writer.WritePropertyName("serviceCode");
context.Writer.Write(publicRequest.ServiceCode);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeSupportedLanguagesRequestMarshaller _instance = new DescribeSupportedLanguagesRequestMarshaller();
internal static DescribeSupportedLanguagesRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeSupportedLanguagesRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 115 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeSupportedLanguages operation
/// </summary>
public class DescribeSupportedLanguagesResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeSupportedLanguagesResponse response = new DescribeSupportedLanguagesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("supportedLanguages", targetDepth))
{
var unmarshaller = new ListUnmarshaller<SupportedLanguage, SupportedLanguageUnmarshaller>(SupportedLanguageUnmarshaller.Instance);
response.SupportedLanguages = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError"))
{
return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSSupportException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeSupportedLanguagesResponseUnmarshaller _instance = new DescribeSupportedLanguagesResponseUnmarshaller();
internal static DescribeSupportedLanguagesResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeSupportedLanguagesResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 114 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeTrustedAdvisorCheckRefreshStatuses Request Marshaller
/// </summary>
public class DescribeTrustedAdvisorCheckRefreshStatusesRequestMarshaller : IMarshaller<IRequest, DescribeTrustedAdvisorCheckRefreshStatusesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeTrustedAdvisorCheckRefreshStatusesRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeTrustedAdvisorCheckRefreshStatusesRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSSupport");
string target = "AWSSupport_20130415.DescribeTrustedAdvisorCheckRefreshStatuses";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-04-15";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetCheckIds())
{
context.Writer.WritePropertyName("checkIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestCheckIdsListValue in publicRequest.CheckIds)
{
context.Writer.Write(publicRequestCheckIdsListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeTrustedAdvisorCheckRefreshStatusesRequestMarshaller _instance = new DescribeTrustedAdvisorCheckRefreshStatusesRequestMarshaller();
internal static DescribeTrustedAdvisorCheckRefreshStatusesRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeTrustedAdvisorCheckRefreshStatusesRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 108 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeTrustedAdvisorCheckRefreshStatuses operation
/// </summary>
public class DescribeTrustedAdvisorCheckRefreshStatusesResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeTrustedAdvisorCheckRefreshStatusesResponse response = new DescribeTrustedAdvisorCheckRefreshStatusesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("statuses", targetDepth))
{
var unmarshaller = new ListUnmarshaller<TrustedAdvisorCheckRefreshStatus, TrustedAdvisorCheckRefreshStatusUnmarshaller>(TrustedAdvisorCheckRefreshStatusUnmarshaller.Instance);
response.Statuses = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError"))
{
return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSSupportException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeTrustedAdvisorCheckRefreshStatusesResponseUnmarshaller _instance = new DescribeTrustedAdvisorCheckRefreshStatusesResponseUnmarshaller();
internal static DescribeTrustedAdvisorCheckRefreshStatusesResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeTrustedAdvisorCheckRefreshStatusesResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 114 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeTrustedAdvisorCheckResult Request Marshaller
/// </summary>
public class DescribeTrustedAdvisorCheckResultRequestMarshaller : IMarshaller<IRequest, DescribeTrustedAdvisorCheckResultRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeTrustedAdvisorCheckResultRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeTrustedAdvisorCheckResultRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSSupport");
string target = "AWSSupport_20130415.DescribeTrustedAdvisorCheckResult";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-04-15";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetCheckId())
{
context.Writer.WritePropertyName("checkId");
context.Writer.Write(publicRequest.CheckId);
}
if(publicRequest.IsSetLanguage())
{
context.Writer.WritePropertyName("language");
context.Writer.Write(publicRequest.Language);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeTrustedAdvisorCheckResultRequestMarshaller _instance = new DescribeTrustedAdvisorCheckResultRequestMarshaller();
internal static DescribeTrustedAdvisorCheckResultRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeTrustedAdvisorCheckResultRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 109 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeTrustedAdvisorCheckResult operation
/// </summary>
public class DescribeTrustedAdvisorCheckResultResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeTrustedAdvisorCheckResultResponse response = new DescribeTrustedAdvisorCheckResultResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("result", targetDepth))
{
var unmarshaller = TrustedAdvisorCheckResultUnmarshaller.Instance;
response.Result = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError"))
{
return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSSupportException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeTrustedAdvisorCheckResultResponseUnmarshaller _instance = new DescribeTrustedAdvisorCheckResultResponseUnmarshaller();
internal static DescribeTrustedAdvisorCheckResultResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeTrustedAdvisorCheckResultResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 114 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeTrustedAdvisorChecks Request Marshaller
/// </summary>
public class DescribeTrustedAdvisorChecksRequestMarshaller : IMarshaller<IRequest, DescribeTrustedAdvisorChecksRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeTrustedAdvisorChecksRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeTrustedAdvisorChecksRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSSupport");
string target = "AWSSupport_20130415.DescribeTrustedAdvisorChecks";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-04-15";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetLanguage())
{
context.Writer.WritePropertyName("language");
context.Writer.Write(publicRequest.Language);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeTrustedAdvisorChecksRequestMarshaller _instance = new DescribeTrustedAdvisorChecksRequestMarshaller();
internal static DescribeTrustedAdvisorChecksRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeTrustedAdvisorChecksRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeTrustedAdvisorChecks operation
/// </summary>
public class DescribeTrustedAdvisorChecksResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeTrustedAdvisorChecksResponse response = new DescribeTrustedAdvisorChecksResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("checks", targetDepth))
{
var unmarshaller = new ListUnmarshaller<TrustedAdvisorCheckDescription, TrustedAdvisorCheckDescriptionUnmarshaller>(TrustedAdvisorCheckDescriptionUnmarshaller.Instance);
response.Checks = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError"))
{
return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSSupportException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeTrustedAdvisorChecksResponseUnmarshaller _instance = new DescribeTrustedAdvisorChecksResponseUnmarshaller();
internal static DescribeTrustedAdvisorChecksResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeTrustedAdvisorChecksResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 114 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// DescribeTrustedAdvisorCheckSummaries Request Marshaller
/// </summary>
public class DescribeTrustedAdvisorCheckSummariesRequestMarshaller : IMarshaller<IRequest, DescribeTrustedAdvisorCheckSummariesRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((DescribeTrustedAdvisorCheckSummariesRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(DescribeTrustedAdvisorCheckSummariesRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSSupport");
string target = "AWSSupport_20130415.DescribeTrustedAdvisorCheckSummaries";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-04-15";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetCheckIds())
{
context.Writer.WritePropertyName("checkIds");
context.Writer.WriteArrayStart();
foreach(var publicRequestCheckIdsListValue in publicRequest.CheckIds)
{
context.Writer.Write(publicRequestCheckIdsListValue);
}
context.Writer.WriteArrayEnd();
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static DescribeTrustedAdvisorCheckSummariesRequestMarshaller _instance = new DescribeTrustedAdvisorCheckSummariesRequestMarshaller();
internal static DescribeTrustedAdvisorCheckSummariesRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeTrustedAdvisorCheckSummariesRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 108 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for DescribeTrustedAdvisorCheckSummaries operation
/// </summary>
public class DescribeTrustedAdvisorCheckSummariesResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
DescribeTrustedAdvisorCheckSummariesResponse response = new DescribeTrustedAdvisorCheckSummariesResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("summaries", targetDepth))
{
var unmarshaller = new ListUnmarshaller<TrustedAdvisorCheckSummary, TrustedAdvisorCheckSummaryUnmarshaller>(TrustedAdvisorCheckSummaryUnmarshaller.Instance);
response.Summaries = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError"))
{
return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("ThrottlingException"))
{
return ThrottlingExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSSupportException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static DescribeTrustedAdvisorCheckSummariesResponseUnmarshaller _instance = new DescribeTrustedAdvisorCheckSummariesResponseUnmarshaller();
internal static DescribeTrustedAdvisorCheckSummariesResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static DescribeTrustedAdvisorCheckSummariesResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 114 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for InternalServerErrorException Object
/// </summary>
public class InternalServerErrorExceptionUnmarshaller : IErrorResponseUnmarshaller<InternalServerErrorException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public InternalServerErrorException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public InternalServerErrorException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
InternalServerErrorException unmarshalledObject = new InternalServerErrorException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static InternalServerErrorExceptionUnmarshaller _instance = new InternalServerErrorExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static InternalServerErrorExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 85 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for RecentCaseCommunications Object
/// </summary>
public class RecentCaseCommunicationsUnmarshaller : IUnmarshaller<RecentCaseCommunications, XmlUnmarshallerContext>, IUnmarshaller<RecentCaseCommunications, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
RecentCaseCommunications IUnmarshaller<RecentCaseCommunications, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public RecentCaseCommunications Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
RecentCaseCommunications unmarshalledObject = new RecentCaseCommunications();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("communications", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Communication, CommunicationUnmarshaller>(CommunicationUnmarshaller.Instance);
unmarshalledObject.Communications = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("nextToken", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.NextToken = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static RecentCaseCommunicationsUnmarshaller _instance = new RecentCaseCommunicationsUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static RecentCaseCommunicationsUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 98 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// RefreshTrustedAdvisorCheck Request Marshaller
/// </summary>
public class RefreshTrustedAdvisorCheckRequestMarshaller : IMarshaller<IRequest, RefreshTrustedAdvisorCheckRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((RefreshTrustedAdvisorCheckRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(RefreshTrustedAdvisorCheckRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSSupport");
string target = "AWSSupport_20130415.RefreshTrustedAdvisorCheck";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-04-15";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetCheckId())
{
context.Writer.WritePropertyName("checkId");
context.Writer.Write(publicRequest.CheckId);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static RefreshTrustedAdvisorCheckRequestMarshaller _instance = new RefreshTrustedAdvisorCheckRequestMarshaller();
internal static RefreshTrustedAdvisorCheckRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static RefreshTrustedAdvisorCheckRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for RefreshTrustedAdvisorCheck operation
/// </summary>
public class RefreshTrustedAdvisorCheckResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
RefreshTrustedAdvisorCheckResponse response = new RefreshTrustedAdvisorCheckResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("status", targetDepth))
{
var unmarshaller = TrustedAdvisorCheckRefreshStatusUnmarshaller.Instance;
response.Status = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError"))
{
return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSSupportException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static RefreshTrustedAdvisorCheckResponseUnmarshaller _instance = new RefreshTrustedAdvisorCheckResponseUnmarshaller();
internal static RefreshTrustedAdvisorCheckResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static RefreshTrustedAdvisorCheckResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 110 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// ResolveCase Request Marshaller
/// </summary>
public class ResolveCaseRequestMarshaller : IMarshaller<IRequest, ResolveCaseRequest> , IMarshaller<IRequest,AmazonWebServiceRequest>
{
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="input"></param>
/// <returns></returns>
public IRequest Marshall(AmazonWebServiceRequest input)
{
return this.Marshall((ResolveCaseRequest)input);
}
/// <summary>
/// Marshaller the request object to the HTTP request.
/// </summary>
/// <param name="publicRequest"></param>
/// <returns></returns>
public IRequest Marshall(ResolveCaseRequest publicRequest)
{
IRequest request = new DefaultRequest(publicRequest, "Amazon.AWSSupport");
string target = "AWSSupport_20130415.ResolveCase";
request.Headers["X-Amz-Target"] = target;
request.Headers["Content-Type"] = "application/x-amz-json-1.1";
request.Headers[Amazon.Util.HeaderKeys.XAmzApiVersion] = "2013-04-15";
request.HttpMethod = "POST";
request.ResourcePath = "/";
using (StringWriter stringWriter = new StringWriter(CultureInfo.InvariantCulture))
{
JsonWriter writer = new JsonWriter(stringWriter);
writer.WriteObjectStart();
var context = new JsonMarshallerContext(request, writer);
if(publicRequest.IsSetCaseId())
{
context.Writer.WritePropertyName("caseId");
context.Writer.Write(publicRequest.CaseId);
}
writer.WriteObjectEnd();
string snippet = stringWriter.ToString();
request.Content = System.Text.Encoding.UTF8.GetBytes(snippet);
}
return request;
}
private static ResolveCaseRequestMarshaller _instance = new ResolveCaseRequestMarshaller();
internal static ResolveCaseRequestMarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResolveCaseRequestMarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ResolveCase operation
/// </summary>
public class ResolveCaseResponseUnmarshaller : JsonResponseUnmarshaller
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public override AmazonWebServiceResponse Unmarshall(JsonUnmarshallerContext context)
{
ResolveCaseResponse response = new ResolveCaseResponse();
context.Read();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("finalCaseStatus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.FinalCaseStatus = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("initialCaseStatus", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
response.InitialCaseStatus = unmarshaller.Unmarshall(context);
continue;
}
}
return response;
}
/// <summary>
/// Unmarshaller error response to exception.
/// </summary>
/// <param name="context"></param>
/// <param name="innerException"></param>
/// <param name="statusCode"></param>
/// <returns></returns>
public override AmazonServiceException UnmarshallException(JsonUnmarshallerContext context, Exception innerException, HttpStatusCode statusCode)
{
var errorResponse = JsonErrorResponseUnmarshaller.GetInstance().Unmarshall(context);
errorResponse.InnerException = innerException;
errorResponse.StatusCode = statusCode;
var responseBodyBytes = context.GetResponseBodyBytes();
using (var streamCopy = new MemoryStream(responseBodyBytes))
using (var contextCopy = new JsonUnmarshallerContext(streamCopy, false, null))
{
if (errorResponse.Code != null && errorResponse.Code.Equals("CaseIdNotFound"))
{
return CaseIdNotFoundExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
if (errorResponse.Code != null && errorResponse.Code.Equals("InternalServerError"))
{
return InternalServerErrorExceptionUnmarshaller.Instance.Unmarshall(contextCopy, errorResponse);
}
}
return new AmazonAWSSupportException(errorResponse.Message, errorResponse.InnerException, errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
}
private static ResolveCaseResponseUnmarshaller _instance = new ResolveCaseResponseUnmarshaller();
internal static ResolveCaseResponseUnmarshaller GetInstance()
{
return _instance;
}
/// <summary>
/// Gets the singleton.
/// </summary>
public static ResolveCaseResponseUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 120 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for Service Object
/// </summary>
public class ServiceUnmarshaller : IUnmarshaller<Service, XmlUnmarshallerContext>, IUnmarshaller<Service, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
Service IUnmarshaller<Service, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public Service Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
Service unmarshalledObject = new Service();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("categories", targetDepth))
{
var unmarshaller = new ListUnmarshaller<Category, CategoryUnmarshaller>(CategoryUnmarshaller.Instance);
unmarshalledObject.Categories = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("code", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Code = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Name = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static ServiceUnmarshaller _instance = new ServiceUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ServiceUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 104 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for SeverityLevel Object
/// </summary>
public class SeverityLevelUnmarshaller : IUnmarshaller<SeverityLevel, XmlUnmarshallerContext>, IUnmarshaller<SeverityLevel, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SeverityLevel IUnmarshaller<SeverityLevel, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public SeverityLevel Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SeverityLevel unmarshalledObject = new SeverityLevel();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("code", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Code = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Name = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static SeverityLevelUnmarshaller _instance = new SeverityLevelUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SeverityLevelUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 98 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for SupportedHour Object
/// </summary>
public class SupportedHourUnmarshaller : IUnmarshaller<SupportedHour, XmlUnmarshallerContext>, IUnmarshaller<SupportedHour, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SupportedHour IUnmarshaller<SupportedHour, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public SupportedHour Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SupportedHour unmarshalledObject = new SupportedHour();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("endTime", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.EndTime = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("startTime", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.StartTime = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static SupportedHourUnmarshaller _instance = new SupportedHourUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SupportedHourUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 98 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for SupportedLanguage Object
/// </summary>
public class SupportedLanguageUnmarshaller : IUnmarshaller<SupportedLanguage, XmlUnmarshallerContext>, IUnmarshaller<SupportedLanguage, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
SupportedLanguage IUnmarshaller<SupportedLanguage, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public SupportedLanguage Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
SupportedLanguage unmarshalledObject = new SupportedLanguage();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("code", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Code = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("display", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Display = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("language", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Language = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static SupportedLanguageUnmarshaller _instance = new SupportedLanguageUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static SupportedLanguageUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 104 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for ThrottlingException Object
/// </summary>
public class ThrottlingExceptionUnmarshaller : IErrorResponseUnmarshaller<ThrottlingException, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public ThrottlingException Unmarshall(JsonUnmarshallerContext context)
{
return this.Unmarshall(context, new Amazon.Runtime.Internal.ErrorResponse());
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <param name="errorResponse"></param>
/// <returns></returns>
public ThrottlingException Unmarshall(JsonUnmarshallerContext context, Amazon.Runtime.Internal.ErrorResponse errorResponse)
{
context.Read();
ThrottlingException unmarshalledObject = new ThrottlingException(errorResponse.Message, errorResponse.InnerException,
errorResponse.Type, errorResponse.Code, errorResponse.RequestId, errorResponse.StatusCode);
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
}
return unmarshalledObject;
}
private static ThrottlingExceptionUnmarshaller _instance = new ThrottlingExceptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static ThrottlingExceptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 85 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for TrustedAdvisorCategorySpecificSummary Object
/// </summary>
public class TrustedAdvisorCategorySpecificSummaryUnmarshaller : IUnmarshaller<TrustedAdvisorCategorySpecificSummary, XmlUnmarshallerContext>, IUnmarshaller<TrustedAdvisorCategorySpecificSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
TrustedAdvisorCategorySpecificSummary IUnmarshaller<TrustedAdvisorCategorySpecificSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public TrustedAdvisorCategorySpecificSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
TrustedAdvisorCategorySpecificSummary unmarshalledObject = new TrustedAdvisorCategorySpecificSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("costOptimizing", targetDepth))
{
var unmarshaller = TrustedAdvisorCostOptimizingSummaryUnmarshaller.Instance;
unmarshalledObject.CostOptimizing = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TrustedAdvisorCategorySpecificSummaryUnmarshaller _instance = new TrustedAdvisorCategorySpecificSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TrustedAdvisorCategorySpecificSummaryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 92 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for TrustedAdvisorCheckDescription Object
/// </summary>
public class TrustedAdvisorCheckDescriptionUnmarshaller : IUnmarshaller<TrustedAdvisorCheckDescription, XmlUnmarshallerContext>, IUnmarshaller<TrustedAdvisorCheckDescription, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
TrustedAdvisorCheckDescription IUnmarshaller<TrustedAdvisorCheckDescription, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public TrustedAdvisorCheckDescription Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
TrustedAdvisorCheckDescription unmarshalledObject = new TrustedAdvisorCheckDescription();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("category", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Category = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("description", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Description = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("id", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Id = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("metadata", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.Metadata = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("name", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Name = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TrustedAdvisorCheckDescriptionUnmarshaller _instance = new TrustedAdvisorCheckDescriptionUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TrustedAdvisorCheckDescriptionUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 116 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for TrustedAdvisorCheckRefreshStatus Object
/// </summary>
public class TrustedAdvisorCheckRefreshStatusUnmarshaller : IUnmarshaller<TrustedAdvisorCheckRefreshStatus, XmlUnmarshallerContext>, IUnmarshaller<TrustedAdvisorCheckRefreshStatus, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
TrustedAdvisorCheckRefreshStatus IUnmarshaller<TrustedAdvisorCheckRefreshStatus, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public TrustedAdvisorCheckRefreshStatus Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
TrustedAdvisorCheckRefreshStatus unmarshalledObject = new TrustedAdvisorCheckRefreshStatus();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("checkId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CheckId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("millisUntilNextRefreshable", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.MillisUntilNextRefreshable = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TrustedAdvisorCheckRefreshStatusUnmarshaller _instance = new TrustedAdvisorCheckRefreshStatusUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TrustedAdvisorCheckRefreshStatusUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 104 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for TrustedAdvisorCheckResult Object
/// </summary>
public class TrustedAdvisorCheckResultUnmarshaller : IUnmarshaller<TrustedAdvisorCheckResult, XmlUnmarshallerContext>, IUnmarshaller<TrustedAdvisorCheckResult, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
TrustedAdvisorCheckResult IUnmarshaller<TrustedAdvisorCheckResult, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public TrustedAdvisorCheckResult Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
TrustedAdvisorCheckResult unmarshalledObject = new TrustedAdvisorCheckResult();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("categorySpecificSummary", targetDepth))
{
var unmarshaller = TrustedAdvisorCategorySpecificSummaryUnmarshaller.Instance;
unmarshalledObject.CategorySpecificSummary = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("checkId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CheckId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("flaggedResources", targetDepth))
{
var unmarshaller = new ListUnmarshaller<TrustedAdvisorResourceDetail, TrustedAdvisorResourceDetailUnmarshaller>(TrustedAdvisorResourceDetailUnmarshaller.Instance);
unmarshalledObject.FlaggedResources = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("resourcesSummary", targetDepth))
{
var unmarshaller = TrustedAdvisorResourcesSummaryUnmarshaller.Instance;
unmarshalledObject.ResourcesSummary = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("timestamp", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Timestamp = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TrustedAdvisorCheckResultUnmarshaller _instance = new TrustedAdvisorCheckResultUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TrustedAdvisorCheckResultUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 122 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for TrustedAdvisorCheckSummary Object
/// </summary>
public class TrustedAdvisorCheckSummaryUnmarshaller : IUnmarshaller<TrustedAdvisorCheckSummary, XmlUnmarshallerContext>, IUnmarshaller<TrustedAdvisorCheckSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
TrustedAdvisorCheckSummary IUnmarshaller<TrustedAdvisorCheckSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public TrustedAdvisorCheckSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
TrustedAdvisorCheckSummary unmarshalledObject = new TrustedAdvisorCheckSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("categorySpecificSummary", targetDepth))
{
var unmarshaller = TrustedAdvisorCategorySpecificSummaryUnmarshaller.Instance;
unmarshalledObject.CategorySpecificSummary = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("checkId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.CheckId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("hasFlaggedResources", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.HasFlaggedResources = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("resourcesSummary", targetDepth))
{
var unmarshaller = TrustedAdvisorResourcesSummaryUnmarshaller.Instance;
unmarshalledObject.ResourcesSummary = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("timestamp", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Timestamp = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TrustedAdvisorCheckSummaryUnmarshaller _instance = new TrustedAdvisorCheckSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TrustedAdvisorCheckSummaryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 122 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for TrustedAdvisorCostOptimizingSummary Object
/// </summary>
public class TrustedAdvisorCostOptimizingSummaryUnmarshaller : IUnmarshaller<TrustedAdvisorCostOptimizingSummary, XmlUnmarshallerContext>, IUnmarshaller<TrustedAdvisorCostOptimizingSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
TrustedAdvisorCostOptimizingSummary IUnmarshaller<TrustedAdvisorCostOptimizingSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public TrustedAdvisorCostOptimizingSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
TrustedAdvisorCostOptimizingSummary unmarshalledObject = new TrustedAdvisorCostOptimizingSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("estimatedMonthlySavings", targetDepth))
{
var unmarshaller = DoubleUnmarshaller.Instance;
unmarshalledObject.EstimatedMonthlySavings = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("estimatedPercentMonthlySavings", targetDepth))
{
var unmarshaller = DoubleUnmarshaller.Instance;
unmarshalledObject.EstimatedPercentMonthlySavings = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TrustedAdvisorCostOptimizingSummaryUnmarshaller _instance = new TrustedAdvisorCostOptimizingSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TrustedAdvisorCostOptimizingSummaryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 98 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for TrustedAdvisorResourceDetail Object
/// </summary>
public class TrustedAdvisorResourceDetailUnmarshaller : IUnmarshaller<TrustedAdvisorResourceDetail, XmlUnmarshallerContext>, IUnmarshaller<TrustedAdvisorResourceDetail, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
TrustedAdvisorResourceDetail IUnmarshaller<TrustedAdvisorResourceDetail, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public TrustedAdvisorResourceDetail Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
TrustedAdvisorResourceDetail unmarshalledObject = new TrustedAdvisorResourceDetail();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("isSuppressed", targetDepth))
{
var unmarshaller = BoolUnmarshaller.Instance;
unmarshalledObject.IsSuppressed = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("metadata", targetDepth))
{
var unmarshaller = new ListUnmarshaller<string, StringUnmarshaller>(StringUnmarshaller.Instance);
unmarshalledObject.Metadata = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("region", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Region = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("resourceId", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.ResourceId = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("status", targetDepth))
{
var unmarshaller = StringUnmarshaller.Instance;
unmarshalledObject.Status = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TrustedAdvisorResourceDetailUnmarshaller _instance = new TrustedAdvisorResourceDetailUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TrustedAdvisorResourceDetailUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 116 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Globalization;
using System.IO;
using System.Net;
using System.Text;
using System.Xml.Serialization;
using Amazon.AWSSupport.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Transform;
using Amazon.Runtime.Internal.Util;
using ThirdParty.Json.LitJson;
namespace Amazon.AWSSupport.Model.Internal.MarshallTransformations
{
/// <summary>
/// Response Unmarshaller for TrustedAdvisorResourcesSummary Object
/// </summary>
public class TrustedAdvisorResourcesSummaryUnmarshaller : IUnmarshaller<TrustedAdvisorResourcesSummary, XmlUnmarshallerContext>, IUnmarshaller<TrustedAdvisorResourcesSummary, JsonUnmarshallerContext>
{
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
TrustedAdvisorResourcesSummary IUnmarshaller<TrustedAdvisorResourcesSummary, XmlUnmarshallerContext>.Unmarshall(XmlUnmarshallerContext context)
{
throw new NotImplementedException();
}
/// <summary>
/// Unmarshaller the response from the service to the response class.
/// </summary>
/// <param name="context"></param>
/// <returns></returns>
public TrustedAdvisorResourcesSummary Unmarshall(JsonUnmarshallerContext context)
{
context.Read();
if (context.CurrentTokenType == JsonToken.Null)
return null;
TrustedAdvisorResourcesSummary unmarshalledObject = new TrustedAdvisorResourcesSummary();
int targetDepth = context.CurrentDepth;
while (context.ReadAtDepth(targetDepth))
{
if (context.TestExpression("resourcesFlagged", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.ResourcesFlagged = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("resourcesIgnored", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.ResourcesIgnored = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("resourcesProcessed", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.ResourcesProcessed = unmarshaller.Unmarshall(context);
continue;
}
if (context.TestExpression("resourcesSuppressed", targetDepth))
{
var unmarshaller = LongUnmarshaller.Instance;
unmarshalledObject.ResourcesSuppressed = unmarshaller.Unmarshall(context);
continue;
}
}
return unmarshalledObject;
}
private static TrustedAdvisorResourcesSummaryUnmarshaller _instance = new TrustedAdvisorResourcesSummaryUnmarshaller();
/// <summary>
/// Gets the singleton.
/// </summary>
public static TrustedAdvisorResourcesSummaryUnmarshaller Instance
{
get
{
return _instance;
}
}
}
}
| 110 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace Amazon.AWSSupport.Model
{
/// <summary>
/// Paginators for the AWSSupport service
///</summary>
public class AWSSupportPaginatorFactory : IAWSSupportPaginatorFactory
{
private readonly IAmazonAWSSupport client;
internal AWSSupportPaginatorFactory(IAmazonAWSSupport client)
{
this.client = client;
}
/// <summary>
/// Paginator for DescribeCases operation
///</summary>
public IDescribeCasesPaginator DescribeCases(DescribeCasesRequest request)
{
return new DescribeCasesPaginator(this.client, request);
}
/// <summary>
/// Paginator for DescribeCommunications operation
///</summary>
public IDescribeCommunicationsPaginator DescribeCommunications(DescribeCommunicationsRequest request)
{
return new DescribeCommunicationsPaginator(this.client, request);
}
}
}
| 54 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AWSSupport.Model
{
/// <summary>
/// Base class for DescribeCases paginators.
/// </summary>
internal sealed partial class DescribeCasesPaginator : IPaginator<DescribeCasesResponse>, IDescribeCasesPaginator
{
private readonly IAmazonAWSSupport _client;
private readonly DescribeCasesRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeCasesResponse> Responses => new PaginatedResponse<DescribeCasesResponse>(this);
/// <summary>
/// Enumerable containing all of the Cases
/// </summary>
public IPaginatedEnumerable<CaseDetails> Cases =>
new PaginatedResultKeyResponse<DescribeCasesResponse, CaseDetails>(this, (i) => i.Cases);
internal DescribeCasesPaginator(IAmazonAWSSupport client, DescribeCasesRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeCasesResponse> IPaginator<DescribeCasesResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeCasesResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeCases(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeCasesResponse> IPaginator<DescribeCasesResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeCasesResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeCasesAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
}
| 97 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Text;
using System.Collections;
using System.Threading;
using System.Threading.Tasks;
using Amazon.Runtime;
namespace Amazon.AWSSupport.Model
{
/// <summary>
/// Base class for DescribeCommunications paginators.
/// </summary>
internal sealed partial class DescribeCommunicationsPaginator : IPaginator<DescribeCommunicationsResponse>, IDescribeCommunicationsPaginator
{
private readonly IAmazonAWSSupport _client;
private readonly DescribeCommunicationsRequest _request;
private int _isPaginatorInUse = 0;
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
public IPaginatedEnumerable<DescribeCommunicationsResponse> Responses => new PaginatedResponse<DescribeCommunicationsResponse>(this);
/// <summary>
/// Enumerable containing all of the Communications
/// </summary>
public IPaginatedEnumerable<Communication> Communications =>
new PaginatedResultKeyResponse<DescribeCommunicationsResponse, Communication>(this, (i) => i.Communications);
internal DescribeCommunicationsPaginator(IAmazonAWSSupport client, DescribeCommunicationsRequest request)
{
this._client = client;
this._request = request;
}
#if BCL
IEnumerable<DescribeCommunicationsResponse> IPaginator<DescribeCommunicationsResponse>.Paginate()
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeCommunicationsResponse response;
do
{
_request.NextToken = nextToken;
response = _client.DescribeCommunications(_request);
nextToken = response.NextToken;
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
#if AWS_ASYNC_ENUMERABLES_API
async IAsyncEnumerable<DescribeCommunicationsResponse> IPaginator<DescribeCommunicationsResponse>.PaginateAsync(CancellationToken cancellationToken = default)
{
if (Interlocked.Exchange(ref _isPaginatorInUse, 1) != 0)
{
throw new System.InvalidOperationException("Paginator has already been consumed and cannot be reused. Please create a new instance.");
}
PaginatorUtils.SetUserAgentAdditionOnRequest(_request);
var nextToken = _request.NextToken;
DescribeCommunicationsResponse response;
do
{
_request.NextToken = nextToken;
response = await _client.DescribeCommunicationsAsync(_request, cancellationToken).ConfigureAwait(false);
nextToken = response.NextToken;
cancellationToken.ThrowIfCancellationRequested();
yield return response;
}
while (!string.IsNullOrEmpty(nextToken));
}
#endif
}
}
| 97 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
namespace Amazon.AWSSupport.Model
{
/// <summary>
/// Paginators for the AWSSupport service
///</summary>
public interface IAWSSupportPaginatorFactory
{
/// <summary>
/// Paginator for DescribeCases operation
///</summary>
IDescribeCasesPaginator DescribeCases(DescribeCasesRequest request);
/// <summary>
/// Paginator for DescribeCommunications operation
///</summary>
IDescribeCommunicationsPaginator DescribeCommunications(DescribeCommunicationsRequest request);
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AWSSupport.Model
{
/// <summary>
/// Paginator for the DescribeCases operation
///</summary>
public interface IDescribeCasesPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<DescribeCasesResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Cases
/// </summary>
IPaginatedEnumerable<CaseDetails> Cases { get; }
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.AWSSupport.Model
{
/// <summary>
/// Paginator for the DescribeCommunications operation
///</summary>
public interface IDescribeCommunicationsPaginator
{
/// <summary>
/// Enumerable containing all full responses for the operation
/// </summary>
IPaginatedEnumerable<DescribeCommunicationsResponse> Responses { get; }
/// <summary>
/// Enumerable containing all of the Communications
/// </summary>
IPaginatedEnumerable<Communication> Communications { get; }
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using Amazon.AWSSupport.Model;
using Amazon.AWSSupport.Model.Internal.MarshallTransformations;
using Amazon.AWSSupport.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AWSSupport
{
/// <summary>
/// Implementation for accessing AWSSupport
///
/// Amazon Web Services Support
/// <para>
/// The <i>Amazon Web Services Support API Reference</i> is intended for programmers who
/// need detailed information about the Amazon Web Services Support operations and data
/// types. You can use the API to manage your support cases programmatically. The Amazon
/// Web Services Support API uses HTTP methods that return results in JSON format.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// You can also use the Amazon Web Services Support API to access features for <a href="http://aws.amazon.com/premiumsupport/trustedadvisor/">Trusted
/// Advisor</a>. You can return a list of checks and their descriptions, get check results,
/// specify checks to refresh, and get the refresh status of checks.
/// </para>
///
/// <para>
/// You can manage your support cases with the following Amazon Web Services Support API
/// operations:
/// </para>
/// <ul> <li>
/// <para>
/// The <a>CreateCase</a>, <a>DescribeCases</a>, <a>DescribeAttachment</a>, and <a>ResolveCase</a>
/// operations create Amazon Web Services Support cases, retrieve information about cases,
/// and resolve cases.
/// </para>
/// </li> <li>
/// <para>
/// The <a>DescribeCommunications</a>, <a>AddCommunicationToCase</a>, and <a>AddAttachmentsToSet</a>
/// operations retrieve and add communications and attachments to Amazon Web Services
/// Support cases.
/// </para>
/// </li> <li>
/// <para>
/// The <a>DescribeServices</a> and <a>DescribeSeverityLevels</a> operations return Amazon
/// Web Service names, service codes, service categories, and problem severity levels.
/// You use these values when you call the <a>CreateCase</a> operation.
/// </para>
/// </li> </ul>
/// <para>
/// You can also use the Amazon Web Services Support API to call the Trusted Advisor operations.
/// For more information, see <a href="https://docs.aws.amazon.com/">Trusted Advisor</a>
/// in the <i>Amazon Web Services Support User Guide</i>.
/// </para>
///
/// <para>
/// For authentication of requests, Amazon Web Services Support uses <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature
/// Version 4 Signing Process</a>.
/// </para>
///
/// <para>
/// For more information about this service and the endpoints to use, see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
public partial class AmazonAWSSupportClient : AmazonServiceClient, IAmazonAWSSupport
{
private static IServiceMetadata serviceMetadata = new AmazonAWSSupportMetadata();
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
private IAWSSupportPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAWSSupportPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AWSSupportPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Constructors
/// <summary>
/// Constructs AmazonAWSSupportClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonAWSSupportClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSSupportConfig()) { }
/// <summary>
/// Constructs AmazonAWSSupportClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonAWSSupportClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSSupportConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAWSSupportClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonAWSSupportClient Configuration Object</param>
public AmazonAWSSupportClient(AmazonAWSSupportConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAWSSupportClient(AWSCredentials credentials)
: this(credentials, new AmazonAWSSupportConfig())
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSSupportClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAWSSupportConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Credentials and an
/// AmazonAWSSupportClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAWSSupportClient Configuration Object</param>
public AmazonAWSSupportClient(AWSCredentials credentials, AmazonAWSSupportConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSSupportConfig())
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSSupportConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSSupportClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAWSSupportClient Configuration Object</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAWSSupportConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSSupportConfig())
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSSupportConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSSupportClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonAWSSupportClient Configuration Object</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAWSSupportConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customize the pipeline
/// </summary>
/// <param name="pipeline"></param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAWSSupportEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region AddAttachmentsToSet
/// <summary>
/// Adds one or more attachments to an attachment set.
///
///
/// <para>
/// An attachment set is a temporary container for attachments that you add to a case
/// or case communication. The set is available for 1 hour after it's created. The <code>expiryTime</code>
/// returned in the response is when the set expires.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddAttachmentsToSet service method.</param>
///
/// <returns>The response from the AddAttachmentsToSet service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentLimitExceededException">
/// The limit for the number of attachment sets created in a short period of time has
/// been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetSizeLimitExceededException">
/// A limit for the size of an attachment set has been exceeded. The limits are three
/// attachments and 5 MB per attachment.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet">REST API Reference for AddAttachmentsToSet Operation</seealso>
public virtual AddAttachmentsToSetResponse AddAttachmentsToSet(AddAttachmentsToSetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AddAttachmentsToSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddAttachmentsToSetResponseUnmarshaller.Instance;
return Invoke<AddAttachmentsToSetResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the AddAttachmentsToSet operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the AddAttachmentsToSet operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddAttachmentsToSet
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet">REST API Reference for AddAttachmentsToSet Operation</seealso>
public virtual IAsyncResult BeginAddAttachmentsToSet(AddAttachmentsToSetRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = AddAttachmentsToSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddAttachmentsToSetResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the AddAttachmentsToSet operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginAddAttachmentsToSet.</param>
///
/// <returns>Returns a AddAttachmentsToSetResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet">REST API Reference for AddAttachmentsToSet Operation</seealso>
public virtual AddAttachmentsToSetResponse EndAddAttachmentsToSet(IAsyncResult asyncResult)
{
return EndInvoke<AddAttachmentsToSetResponse>(asyncResult);
}
#endregion
#region AddCommunicationToCase
/// <summary>
/// Adds additional customer communication to an Amazon Web Services Support case. Use
/// the <code>caseId</code> parameter to identify the case to which to add communication.
/// You can list a set of email addresses to copy on the communication by using the <code>ccEmailAddresses</code>
/// parameter. The <code>communicationBody</code> value contains the text of the communication.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddCommunicationToCase service method.</param>
///
/// <returns>The response from the AddCommunicationToCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase">REST API Reference for AddCommunicationToCase Operation</seealso>
public virtual AddCommunicationToCaseResponse AddCommunicationToCase(AddCommunicationToCaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AddCommunicationToCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddCommunicationToCaseResponseUnmarshaller.Instance;
return Invoke<AddCommunicationToCaseResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the AddCommunicationToCase operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the AddCommunicationToCase operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddCommunicationToCase
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase">REST API Reference for AddCommunicationToCase Operation</seealso>
public virtual IAsyncResult BeginAddCommunicationToCase(AddCommunicationToCaseRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = AddCommunicationToCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddCommunicationToCaseResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the AddCommunicationToCase operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginAddCommunicationToCase.</param>
///
/// <returns>Returns a AddCommunicationToCaseResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase">REST API Reference for AddCommunicationToCase Operation</seealso>
public virtual AddCommunicationToCaseResponse EndAddCommunicationToCase(IAsyncResult asyncResult)
{
return EndInvoke<AddCommunicationToCaseResponse>(asyncResult);
}
#endregion
#region CreateCase
/// <summary>
/// Creates a case in the Amazon Web Services Support Center. This operation is similar
/// to how you create a case in the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.
///
///
/// <para>
/// The Amazon Web Services Support API doesn't support requesting service limit increases.
/// You can submit a service limit increase in the following ways:
/// </para>
/// <ul> <li>
/// <para>
/// Submit a request from the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.
/// </para>
/// </li> <li>
/// <para>
/// Use the Service Quotas <a href="https://docs.aws.amazon.com/servicequotas/2019-06-24/apireference/API_RequestServiceQuotaIncrease.html">RequestServiceQuotaIncrease</a>
/// operation.
/// </para>
/// </li> </ul>
/// <para>
/// A successful <code>CreateCase</code> request returns an Amazon Web Services Support
/// case number. You can use the <a>DescribeCases</a> operation and specify the case number
/// to get existing Amazon Web Services Support cases. After you create a case, use the
/// <a>AddCommunicationToCase</a> operation to add additional communication or attachments
/// to an existing case.
/// </para>
///
/// <para>
/// The <code>caseId</code> is separate from the <code>displayId</code> that appears in
/// the <a href="https://console.aws.amazon.com/support">Amazon Web Services Support Center</a>.
/// Use the <a>DescribeCases</a> operation to get the <code>displayId</code>.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateCase service method.</param>
///
/// <returns>The response from the CreateCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseCreationLimitExceededException">
/// The case creation limit for the account has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase">REST API Reference for CreateCase Operation</seealso>
public virtual CreateCaseResponse CreateCase(CreateCaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCaseResponseUnmarshaller.Instance;
return Invoke<CreateCaseResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the CreateCase operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateCase operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateCase
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase">REST API Reference for CreateCase Operation</seealso>
public virtual IAsyncResult BeginCreateCase(CreateCaseRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCaseResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the CreateCase operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateCase.</param>
///
/// <returns>Returns a CreateCaseResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase">REST API Reference for CreateCase Operation</seealso>
public virtual CreateCaseResponse EndCreateCase(IAsyncResult asyncResult)
{
return EndInvoke<CreateCaseResponse>(asyncResult);
}
#endregion
#region DescribeAttachment
/// <summary>
/// Returns the attachment that has the specified ID. Attachments can include screenshots,
/// error logs, or other files that describe your issue. Attachment IDs are generated
/// by the case management system when you add an attachment to a case or case communication.
/// Attachment IDs are returned in the <a>AttachmentDetails</a> objects that are returned
/// by the <a>DescribeCommunications</a> operation.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAttachment service method.</param>
///
/// <returns>The response from the DescribeAttachment service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentIdNotFoundException">
/// An attachment with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.DescribeAttachmentLimitExceededException">
/// The limit for the number of <a>DescribeAttachment</a> requests in a short period of
/// time has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment">REST API Reference for DescribeAttachment Operation</seealso>
public virtual DescribeAttachmentResponse DescribeAttachment(DescribeAttachmentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAttachmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAttachmentResponseUnmarshaller.Instance;
return Invoke<DescribeAttachmentResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeAttachment operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeAttachment operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAttachment
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment">REST API Reference for DescribeAttachment Operation</seealso>
public virtual IAsyncResult BeginDescribeAttachment(DescribeAttachmentRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAttachmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAttachmentResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeAttachment operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAttachment.</param>
///
/// <returns>Returns a DescribeAttachmentResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment">REST API Reference for DescribeAttachment Operation</seealso>
public virtual DescribeAttachmentResponse EndDescribeAttachment(IAsyncResult asyncResult)
{
return EndInvoke<DescribeAttachmentResponse>(asyncResult);
}
#endregion
#region DescribeCases
/// <summary>
/// Returns a list of cases that you specify by passing one or more case IDs. You can
/// use the <code>afterTime</code> and <code>beforeTime</code> parameters to filter the
/// cases by date. You can set values for the <code>includeResolvedCases</code> and <code>includeCommunications</code>
/// parameters to specify how much information to return.
///
///
/// <para>
/// The response returns the following in JSON format:
/// </para>
/// <ul> <li>
/// <para>
/// One or more <a href="https://docs.aws.amazon.com/awssupport/latest/APIReference/API_CaseDetails.html">CaseDetails</a>
/// data types.
/// </para>
/// </li> <li>
/// <para>
/// One or more <code>nextToken</code> values, which specify where to paginate the returned
/// records represented by the <code>CaseDetails</code> objects.
/// </para>
/// </li> </ul>
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request might return an error.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCases service method.</param>
///
/// <returns>The response from the DescribeCases service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases">REST API Reference for DescribeCases Operation</seealso>
public virtual DescribeCasesResponse DescribeCases(DescribeCasesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCasesResponseUnmarshaller.Instance;
return Invoke<DescribeCasesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeCases operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeCases operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeCases
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases">REST API Reference for DescribeCases Operation</seealso>
public virtual IAsyncResult BeginDescribeCases(DescribeCasesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCasesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeCases operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeCases.</param>
///
/// <returns>Returns a DescribeCasesResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases">REST API Reference for DescribeCases Operation</seealso>
public virtual DescribeCasesResponse EndDescribeCases(IAsyncResult asyncResult)
{
return EndInvoke<DescribeCasesResponse>(asyncResult);
}
#endregion
#region DescribeCommunications
/// <summary>
/// Returns communications and attachments for one or more support cases. Use the <code>afterTime</code>
/// and <code>beforeTime</code> parameters to filter by date. You can use the <code>caseId</code>
/// parameter to restrict the results to a specific case.
///
///
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request for data might cause an error.
/// </para>
///
/// <para>
/// You can use the <code>maxResults</code> and <code>nextToken</code> parameters to control
/// the pagination of the results. Set <code>maxResults</code> to the number of cases
/// that you want to display on each page, and use <code>nextToken</code> to specify the
/// resumption of pagination.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCommunications service method.</param>
///
/// <returns>The response from the DescribeCommunications service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications">REST API Reference for DescribeCommunications Operation</seealso>
public virtual DescribeCommunicationsResponse DescribeCommunications(DescribeCommunicationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCommunicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCommunicationsResponseUnmarshaller.Instance;
return Invoke<DescribeCommunicationsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeCommunications operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeCommunications operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeCommunications
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications">REST API Reference for DescribeCommunications Operation</seealso>
public virtual IAsyncResult BeginDescribeCommunications(DescribeCommunicationsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCommunicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCommunicationsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeCommunications operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeCommunications.</param>
///
/// <returns>Returns a DescribeCommunicationsResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications">REST API Reference for DescribeCommunications Operation</seealso>
public virtual DescribeCommunicationsResponse EndDescribeCommunications(IAsyncResult asyncResult)
{
return EndInvoke<DescribeCommunicationsResponse>(asyncResult);
}
#endregion
#region DescribeCreateCaseOptions
/// <summary>
/// Returns a list of CreateCaseOption types along with the corresponding supported hours
/// and language availability. You can specify the <code>language</code> <code>categoryCode</code>,
/// <code>issueType</code> and <code>serviceCode</code> used to retrieve the CreateCaseOptions.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCreateCaseOptions service method.</param>
///
/// <returns>The response from the DescribeCreateCaseOptions service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCreateCaseOptions">REST API Reference for DescribeCreateCaseOptions Operation</seealso>
public virtual DescribeCreateCaseOptionsResponse DescribeCreateCaseOptions(DescribeCreateCaseOptionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCreateCaseOptionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCreateCaseOptionsResponseUnmarshaller.Instance;
return Invoke<DescribeCreateCaseOptionsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeCreateCaseOptions operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeCreateCaseOptions operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeCreateCaseOptions
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCreateCaseOptions">REST API Reference for DescribeCreateCaseOptions Operation</seealso>
public virtual IAsyncResult BeginDescribeCreateCaseOptions(DescribeCreateCaseOptionsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCreateCaseOptionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCreateCaseOptionsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeCreateCaseOptions operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeCreateCaseOptions.</param>
///
/// <returns>Returns a DescribeCreateCaseOptionsResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCreateCaseOptions">REST API Reference for DescribeCreateCaseOptions Operation</seealso>
public virtual DescribeCreateCaseOptionsResponse EndDescribeCreateCaseOptions(IAsyncResult asyncResult)
{
return EndInvoke<DescribeCreateCaseOptionsResponse>(asyncResult);
}
#endregion
#region DescribeServices
/// <summary>
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your <a>CreateCase</a>
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that appear in the <b>Service</b>
/// and <b>Category</b> lists on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. The values in those fields don't necessarily match the service codes
/// and categories returned by the <code>DescribeServices</code> operation. Always use
/// the service codes and categories that the <code>DescribeServices</code> operation
/// returns, so that you have the most recent set of service and category codes.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
public virtual DescribeServicesResponse DescribeServices()
{
return DescribeServices(new DescribeServicesRequest());
}
/// <summary>
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your <a>CreateCase</a>
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that appear in the <b>Service</b>
/// and <b>Category</b> lists on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. The values in those fields don't necessarily match the service codes
/// and categories returned by the <code>DescribeServices</code> operation. Always use
/// the service codes and categories that the <code>DescribeServices</code> operation
/// returns, so that you have the most recent set of service and category codes.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeServices service method.</param>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
public virtual DescribeServicesResponse DescribeServices(DescribeServicesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeServicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeServicesResponseUnmarshaller.Instance;
return Invoke<DescribeServicesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeServices operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeServices operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeServices
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
public virtual IAsyncResult BeginDescribeServices(DescribeServicesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeServicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeServicesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeServices operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeServices.</param>
///
/// <returns>Returns a DescribeServicesResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
public virtual DescribeServicesResponse EndDescribeServices(IAsyncResult asyncResult)
{
return EndInvoke<DescribeServicesResponse>(asyncResult);
}
#endregion
#region DescribeSeverityLevels
/// <summary>
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the <a>CaseDetails</a> data type that you include
/// for a <a>CreateCase</a> request.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
public virtual DescribeSeverityLevelsResponse DescribeSeverityLevels()
{
return DescribeSeverityLevels(new DescribeSeverityLevelsRequest());
}
/// <summary>
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the <a>CaseDetails</a> data type that you include
/// for a <a>CreateCase</a> request.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSeverityLevels service method.</param>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
public virtual DescribeSeverityLevelsResponse DescribeSeverityLevels(DescribeSeverityLevelsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSeverityLevelsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSeverityLevelsResponseUnmarshaller.Instance;
return Invoke<DescribeSeverityLevelsResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeSeverityLevels operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeSeverityLevels operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeSeverityLevels
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
public virtual IAsyncResult BeginDescribeSeverityLevels(DescribeSeverityLevelsRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSeverityLevelsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSeverityLevelsResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeSeverityLevels operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeSeverityLevels.</param>
///
/// <returns>Returns a DescribeSeverityLevelsResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
public virtual DescribeSeverityLevelsResponse EndDescribeSeverityLevels(IAsyncResult asyncResult)
{
return EndInvoke<DescribeSeverityLevelsResponse>(asyncResult);
}
#endregion
#region DescribeSupportedLanguages
/// <summary>
/// Returns a list of supported languages for a specified <code>categoryCode</code>, <code>issueType</code>
/// and <code>serviceCode</code>. The returned supported languages will include a ISO
/// 639-1 code for the <code>language</code>, and the language display name.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSupportedLanguages service method.</param>
///
/// <returns>The response from the DescribeSupportedLanguages service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSupportedLanguages">REST API Reference for DescribeSupportedLanguages Operation</seealso>
public virtual DescribeSupportedLanguagesResponse DescribeSupportedLanguages(DescribeSupportedLanguagesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSupportedLanguagesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSupportedLanguagesResponseUnmarshaller.Instance;
return Invoke<DescribeSupportedLanguagesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeSupportedLanguages operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeSupportedLanguages operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeSupportedLanguages
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSupportedLanguages">REST API Reference for DescribeSupportedLanguages Operation</seealso>
public virtual IAsyncResult BeginDescribeSupportedLanguages(DescribeSupportedLanguagesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSupportedLanguagesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSupportedLanguagesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeSupportedLanguages operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeSupportedLanguages.</param>
///
/// <returns>Returns a DescribeSupportedLanguagesResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSupportedLanguages">REST API Reference for DescribeSupportedLanguages Operation</seealso>
public virtual DescribeSupportedLanguagesResponse EndDescribeSupportedLanguages(IAsyncResult asyncResult)
{
return EndInvoke<DescribeSupportedLanguagesResponse>(asyncResult);
}
#endregion
#region DescribeTrustedAdvisorCheckRefreshStatuses
/// <summary>
/// Returns the refresh status of the Trusted Advisor checks that have the specified check
/// IDs. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a>
/// operation.
///
///
/// <para>
/// Some checks are refreshed automatically, and you can't return their refresh statuses
/// by using the <code>DescribeTrustedAdvisorCheckRefreshStatuses</code> operation. If
/// you call this operation for these checks, you might see an <code>InvalidParameterValue</code>
/// error.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckRefreshStatuses service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckRefreshStatuses service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses">REST API Reference for DescribeTrustedAdvisorCheckRefreshStatuses Operation</seealso>
public virtual DescribeTrustedAdvisorCheckRefreshStatusesResponse DescribeTrustedAdvisorCheckRefreshStatuses(DescribeTrustedAdvisorCheckRefreshStatusesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckRefreshStatusesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckRefreshStatusesResponseUnmarshaller.Instance;
return Invoke<DescribeTrustedAdvisorCheckRefreshStatusesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeTrustedAdvisorCheckRefreshStatuses operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckRefreshStatuses operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTrustedAdvisorCheckRefreshStatuses
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses">REST API Reference for DescribeTrustedAdvisorCheckRefreshStatuses Operation</seealso>
public virtual IAsyncResult BeginDescribeTrustedAdvisorCheckRefreshStatuses(DescribeTrustedAdvisorCheckRefreshStatusesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckRefreshStatusesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckRefreshStatusesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeTrustedAdvisorCheckRefreshStatuses operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTrustedAdvisorCheckRefreshStatuses.</param>
///
/// <returns>Returns a DescribeTrustedAdvisorCheckRefreshStatusesResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses">REST API Reference for DescribeTrustedAdvisorCheckRefreshStatuses Operation</seealso>
public virtual DescribeTrustedAdvisorCheckRefreshStatusesResponse EndDescribeTrustedAdvisorCheckRefreshStatuses(IAsyncResult asyncResult)
{
return EndInvoke<DescribeTrustedAdvisorCheckRefreshStatusesResponse>(asyncResult);
}
#endregion
#region DescribeTrustedAdvisorCheckResult
/// <summary>
/// Returns the results of the Trusted Advisor check that has the specified check ID.
/// You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckResult</a> object, which contains these
/// three objects:
/// </para>
/// <ul> <li>
/// <para>
/// <a>TrustedAdvisorCategorySpecificSummary</a>
/// </para>
/// </li> <li>
/// <para>
/// <a>TrustedAdvisorResourceDetail</a>
/// </para>
/// </li> <li>
/// <para>
/// <a>TrustedAdvisorResourcesSummary</a>
/// </para>
/// </li> </ul>
/// <para>
/// In addition, the response contains these fields:
/// </para>
/// <ul> <li>
/// <para>
/// <b>status</b> - The alert status of the check can be <code>ok</code> (green), <code>warning</code>
/// (yellow), <code>error</code> (red), or <code>not_available</code>.
/// </para>
/// </li> <li>
/// <para>
/// <b>timestamp</b> - The time of the last refresh of the check.
/// </para>
/// </li> <li>
/// <para>
/// <b>checkId</b> - The unique identifier for the check.
/// </para>
/// </li> </ul> <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckResult service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckResult service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult">REST API Reference for DescribeTrustedAdvisorCheckResult Operation</seealso>
public virtual DescribeTrustedAdvisorCheckResultResponse DescribeTrustedAdvisorCheckResult(DescribeTrustedAdvisorCheckResultRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckResultRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckResultResponseUnmarshaller.Instance;
return Invoke<DescribeTrustedAdvisorCheckResultResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeTrustedAdvisorCheckResult operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckResult operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTrustedAdvisorCheckResult
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult">REST API Reference for DescribeTrustedAdvisorCheckResult Operation</seealso>
public virtual IAsyncResult BeginDescribeTrustedAdvisorCheckResult(DescribeTrustedAdvisorCheckResultRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckResultRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckResultResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeTrustedAdvisorCheckResult operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTrustedAdvisorCheckResult.</param>
///
/// <returns>Returns a DescribeTrustedAdvisorCheckResultResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult">REST API Reference for DescribeTrustedAdvisorCheckResult Operation</seealso>
public virtual DescribeTrustedAdvisorCheckResultResponse EndDescribeTrustedAdvisorCheckResult(IAsyncResult asyncResult)
{
return EndInvoke<DescribeTrustedAdvisorCheckResultResponse>(asyncResult);
}
#endregion
#region DescribeTrustedAdvisorChecks
/// <summary>
/// Returns information about all available Trusted Advisor checks, including the name,
/// ID, category, description, and metadata. You must specify a language code.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckDescription</a> object for each check.
/// You must set the Amazon Web Services Region to us-east-1.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> <li>
/// <para>
/// The names and descriptions for Trusted Advisor checks are subject to change. We recommend
/// that you specify the check ID in your code to uniquely identify a check.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorChecks service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorChecks service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks">REST API Reference for DescribeTrustedAdvisorChecks Operation</seealso>
public virtual DescribeTrustedAdvisorChecksResponse DescribeTrustedAdvisorChecks(DescribeTrustedAdvisorChecksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorChecksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorChecksResponseUnmarshaller.Instance;
return Invoke<DescribeTrustedAdvisorChecksResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeTrustedAdvisorChecks operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorChecks operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTrustedAdvisorChecks
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks">REST API Reference for DescribeTrustedAdvisorChecks Operation</seealso>
public virtual IAsyncResult BeginDescribeTrustedAdvisorChecks(DescribeTrustedAdvisorChecksRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorChecksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorChecksResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeTrustedAdvisorChecks operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTrustedAdvisorChecks.</param>
///
/// <returns>Returns a DescribeTrustedAdvisorChecksResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks">REST API Reference for DescribeTrustedAdvisorChecks Operation</seealso>
public virtual DescribeTrustedAdvisorChecksResponse EndDescribeTrustedAdvisorChecks(IAsyncResult asyncResult)
{
return EndInvoke<DescribeTrustedAdvisorChecksResponse>(asyncResult);
}
#endregion
#region DescribeTrustedAdvisorCheckSummaries
/// <summary>
/// Returns the results for the Trusted Advisor check summaries for the check IDs that
/// you specified. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a>
/// operation.
///
///
/// <para>
/// The response contains an array of <a>TrustedAdvisorCheckSummary</a> objects.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckSummaries service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckSummaries service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries">REST API Reference for DescribeTrustedAdvisorCheckSummaries Operation</seealso>
public virtual DescribeTrustedAdvisorCheckSummariesResponse DescribeTrustedAdvisorCheckSummaries(DescribeTrustedAdvisorCheckSummariesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckSummariesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckSummariesResponseUnmarshaller.Instance;
return Invoke<DescribeTrustedAdvisorCheckSummariesResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the DescribeTrustedAdvisorCheckSummaries operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckSummaries operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTrustedAdvisorCheckSummaries
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries">REST API Reference for DescribeTrustedAdvisorCheckSummaries Operation</seealso>
public virtual IAsyncResult BeginDescribeTrustedAdvisorCheckSummaries(DescribeTrustedAdvisorCheckSummariesRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckSummariesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckSummariesResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the DescribeTrustedAdvisorCheckSummaries operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTrustedAdvisorCheckSummaries.</param>
///
/// <returns>Returns a DescribeTrustedAdvisorCheckSummariesResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries">REST API Reference for DescribeTrustedAdvisorCheckSummaries Operation</seealso>
public virtual DescribeTrustedAdvisorCheckSummariesResponse EndDescribeTrustedAdvisorCheckSummaries(IAsyncResult asyncResult)
{
return EndInvoke<DescribeTrustedAdvisorCheckSummariesResponse>(asyncResult);
}
#endregion
#region RefreshTrustedAdvisorCheck
/// <summary>
/// Refreshes the Trusted Advisor check that you specify using the check ID. You can get
/// the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation.
///
///
/// <para>
/// Some checks are refreshed automatically. If you call the <code>RefreshTrustedAdvisorCheck</code>
/// operation to refresh them, you might see the <code>InvalidParameterValue</code> error.
/// </para>
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckRefreshStatus</a> object.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshTrustedAdvisorCheck service method.</param>
///
/// <returns>The response from the RefreshTrustedAdvisorCheck service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck">REST API Reference for RefreshTrustedAdvisorCheck Operation</seealso>
public virtual RefreshTrustedAdvisorCheckResponse RefreshTrustedAdvisorCheck(RefreshTrustedAdvisorCheckRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RefreshTrustedAdvisorCheckRequestMarshaller.Instance;
options.ResponseUnmarshaller = RefreshTrustedAdvisorCheckResponseUnmarshaller.Instance;
return Invoke<RefreshTrustedAdvisorCheckResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the RefreshTrustedAdvisorCheck operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the RefreshTrustedAdvisorCheck operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRefreshTrustedAdvisorCheck
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck">REST API Reference for RefreshTrustedAdvisorCheck Operation</seealso>
public virtual IAsyncResult BeginRefreshTrustedAdvisorCheck(RefreshTrustedAdvisorCheckRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = RefreshTrustedAdvisorCheckRequestMarshaller.Instance;
options.ResponseUnmarshaller = RefreshTrustedAdvisorCheckResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the RefreshTrustedAdvisorCheck operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginRefreshTrustedAdvisorCheck.</param>
///
/// <returns>Returns a RefreshTrustedAdvisorCheckResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck">REST API Reference for RefreshTrustedAdvisorCheck Operation</seealso>
public virtual RefreshTrustedAdvisorCheckResponse EndRefreshTrustedAdvisorCheck(IAsyncResult asyncResult)
{
return EndInvoke<RefreshTrustedAdvisorCheckResponse>(asyncResult);
}
#endregion
#region ResolveCase
/// <summary>
/// Resolves a support case. This operation takes a <code>caseId</code> and returns the
/// initial and final state of the case.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ResolveCase service method.</param>
///
/// <returns>The response from the ResolveCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase">REST API Reference for ResolveCase Operation</seealso>
public virtual ResolveCaseResponse ResolveCase(ResolveCaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ResolveCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResolveCaseResponseUnmarshaller.Instance;
return Invoke<ResolveCaseResponse>(request, options);
}
/// <summary>
/// Initiates the asynchronous execution of the ResolveCase operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ResolveCase operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndResolveCase
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase">REST API Reference for ResolveCase Operation</seealso>
public virtual IAsyncResult BeginResolveCase(ResolveCaseRequest request, AsyncCallback callback, object state)
{
var options = new InvokeOptions();
options.RequestMarshaller = ResolveCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResolveCaseResponseUnmarshaller.Instance;
return BeginInvoke(request, options, callback, state);
}
/// <summary>
/// Finishes the asynchronous execution of the ResolveCase operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginResolveCase.</param>
///
/// <returns>Returns a ResolveCaseResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase">REST API Reference for ResolveCase Operation</seealso>
public virtual ResolveCaseResponse EndResolveCase(IAsyncResult asyncResult)
{
return EndInvoke<ResolveCaseResponse>(asyncResult);
}
#endregion
}
}
| 1,815 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AWSSupport.Model;
namespace Amazon.AWSSupport
{
/// <summary>
/// Interface for accessing AWSSupport
///
/// Amazon Web Services Support
/// <para>
/// The <i>Amazon Web Services Support API Reference</i> is intended for programmers who
/// need detailed information about the Amazon Web Services Support operations and data
/// types. You can use the API to manage your support cases programmatically. The Amazon
/// Web Services Support API uses HTTP methods that return results in JSON format.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// You can also use the Amazon Web Services Support API to access features for <a href="http://aws.amazon.com/premiumsupport/trustedadvisor/">Trusted
/// Advisor</a>. You can return a list of checks and their descriptions, get check results,
/// specify checks to refresh, and get the refresh status of checks.
/// </para>
///
/// <para>
/// You can manage your support cases with the following Amazon Web Services Support API
/// operations:
/// </para>
/// <ul> <li>
/// <para>
/// The <a>CreateCase</a>, <a>DescribeCases</a>, <a>DescribeAttachment</a>, and <a>ResolveCase</a>
/// operations create Amazon Web Services Support cases, retrieve information about cases,
/// and resolve cases.
/// </para>
/// </li> <li>
/// <para>
/// The <a>DescribeCommunications</a>, <a>AddCommunicationToCase</a>, and <a>AddAttachmentsToSet</a>
/// operations retrieve and add communications and attachments to Amazon Web Services
/// Support cases.
/// </para>
/// </li> <li>
/// <para>
/// The <a>DescribeServices</a> and <a>DescribeSeverityLevels</a> operations return Amazon
/// Web Service names, service codes, service categories, and problem severity levels.
/// You use these values when you call the <a>CreateCase</a> operation.
/// </para>
/// </li> </ul>
/// <para>
/// You can also use the Amazon Web Services Support API to call the Trusted Advisor operations.
/// For more information, see <a href="https://docs.aws.amazon.com/">Trusted Advisor</a>
/// in the <i>Amazon Web Services Support User Guide</i>.
/// </para>
///
/// <para>
/// For authentication of requests, Amazon Web Services Support uses <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature
/// Version 4 Signing Process</a>.
/// </para>
///
/// <para>
/// For more information about this service and the endpoints to use, see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
public partial interface IAmazonAWSSupport : IAmazonService, IDisposable
{
#if BCL45 || AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IAWSSupportPaginatorFactory Paginators { get; }
#endif
#region AddAttachmentsToSet
/// <summary>
/// Adds one or more attachments to an attachment set.
///
///
/// <para>
/// An attachment set is a temporary container for attachments that you add to a case
/// or case communication. The set is available for 1 hour after it's created. The <code>expiryTime</code>
/// returned in the response is when the set expires.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddAttachmentsToSet service method.</param>
///
/// <returns>The response from the AddAttachmentsToSet service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentLimitExceededException">
/// The limit for the number of attachment sets created in a short period of time has
/// been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetSizeLimitExceededException">
/// A limit for the size of an attachment set has been exceeded. The limits are three
/// attachments and 5 MB per attachment.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet">REST API Reference for AddAttachmentsToSet Operation</seealso>
AddAttachmentsToSetResponse AddAttachmentsToSet(AddAttachmentsToSetRequest request);
/// <summary>
/// Initiates the asynchronous execution of the AddAttachmentsToSet operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the AddAttachmentsToSet operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddAttachmentsToSet
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet">REST API Reference for AddAttachmentsToSet Operation</seealso>
IAsyncResult BeginAddAttachmentsToSet(AddAttachmentsToSetRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the AddAttachmentsToSet operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginAddAttachmentsToSet.</param>
///
/// <returns>Returns a AddAttachmentsToSetResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet">REST API Reference for AddAttachmentsToSet Operation</seealso>
AddAttachmentsToSetResponse EndAddAttachmentsToSet(IAsyncResult asyncResult);
#endregion
#region AddCommunicationToCase
/// <summary>
/// Adds additional customer communication to an Amazon Web Services Support case. Use
/// the <code>caseId</code> parameter to identify the case to which to add communication.
/// You can list a set of email addresses to copy on the communication by using the <code>ccEmailAddresses</code>
/// parameter. The <code>communicationBody</code> value contains the text of the communication.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddCommunicationToCase service method.</param>
///
/// <returns>The response from the AddCommunicationToCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase">REST API Reference for AddCommunicationToCase Operation</seealso>
AddCommunicationToCaseResponse AddCommunicationToCase(AddCommunicationToCaseRequest request);
/// <summary>
/// Initiates the asynchronous execution of the AddCommunicationToCase operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the AddCommunicationToCase operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndAddCommunicationToCase
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase">REST API Reference for AddCommunicationToCase Operation</seealso>
IAsyncResult BeginAddCommunicationToCase(AddCommunicationToCaseRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the AddCommunicationToCase operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginAddCommunicationToCase.</param>
///
/// <returns>Returns a AddCommunicationToCaseResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase">REST API Reference for AddCommunicationToCase Operation</seealso>
AddCommunicationToCaseResponse EndAddCommunicationToCase(IAsyncResult asyncResult);
#endregion
#region CreateCase
/// <summary>
/// Creates a case in the Amazon Web Services Support Center. This operation is similar
/// to how you create a case in the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.
///
///
/// <para>
/// The Amazon Web Services Support API doesn't support requesting service limit increases.
/// You can submit a service limit increase in the following ways:
/// </para>
/// <ul> <li>
/// <para>
/// Submit a request from the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.
/// </para>
/// </li> <li>
/// <para>
/// Use the Service Quotas <a href="https://docs.aws.amazon.com/servicequotas/2019-06-24/apireference/API_RequestServiceQuotaIncrease.html">RequestServiceQuotaIncrease</a>
/// operation.
/// </para>
/// </li> </ul>
/// <para>
/// A successful <code>CreateCase</code> request returns an Amazon Web Services Support
/// case number. You can use the <a>DescribeCases</a> operation and specify the case number
/// to get existing Amazon Web Services Support cases. After you create a case, use the
/// <a>AddCommunicationToCase</a> operation to add additional communication or attachments
/// to an existing case.
/// </para>
///
/// <para>
/// The <code>caseId</code> is separate from the <code>displayId</code> that appears in
/// the <a href="https://console.aws.amazon.com/support">Amazon Web Services Support Center</a>.
/// Use the <a>DescribeCases</a> operation to get the <code>displayId</code>.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateCase service method.</param>
///
/// <returns>The response from the CreateCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseCreationLimitExceededException">
/// The case creation limit for the account has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase">REST API Reference for CreateCase Operation</seealso>
CreateCaseResponse CreateCase(CreateCaseRequest request);
/// <summary>
/// Initiates the asynchronous execution of the CreateCase operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the CreateCase operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndCreateCase
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase">REST API Reference for CreateCase Operation</seealso>
IAsyncResult BeginCreateCase(CreateCaseRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the CreateCase operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginCreateCase.</param>
///
/// <returns>Returns a CreateCaseResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase">REST API Reference for CreateCase Operation</seealso>
CreateCaseResponse EndCreateCase(IAsyncResult asyncResult);
#endregion
#region DescribeAttachment
/// <summary>
/// Returns the attachment that has the specified ID. Attachments can include screenshots,
/// error logs, or other files that describe your issue. Attachment IDs are generated
/// by the case management system when you add an attachment to a case or case communication.
/// Attachment IDs are returned in the <a>AttachmentDetails</a> objects that are returned
/// by the <a>DescribeCommunications</a> operation.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAttachment service method.</param>
///
/// <returns>The response from the DescribeAttachment service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentIdNotFoundException">
/// An attachment with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.DescribeAttachmentLimitExceededException">
/// The limit for the number of <a>DescribeAttachment</a> requests in a short period of
/// time has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment">REST API Reference for DescribeAttachment Operation</seealso>
DescribeAttachmentResponse DescribeAttachment(DescribeAttachmentRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeAttachment operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeAttachment operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeAttachment
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment">REST API Reference for DescribeAttachment Operation</seealso>
IAsyncResult BeginDescribeAttachment(DescribeAttachmentRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeAttachment operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeAttachment.</param>
///
/// <returns>Returns a DescribeAttachmentResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment">REST API Reference for DescribeAttachment Operation</seealso>
DescribeAttachmentResponse EndDescribeAttachment(IAsyncResult asyncResult);
#endregion
#region DescribeCases
/// <summary>
/// Returns a list of cases that you specify by passing one or more case IDs. You can
/// use the <code>afterTime</code> and <code>beforeTime</code> parameters to filter the
/// cases by date. You can set values for the <code>includeResolvedCases</code> and <code>includeCommunications</code>
/// parameters to specify how much information to return.
///
///
/// <para>
/// The response returns the following in JSON format:
/// </para>
/// <ul> <li>
/// <para>
/// One or more <a href="https://docs.aws.amazon.com/awssupport/latest/APIReference/API_CaseDetails.html">CaseDetails</a>
/// data types.
/// </para>
/// </li> <li>
/// <para>
/// One or more <code>nextToken</code> values, which specify where to paginate the returned
/// records represented by the <code>CaseDetails</code> objects.
/// </para>
/// </li> </ul>
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request might return an error.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCases service method.</param>
///
/// <returns>The response from the DescribeCases service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases">REST API Reference for DescribeCases Operation</seealso>
DescribeCasesResponse DescribeCases(DescribeCasesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeCases operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeCases operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeCases
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases">REST API Reference for DescribeCases Operation</seealso>
IAsyncResult BeginDescribeCases(DescribeCasesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeCases operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeCases.</param>
///
/// <returns>Returns a DescribeCasesResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases">REST API Reference for DescribeCases Operation</seealso>
DescribeCasesResponse EndDescribeCases(IAsyncResult asyncResult);
#endregion
#region DescribeCommunications
/// <summary>
/// Returns communications and attachments for one or more support cases. Use the <code>afterTime</code>
/// and <code>beforeTime</code> parameters to filter by date. You can use the <code>caseId</code>
/// parameter to restrict the results to a specific case.
///
///
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request for data might cause an error.
/// </para>
///
/// <para>
/// You can use the <code>maxResults</code> and <code>nextToken</code> parameters to control
/// the pagination of the results. Set <code>maxResults</code> to the number of cases
/// that you want to display on each page, and use <code>nextToken</code> to specify the
/// resumption of pagination.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCommunications service method.</param>
///
/// <returns>The response from the DescribeCommunications service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications">REST API Reference for DescribeCommunications Operation</seealso>
DescribeCommunicationsResponse DescribeCommunications(DescribeCommunicationsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeCommunications operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeCommunications operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeCommunications
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications">REST API Reference for DescribeCommunications Operation</seealso>
IAsyncResult BeginDescribeCommunications(DescribeCommunicationsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeCommunications operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeCommunications.</param>
///
/// <returns>Returns a DescribeCommunicationsResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications">REST API Reference for DescribeCommunications Operation</seealso>
DescribeCommunicationsResponse EndDescribeCommunications(IAsyncResult asyncResult);
#endregion
#region DescribeCreateCaseOptions
/// <summary>
/// Returns a list of CreateCaseOption types along with the corresponding supported hours
/// and language availability. You can specify the <code>language</code> <code>categoryCode</code>,
/// <code>issueType</code> and <code>serviceCode</code> used to retrieve the CreateCaseOptions.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCreateCaseOptions service method.</param>
///
/// <returns>The response from the DescribeCreateCaseOptions service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCreateCaseOptions">REST API Reference for DescribeCreateCaseOptions Operation</seealso>
DescribeCreateCaseOptionsResponse DescribeCreateCaseOptions(DescribeCreateCaseOptionsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeCreateCaseOptions operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeCreateCaseOptions operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeCreateCaseOptions
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCreateCaseOptions">REST API Reference for DescribeCreateCaseOptions Operation</seealso>
IAsyncResult BeginDescribeCreateCaseOptions(DescribeCreateCaseOptionsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeCreateCaseOptions operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeCreateCaseOptions.</param>
///
/// <returns>Returns a DescribeCreateCaseOptionsResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCreateCaseOptions">REST API Reference for DescribeCreateCaseOptions Operation</seealso>
DescribeCreateCaseOptionsResponse EndDescribeCreateCaseOptions(IAsyncResult asyncResult);
#endregion
#region DescribeServices
/// <summary>
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your <a>CreateCase</a>
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that appear in the <b>Service</b>
/// and <b>Category</b> lists on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. The values in those fields don't necessarily match the service codes
/// and categories returned by the <code>DescribeServices</code> operation. Always use
/// the service codes and categories that the <code>DescribeServices</code> operation
/// returns, so that you have the most recent set of service and category codes.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
DescribeServicesResponse DescribeServices();
/// <summary>
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your <a>CreateCase</a>
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that appear in the <b>Service</b>
/// and <b>Category</b> lists on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. The values in those fields don't necessarily match the service codes
/// and categories returned by the <code>DescribeServices</code> operation. Always use
/// the service codes and categories that the <code>DescribeServices</code> operation
/// returns, so that you have the most recent set of service and category codes.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeServices service method.</param>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
DescribeServicesResponse DescribeServices(DescribeServicesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeServices operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeServices operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeServices
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
IAsyncResult BeginDescribeServices(DescribeServicesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeServices operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeServices.</param>
///
/// <returns>Returns a DescribeServicesResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
DescribeServicesResponse EndDescribeServices(IAsyncResult asyncResult);
#endregion
#region DescribeSeverityLevels
/// <summary>
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the <a>CaseDetails</a> data type that you include
/// for a <a>CreateCase</a> request.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
DescribeSeverityLevelsResponse DescribeSeverityLevels();
/// <summary>
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the <a>CaseDetails</a> data type that you include
/// for a <a>CreateCase</a> request.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSeverityLevels service method.</param>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
DescribeSeverityLevelsResponse DescribeSeverityLevels(DescribeSeverityLevelsRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeSeverityLevels operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeSeverityLevels operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeSeverityLevels
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
IAsyncResult BeginDescribeSeverityLevels(DescribeSeverityLevelsRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeSeverityLevels operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeSeverityLevels.</param>
///
/// <returns>Returns a DescribeSeverityLevelsResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
DescribeSeverityLevelsResponse EndDescribeSeverityLevels(IAsyncResult asyncResult);
#endregion
#region DescribeSupportedLanguages
/// <summary>
/// Returns a list of supported languages for a specified <code>categoryCode</code>, <code>issueType</code>
/// and <code>serviceCode</code>. The returned supported languages will include a ISO
/// 639-1 code for the <code>language</code>, and the language display name.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSupportedLanguages service method.</param>
///
/// <returns>The response from the DescribeSupportedLanguages service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSupportedLanguages">REST API Reference for DescribeSupportedLanguages Operation</seealso>
DescribeSupportedLanguagesResponse DescribeSupportedLanguages(DescribeSupportedLanguagesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeSupportedLanguages operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeSupportedLanguages operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeSupportedLanguages
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSupportedLanguages">REST API Reference for DescribeSupportedLanguages Operation</seealso>
IAsyncResult BeginDescribeSupportedLanguages(DescribeSupportedLanguagesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeSupportedLanguages operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeSupportedLanguages.</param>
///
/// <returns>Returns a DescribeSupportedLanguagesResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSupportedLanguages">REST API Reference for DescribeSupportedLanguages Operation</seealso>
DescribeSupportedLanguagesResponse EndDescribeSupportedLanguages(IAsyncResult asyncResult);
#endregion
#region DescribeTrustedAdvisorCheckRefreshStatuses
/// <summary>
/// Returns the refresh status of the Trusted Advisor checks that have the specified check
/// IDs. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a>
/// operation.
///
///
/// <para>
/// Some checks are refreshed automatically, and you can't return their refresh statuses
/// by using the <code>DescribeTrustedAdvisorCheckRefreshStatuses</code> operation. If
/// you call this operation for these checks, you might see an <code>InvalidParameterValue</code>
/// error.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckRefreshStatuses service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckRefreshStatuses service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses">REST API Reference for DescribeTrustedAdvisorCheckRefreshStatuses Operation</seealso>
DescribeTrustedAdvisorCheckRefreshStatusesResponse DescribeTrustedAdvisorCheckRefreshStatuses(DescribeTrustedAdvisorCheckRefreshStatusesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeTrustedAdvisorCheckRefreshStatuses operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckRefreshStatuses operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTrustedAdvisorCheckRefreshStatuses
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses">REST API Reference for DescribeTrustedAdvisorCheckRefreshStatuses Operation</seealso>
IAsyncResult BeginDescribeTrustedAdvisorCheckRefreshStatuses(DescribeTrustedAdvisorCheckRefreshStatusesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeTrustedAdvisorCheckRefreshStatuses operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTrustedAdvisorCheckRefreshStatuses.</param>
///
/// <returns>Returns a DescribeTrustedAdvisorCheckRefreshStatusesResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses">REST API Reference for DescribeTrustedAdvisorCheckRefreshStatuses Operation</seealso>
DescribeTrustedAdvisorCheckRefreshStatusesResponse EndDescribeTrustedAdvisorCheckRefreshStatuses(IAsyncResult asyncResult);
#endregion
#region DescribeTrustedAdvisorCheckResult
/// <summary>
/// Returns the results of the Trusted Advisor check that has the specified check ID.
/// You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckResult</a> object, which contains these
/// three objects:
/// </para>
/// <ul> <li>
/// <para>
/// <a>TrustedAdvisorCategorySpecificSummary</a>
/// </para>
/// </li> <li>
/// <para>
/// <a>TrustedAdvisorResourceDetail</a>
/// </para>
/// </li> <li>
/// <para>
/// <a>TrustedAdvisorResourcesSummary</a>
/// </para>
/// </li> </ul>
/// <para>
/// In addition, the response contains these fields:
/// </para>
/// <ul> <li>
/// <para>
/// <b>status</b> - The alert status of the check can be <code>ok</code> (green), <code>warning</code>
/// (yellow), <code>error</code> (red), or <code>not_available</code>.
/// </para>
/// </li> <li>
/// <para>
/// <b>timestamp</b> - The time of the last refresh of the check.
/// </para>
/// </li> <li>
/// <para>
/// <b>checkId</b> - The unique identifier for the check.
/// </para>
/// </li> </ul> <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckResult service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckResult service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult">REST API Reference for DescribeTrustedAdvisorCheckResult Operation</seealso>
DescribeTrustedAdvisorCheckResultResponse DescribeTrustedAdvisorCheckResult(DescribeTrustedAdvisorCheckResultRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeTrustedAdvisorCheckResult operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckResult operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTrustedAdvisorCheckResult
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult">REST API Reference for DescribeTrustedAdvisorCheckResult Operation</seealso>
IAsyncResult BeginDescribeTrustedAdvisorCheckResult(DescribeTrustedAdvisorCheckResultRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeTrustedAdvisorCheckResult operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTrustedAdvisorCheckResult.</param>
///
/// <returns>Returns a DescribeTrustedAdvisorCheckResultResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult">REST API Reference for DescribeTrustedAdvisorCheckResult Operation</seealso>
DescribeTrustedAdvisorCheckResultResponse EndDescribeTrustedAdvisorCheckResult(IAsyncResult asyncResult);
#endregion
#region DescribeTrustedAdvisorChecks
/// <summary>
/// Returns information about all available Trusted Advisor checks, including the name,
/// ID, category, description, and metadata. You must specify a language code.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckDescription</a> object for each check.
/// You must set the Amazon Web Services Region to us-east-1.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> <li>
/// <para>
/// The names and descriptions for Trusted Advisor checks are subject to change. We recommend
/// that you specify the check ID in your code to uniquely identify a check.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorChecks service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorChecks service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks">REST API Reference for DescribeTrustedAdvisorChecks Operation</seealso>
DescribeTrustedAdvisorChecksResponse DescribeTrustedAdvisorChecks(DescribeTrustedAdvisorChecksRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeTrustedAdvisorChecks operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorChecks operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTrustedAdvisorChecks
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks">REST API Reference for DescribeTrustedAdvisorChecks Operation</seealso>
IAsyncResult BeginDescribeTrustedAdvisorChecks(DescribeTrustedAdvisorChecksRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeTrustedAdvisorChecks operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTrustedAdvisorChecks.</param>
///
/// <returns>Returns a DescribeTrustedAdvisorChecksResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks">REST API Reference for DescribeTrustedAdvisorChecks Operation</seealso>
DescribeTrustedAdvisorChecksResponse EndDescribeTrustedAdvisorChecks(IAsyncResult asyncResult);
#endregion
#region DescribeTrustedAdvisorCheckSummaries
/// <summary>
/// Returns the results for the Trusted Advisor check summaries for the check IDs that
/// you specified. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a>
/// operation.
///
///
/// <para>
/// The response contains an array of <a>TrustedAdvisorCheckSummary</a> objects.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckSummaries service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckSummaries service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries">REST API Reference for DescribeTrustedAdvisorCheckSummaries Operation</seealso>
DescribeTrustedAdvisorCheckSummariesResponse DescribeTrustedAdvisorCheckSummaries(DescribeTrustedAdvisorCheckSummariesRequest request);
/// <summary>
/// Initiates the asynchronous execution of the DescribeTrustedAdvisorCheckSummaries operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckSummaries operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndDescribeTrustedAdvisorCheckSummaries
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries">REST API Reference for DescribeTrustedAdvisorCheckSummaries Operation</seealso>
IAsyncResult BeginDescribeTrustedAdvisorCheckSummaries(DescribeTrustedAdvisorCheckSummariesRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the DescribeTrustedAdvisorCheckSummaries operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginDescribeTrustedAdvisorCheckSummaries.</param>
///
/// <returns>Returns a DescribeTrustedAdvisorCheckSummariesResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries">REST API Reference for DescribeTrustedAdvisorCheckSummaries Operation</seealso>
DescribeTrustedAdvisorCheckSummariesResponse EndDescribeTrustedAdvisorCheckSummaries(IAsyncResult asyncResult);
#endregion
#region RefreshTrustedAdvisorCheck
/// <summary>
/// Refreshes the Trusted Advisor check that you specify using the check ID. You can get
/// the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation.
///
///
/// <para>
/// Some checks are refreshed automatically. If you call the <code>RefreshTrustedAdvisorCheck</code>
/// operation to refresh them, you might see the <code>InvalidParameterValue</code> error.
/// </para>
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckRefreshStatus</a> object.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshTrustedAdvisorCheck service method.</param>
///
/// <returns>The response from the RefreshTrustedAdvisorCheck service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck">REST API Reference for RefreshTrustedAdvisorCheck Operation</seealso>
RefreshTrustedAdvisorCheckResponse RefreshTrustedAdvisorCheck(RefreshTrustedAdvisorCheckRequest request);
/// <summary>
/// Initiates the asynchronous execution of the RefreshTrustedAdvisorCheck operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the RefreshTrustedAdvisorCheck operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndRefreshTrustedAdvisorCheck
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck">REST API Reference for RefreshTrustedAdvisorCheck Operation</seealso>
IAsyncResult BeginRefreshTrustedAdvisorCheck(RefreshTrustedAdvisorCheckRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the RefreshTrustedAdvisorCheck operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginRefreshTrustedAdvisorCheck.</param>
///
/// <returns>Returns a RefreshTrustedAdvisorCheckResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck">REST API Reference for RefreshTrustedAdvisorCheck Operation</seealso>
RefreshTrustedAdvisorCheckResponse EndRefreshTrustedAdvisorCheck(IAsyncResult asyncResult);
#endregion
#region ResolveCase
/// <summary>
/// Resolves a support case. This operation takes a <code>caseId</code> and returns the
/// initial and final state of the case.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ResolveCase service method.</param>
///
/// <returns>The response from the ResolveCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase">REST API Reference for ResolveCase Operation</seealso>
ResolveCaseResponse ResolveCase(ResolveCaseRequest request);
/// <summary>
/// Initiates the asynchronous execution of the ResolveCase operation.
/// </summary>
///
/// <param name="request">Container for the necessary parameters to execute the ResolveCase operation on AmazonAWSSupportClient.</param>
/// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param>
/// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback
/// procedure using the AsyncState property.</param>
///
/// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndResolveCase
/// operation.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase">REST API Reference for ResolveCase Operation</seealso>
IAsyncResult BeginResolveCase(ResolveCaseRequest request, AsyncCallback callback, object state);
/// <summary>
/// Finishes the asynchronous execution of the ResolveCase operation.
/// </summary>
///
/// <param name="asyncResult">The IAsyncResult returned by the call to BeginResolveCase.</param>
///
/// <returns>Returns a ResolveCaseResult from AWSSupport.</returns>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase">REST API Reference for ResolveCase Operation</seealso>
ResolveCaseResponse EndResolveCase(IAsyncResult asyncResult);
#endregion
}
}
| 1,365 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.AWSSupport.Model;
using Amazon.AWSSupport.Model.Internal.MarshallTransformations;
using Amazon.AWSSupport.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AWSSupport
{
/// <summary>
/// Implementation for accessing AWSSupport
///
/// Amazon Web Services Support
/// <para>
/// The <i>Amazon Web Services Support API Reference</i> is intended for programmers who
/// need detailed information about the Amazon Web Services Support operations and data
/// types. You can use the API to manage your support cases programmatically. The Amazon
/// Web Services Support API uses HTTP methods that return results in JSON format.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// You can also use the Amazon Web Services Support API to access features for <a href="http://aws.amazon.com/premiumsupport/trustedadvisor/">Trusted
/// Advisor</a>. You can return a list of checks and their descriptions, get check results,
/// specify checks to refresh, and get the refresh status of checks.
/// </para>
///
/// <para>
/// You can manage your support cases with the following Amazon Web Services Support API
/// operations:
/// </para>
/// <ul> <li>
/// <para>
/// The <a>CreateCase</a>, <a>DescribeCases</a>, <a>DescribeAttachment</a>, and <a>ResolveCase</a>
/// operations create Amazon Web Services Support cases, retrieve information about cases,
/// and resolve cases.
/// </para>
/// </li> <li>
/// <para>
/// The <a>DescribeCommunications</a>, <a>AddCommunicationToCase</a>, and <a>AddAttachmentsToSet</a>
/// operations retrieve and add communications and attachments to Amazon Web Services
/// Support cases.
/// </para>
/// </li> <li>
/// <para>
/// The <a>DescribeServices</a> and <a>DescribeSeverityLevels</a> operations return Amazon
/// Web Service names, service codes, service categories, and problem severity levels.
/// You use these values when you call the <a>CreateCase</a> operation.
/// </para>
/// </li> </ul>
/// <para>
/// You can also use the Amazon Web Services Support API to call the Trusted Advisor operations.
/// For more information, see <a href="https://docs.aws.amazon.com/">Trusted Advisor</a>
/// in the <i>Amazon Web Services Support User Guide</i>.
/// </para>
///
/// <para>
/// For authentication of requests, Amazon Web Services Support uses <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature
/// Version 4 Signing Process</a>.
/// </para>
///
/// <para>
/// For more information about this service and the endpoints to use, see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
public partial class AmazonAWSSupportClient : AmazonServiceClient, IAmazonAWSSupport
{
private static IServiceMetadata serviceMetadata = new AmazonAWSSupportMetadata();
private IAWSSupportPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAWSSupportPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AWSSupportPaginatorFactory(this);
}
return this._paginators;
}
}
#region Constructors
/// <summary>
/// Constructs AmazonAWSSupportClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonAWSSupportClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSSupportConfig()) { }
/// <summary>
/// Constructs AmazonAWSSupportClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonAWSSupportClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSSupportConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAWSSupportClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonAWSSupportClient Configuration Object</param>
public AmazonAWSSupportClient(AmazonAWSSupportConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAWSSupportClient(AWSCredentials credentials)
: this(credentials, new AmazonAWSSupportConfig())
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSSupportClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAWSSupportConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Credentials and an
/// AmazonAWSSupportClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAWSSupportClient Configuration Object</param>
public AmazonAWSSupportClient(AWSCredentials credentials, AmazonAWSSupportConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSSupportConfig())
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSSupportConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSSupportClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAWSSupportClient Configuration Object</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAWSSupportConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSSupportConfig())
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSSupportConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSSupportClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonAWSSupportClient Configuration Object</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAWSSupportConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customize the pipeline
/// </summary>
/// <param name="pipeline"></param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAWSSupportEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region AddAttachmentsToSet
/// <summary>
/// Adds one or more attachments to an attachment set.
///
///
/// <para>
/// An attachment set is a temporary container for attachments that you add to a case
/// or case communication. The set is available for 1 hour after it's created. The <code>expiryTime</code>
/// returned in the response is when the set expires.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddAttachmentsToSet service method.</param>
///
/// <returns>The response from the AddAttachmentsToSet service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentLimitExceededException">
/// The limit for the number of attachment sets created in a short period of time has
/// been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetSizeLimitExceededException">
/// A limit for the size of an attachment set has been exceeded. The limits are three
/// attachments and 5 MB per attachment.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet">REST API Reference for AddAttachmentsToSet Operation</seealso>
public virtual AddAttachmentsToSetResponse AddAttachmentsToSet(AddAttachmentsToSetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AddAttachmentsToSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddAttachmentsToSetResponseUnmarshaller.Instance;
return Invoke<AddAttachmentsToSetResponse>(request, options);
}
/// <summary>
/// Adds one or more attachments to an attachment set.
///
///
/// <para>
/// An attachment set is a temporary container for attachments that you add to a case
/// or case communication. The set is available for 1 hour after it's created. The <code>expiryTime</code>
/// returned in the response is when the set expires.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddAttachmentsToSet service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the AddAttachmentsToSet service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentLimitExceededException">
/// The limit for the number of attachment sets created in a short period of time has
/// been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetSizeLimitExceededException">
/// A limit for the size of an attachment set has been exceeded. The limits are three
/// attachments and 5 MB per attachment.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet">REST API Reference for AddAttachmentsToSet Operation</seealso>
public virtual Task<AddAttachmentsToSetResponse> AddAttachmentsToSetAsync(AddAttachmentsToSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AddAttachmentsToSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddAttachmentsToSetResponseUnmarshaller.Instance;
return InvokeAsync<AddAttachmentsToSetResponse>(request, options, cancellationToken);
}
#endregion
#region AddCommunicationToCase
/// <summary>
/// Adds additional customer communication to an Amazon Web Services Support case. Use
/// the <code>caseId</code> parameter to identify the case to which to add communication.
/// You can list a set of email addresses to copy on the communication by using the <code>ccEmailAddresses</code>
/// parameter. The <code>communicationBody</code> value contains the text of the communication.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddCommunicationToCase service method.</param>
///
/// <returns>The response from the AddCommunicationToCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase">REST API Reference for AddCommunicationToCase Operation</seealso>
public virtual AddCommunicationToCaseResponse AddCommunicationToCase(AddCommunicationToCaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AddCommunicationToCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddCommunicationToCaseResponseUnmarshaller.Instance;
return Invoke<AddCommunicationToCaseResponse>(request, options);
}
/// <summary>
/// Adds additional customer communication to an Amazon Web Services Support case. Use
/// the <code>caseId</code> parameter to identify the case to which to add communication.
/// You can list a set of email addresses to copy on the communication by using the <code>ccEmailAddresses</code>
/// parameter. The <code>communicationBody</code> value contains the text of the communication.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddCommunicationToCase service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the AddCommunicationToCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase">REST API Reference for AddCommunicationToCase Operation</seealso>
public virtual Task<AddCommunicationToCaseResponse> AddCommunicationToCaseAsync(AddCommunicationToCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AddCommunicationToCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddCommunicationToCaseResponseUnmarshaller.Instance;
return InvokeAsync<AddCommunicationToCaseResponse>(request, options, cancellationToken);
}
#endregion
#region CreateCase
/// <summary>
/// Creates a case in the Amazon Web Services Support Center. This operation is similar
/// to how you create a case in the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.
///
///
/// <para>
/// The Amazon Web Services Support API doesn't support requesting service limit increases.
/// You can submit a service limit increase in the following ways:
/// </para>
/// <ul> <li>
/// <para>
/// Submit a request from the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.
/// </para>
/// </li> <li>
/// <para>
/// Use the Service Quotas <a href="https://docs.aws.amazon.com/servicequotas/2019-06-24/apireference/API_RequestServiceQuotaIncrease.html">RequestServiceQuotaIncrease</a>
/// operation.
/// </para>
/// </li> </ul>
/// <para>
/// A successful <code>CreateCase</code> request returns an Amazon Web Services Support
/// case number. You can use the <a>DescribeCases</a> operation and specify the case number
/// to get existing Amazon Web Services Support cases. After you create a case, use the
/// <a>AddCommunicationToCase</a> operation to add additional communication or attachments
/// to an existing case.
/// </para>
///
/// <para>
/// The <code>caseId</code> is separate from the <code>displayId</code> that appears in
/// the <a href="https://console.aws.amazon.com/support">Amazon Web Services Support Center</a>.
/// Use the <a>DescribeCases</a> operation to get the <code>displayId</code>.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateCase service method.</param>
///
/// <returns>The response from the CreateCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseCreationLimitExceededException">
/// The case creation limit for the account has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase">REST API Reference for CreateCase Operation</seealso>
public virtual CreateCaseResponse CreateCase(CreateCaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCaseResponseUnmarshaller.Instance;
return Invoke<CreateCaseResponse>(request, options);
}
/// <summary>
/// Creates a case in the Amazon Web Services Support Center. This operation is similar
/// to how you create a case in the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.
///
///
/// <para>
/// The Amazon Web Services Support API doesn't support requesting service limit increases.
/// You can submit a service limit increase in the following ways:
/// </para>
/// <ul> <li>
/// <para>
/// Submit a request from the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.
/// </para>
/// </li> <li>
/// <para>
/// Use the Service Quotas <a href="https://docs.aws.amazon.com/servicequotas/2019-06-24/apireference/API_RequestServiceQuotaIncrease.html">RequestServiceQuotaIncrease</a>
/// operation.
/// </para>
/// </li> </ul>
/// <para>
/// A successful <code>CreateCase</code> request returns an Amazon Web Services Support
/// case number. You can use the <a>DescribeCases</a> operation and specify the case number
/// to get existing Amazon Web Services Support cases. After you create a case, use the
/// <a>AddCommunicationToCase</a> operation to add additional communication or attachments
/// to an existing case.
/// </para>
///
/// <para>
/// The <code>caseId</code> is separate from the <code>displayId</code> that appears in
/// the <a href="https://console.aws.amazon.com/support">Amazon Web Services Support Center</a>.
/// Use the <a>DescribeCases</a> operation to get the <code>displayId</code>.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateCase service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseCreationLimitExceededException">
/// The case creation limit for the account has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase">REST API Reference for CreateCase Operation</seealso>
public virtual Task<CreateCaseResponse> CreateCaseAsync(CreateCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCaseResponseUnmarshaller.Instance;
return InvokeAsync<CreateCaseResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeAttachment
/// <summary>
/// Returns the attachment that has the specified ID. Attachments can include screenshots,
/// error logs, or other files that describe your issue. Attachment IDs are generated
/// by the case management system when you add an attachment to a case or case communication.
/// Attachment IDs are returned in the <a>AttachmentDetails</a> objects that are returned
/// by the <a>DescribeCommunications</a> operation.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAttachment service method.</param>
///
/// <returns>The response from the DescribeAttachment service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentIdNotFoundException">
/// An attachment with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.DescribeAttachmentLimitExceededException">
/// The limit for the number of <a>DescribeAttachment</a> requests in a short period of
/// time has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment">REST API Reference for DescribeAttachment Operation</seealso>
public virtual DescribeAttachmentResponse DescribeAttachment(DescribeAttachmentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAttachmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAttachmentResponseUnmarshaller.Instance;
return Invoke<DescribeAttachmentResponse>(request, options);
}
/// <summary>
/// Returns the attachment that has the specified ID. Attachments can include screenshots,
/// error logs, or other files that describe your issue. Attachment IDs are generated
/// by the case management system when you add an attachment to a case or case communication.
/// Attachment IDs are returned in the <a>AttachmentDetails</a> objects that are returned
/// by the <a>DescribeCommunications</a> operation.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAttachment service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeAttachment service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentIdNotFoundException">
/// An attachment with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.DescribeAttachmentLimitExceededException">
/// The limit for the number of <a>DescribeAttachment</a> requests in a short period of
/// time has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment">REST API Reference for DescribeAttachment Operation</seealso>
public virtual Task<DescribeAttachmentResponse> DescribeAttachmentAsync(DescribeAttachmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAttachmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAttachmentResponseUnmarshaller.Instance;
return InvokeAsync<DescribeAttachmentResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeCases
/// <summary>
/// Returns a list of cases that you specify by passing one or more case IDs. You can
/// use the <code>afterTime</code> and <code>beforeTime</code> parameters to filter the
/// cases by date. You can set values for the <code>includeResolvedCases</code> and <code>includeCommunications</code>
/// parameters to specify how much information to return.
///
///
/// <para>
/// The response returns the following in JSON format:
/// </para>
/// <ul> <li>
/// <para>
/// One or more <a href="https://docs.aws.amazon.com/awssupport/latest/APIReference/API_CaseDetails.html">CaseDetails</a>
/// data types.
/// </para>
/// </li> <li>
/// <para>
/// One or more <code>nextToken</code> values, which specify where to paginate the returned
/// records represented by the <code>CaseDetails</code> objects.
/// </para>
/// </li> </ul>
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request might return an error.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCases service method.</param>
///
/// <returns>The response from the DescribeCases service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases">REST API Reference for DescribeCases Operation</seealso>
public virtual DescribeCasesResponse DescribeCases(DescribeCasesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCasesResponseUnmarshaller.Instance;
return Invoke<DescribeCasesResponse>(request, options);
}
/// <summary>
/// Returns a list of cases that you specify by passing one or more case IDs. You can
/// use the <code>afterTime</code> and <code>beforeTime</code> parameters to filter the
/// cases by date. You can set values for the <code>includeResolvedCases</code> and <code>includeCommunications</code>
/// parameters to specify how much information to return.
///
///
/// <para>
/// The response returns the following in JSON format:
/// </para>
/// <ul> <li>
/// <para>
/// One or more <a href="https://docs.aws.amazon.com/awssupport/latest/APIReference/API_CaseDetails.html">CaseDetails</a>
/// data types.
/// </para>
/// </li> <li>
/// <para>
/// One or more <code>nextToken</code> values, which specify where to paginate the returned
/// records represented by the <code>CaseDetails</code> objects.
/// </para>
/// </li> </ul>
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request might return an error.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCases service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeCases service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases">REST API Reference for DescribeCases Operation</seealso>
public virtual Task<DescribeCasesResponse> DescribeCasesAsync(DescribeCasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCasesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeCasesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeCommunications
/// <summary>
/// Returns communications and attachments for one or more support cases. Use the <code>afterTime</code>
/// and <code>beforeTime</code> parameters to filter by date. You can use the <code>caseId</code>
/// parameter to restrict the results to a specific case.
///
///
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request for data might cause an error.
/// </para>
///
/// <para>
/// You can use the <code>maxResults</code> and <code>nextToken</code> parameters to control
/// the pagination of the results. Set <code>maxResults</code> to the number of cases
/// that you want to display on each page, and use <code>nextToken</code> to specify the
/// resumption of pagination.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCommunications service method.</param>
///
/// <returns>The response from the DescribeCommunications service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications">REST API Reference for DescribeCommunications Operation</seealso>
public virtual DescribeCommunicationsResponse DescribeCommunications(DescribeCommunicationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCommunicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCommunicationsResponseUnmarshaller.Instance;
return Invoke<DescribeCommunicationsResponse>(request, options);
}
/// <summary>
/// Returns communications and attachments for one or more support cases. Use the <code>afterTime</code>
/// and <code>beforeTime</code> parameters to filter by date. You can use the <code>caseId</code>
/// parameter to restrict the results to a specific case.
///
///
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request for data might cause an error.
/// </para>
///
/// <para>
/// You can use the <code>maxResults</code> and <code>nextToken</code> parameters to control
/// the pagination of the results. Set <code>maxResults</code> to the number of cases
/// that you want to display on each page, and use <code>nextToken</code> to specify the
/// resumption of pagination.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCommunications service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeCommunications service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications">REST API Reference for DescribeCommunications Operation</seealso>
public virtual Task<DescribeCommunicationsResponse> DescribeCommunicationsAsync(DescribeCommunicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCommunicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCommunicationsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeCommunicationsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeCreateCaseOptions
/// <summary>
/// Returns a list of CreateCaseOption types along with the corresponding supported hours
/// and language availability. You can specify the <code>language</code> <code>categoryCode</code>,
/// <code>issueType</code> and <code>serviceCode</code> used to retrieve the CreateCaseOptions.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCreateCaseOptions service method.</param>
///
/// <returns>The response from the DescribeCreateCaseOptions service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCreateCaseOptions">REST API Reference for DescribeCreateCaseOptions Operation</seealso>
public virtual DescribeCreateCaseOptionsResponse DescribeCreateCaseOptions(DescribeCreateCaseOptionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCreateCaseOptionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCreateCaseOptionsResponseUnmarshaller.Instance;
return Invoke<DescribeCreateCaseOptionsResponse>(request, options);
}
/// <summary>
/// Returns a list of CreateCaseOption types along with the corresponding supported hours
/// and language availability. You can specify the <code>language</code> <code>categoryCode</code>,
/// <code>issueType</code> and <code>serviceCode</code> used to retrieve the CreateCaseOptions.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCreateCaseOptions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeCreateCaseOptions service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCreateCaseOptions">REST API Reference for DescribeCreateCaseOptions Operation</seealso>
public virtual Task<DescribeCreateCaseOptionsResponse> DescribeCreateCaseOptionsAsync(DescribeCreateCaseOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCreateCaseOptionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCreateCaseOptionsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeCreateCaseOptionsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeServices
/// <summary>
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your <a>CreateCase</a>
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that appear in the <b>Service</b>
/// and <b>Category</b> lists on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. The values in those fields don't necessarily match the service codes
/// and categories returned by the <code>DescribeServices</code> operation. Always use
/// the service codes and categories that the <code>DescribeServices</code> operation
/// returns, so that you have the most recent set of service and category codes.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
public virtual DescribeServicesResponse DescribeServices()
{
return DescribeServices(new DescribeServicesRequest());
}
/// <summary>
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your <a>CreateCase</a>
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that appear in the <b>Service</b>
/// and <b>Category</b> lists on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. The values in those fields don't necessarily match the service codes
/// and categories returned by the <code>DescribeServices</code> operation. Always use
/// the service codes and categories that the <code>DescribeServices</code> operation
/// returns, so that you have the most recent set of service and category codes.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeServices service method.</param>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
public virtual DescribeServicesResponse DescribeServices(DescribeServicesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeServicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeServicesResponseUnmarshaller.Instance;
return Invoke<DescribeServicesResponse>(request, options);
}
/// <summary>
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your <a>CreateCase</a>
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that appear in the <b>Service</b>
/// and <b>Category</b> lists on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. The values in those fields don't necessarily match the service codes
/// and categories returned by the <code>DescribeServices</code> operation. Always use
/// the service codes and categories that the <code>DescribeServices</code> operation
/// returns, so that you have the most recent set of service and category codes.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
public virtual Task<DescribeServicesResponse> DescribeServicesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return DescribeServicesAsync(new DescribeServicesRequest(), cancellationToken);
}
/// <summary>
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your <a>CreateCase</a>
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that appear in the <b>Service</b>
/// and <b>Category</b> lists on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. The values in those fields don't necessarily match the service codes
/// and categories returned by the <code>DescribeServices</code> operation. Always use
/// the service codes and categories that the <code>DescribeServices</code> operation
/// returns, so that you have the most recent set of service and category codes.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeServices service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
public virtual Task<DescribeServicesResponse> DescribeServicesAsync(DescribeServicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeServicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeServicesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeServicesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeSeverityLevels
/// <summary>
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the <a>CaseDetails</a> data type that you include
/// for a <a>CreateCase</a> request.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
public virtual DescribeSeverityLevelsResponse DescribeSeverityLevels()
{
return DescribeSeverityLevels(new DescribeSeverityLevelsRequest());
}
/// <summary>
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the <a>CaseDetails</a> data type that you include
/// for a <a>CreateCase</a> request.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSeverityLevels service method.</param>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
public virtual DescribeSeverityLevelsResponse DescribeSeverityLevels(DescribeSeverityLevelsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSeverityLevelsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSeverityLevelsResponseUnmarshaller.Instance;
return Invoke<DescribeSeverityLevelsResponse>(request, options);
}
/// <summary>
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the <a>CaseDetails</a> data type that you include
/// for a <a>CreateCase</a> request.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
public virtual Task<DescribeSeverityLevelsResponse> DescribeSeverityLevelsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return DescribeSeverityLevelsAsync(new DescribeSeverityLevelsRequest(), cancellationToken);
}
/// <summary>
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the <a>CaseDetails</a> data type that you include
/// for a <a>CreateCase</a> request.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSeverityLevels service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
public virtual Task<DescribeSeverityLevelsResponse> DescribeSeverityLevelsAsync(DescribeSeverityLevelsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSeverityLevelsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSeverityLevelsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeSeverityLevelsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeSupportedLanguages
/// <summary>
/// Returns a list of supported languages for a specified <code>categoryCode</code>, <code>issueType</code>
/// and <code>serviceCode</code>. The returned supported languages will include a ISO
/// 639-1 code for the <code>language</code>, and the language display name.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSupportedLanguages service method.</param>
///
/// <returns>The response from the DescribeSupportedLanguages service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSupportedLanguages">REST API Reference for DescribeSupportedLanguages Operation</seealso>
public virtual DescribeSupportedLanguagesResponse DescribeSupportedLanguages(DescribeSupportedLanguagesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSupportedLanguagesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSupportedLanguagesResponseUnmarshaller.Instance;
return Invoke<DescribeSupportedLanguagesResponse>(request, options);
}
/// <summary>
/// Returns a list of supported languages for a specified <code>categoryCode</code>, <code>issueType</code>
/// and <code>serviceCode</code>. The returned supported languages will include a ISO
/// 639-1 code for the <code>language</code>, and the language display name.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSupportedLanguages service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeSupportedLanguages service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSupportedLanguages">REST API Reference for DescribeSupportedLanguages Operation</seealso>
public virtual Task<DescribeSupportedLanguagesResponse> DescribeSupportedLanguagesAsync(DescribeSupportedLanguagesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSupportedLanguagesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSupportedLanguagesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeSupportedLanguagesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeTrustedAdvisorCheckRefreshStatuses
/// <summary>
/// Returns the refresh status of the Trusted Advisor checks that have the specified check
/// IDs. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a>
/// operation.
///
///
/// <para>
/// Some checks are refreshed automatically, and you can't return their refresh statuses
/// by using the <code>DescribeTrustedAdvisorCheckRefreshStatuses</code> operation. If
/// you call this operation for these checks, you might see an <code>InvalidParameterValue</code>
/// error.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckRefreshStatuses service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckRefreshStatuses service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses">REST API Reference for DescribeTrustedAdvisorCheckRefreshStatuses Operation</seealso>
public virtual DescribeTrustedAdvisorCheckRefreshStatusesResponse DescribeTrustedAdvisorCheckRefreshStatuses(DescribeTrustedAdvisorCheckRefreshStatusesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckRefreshStatusesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckRefreshStatusesResponseUnmarshaller.Instance;
return Invoke<DescribeTrustedAdvisorCheckRefreshStatusesResponse>(request, options);
}
/// <summary>
/// Returns the refresh status of the Trusted Advisor checks that have the specified check
/// IDs. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a>
/// operation.
///
///
/// <para>
/// Some checks are refreshed automatically, and you can't return their refresh statuses
/// by using the <code>DescribeTrustedAdvisorCheckRefreshStatuses</code> operation. If
/// you call this operation for these checks, you might see an <code>InvalidParameterValue</code>
/// error.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckRefreshStatuses service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckRefreshStatuses service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses">REST API Reference for DescribeTrustedAdvisorCheckRefreshStatuses Operation</seealso>
public virtual Task<DescribeTrustedAdvisorCheckRefreshStatusesResponse> DescribeTrustedAdvisorCheckRefreshStatusesAsync(DescribeTrustedAdvisorCheckRefreshStatusesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckRefreshStatusesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckRefreshStatusesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeTrustedAdvisorCheckRefreshStatusesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeTrustedAdvisorCheckResult
/// <summary>
/// Returns the results of the Trusted Advisor check that has the specified check ID.
/// You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckResult</a> object, which contains these
/// three objects:
/// </para>
/// <ul> <li>
/// <para>
/// <a>TrustedAdvisorCategorySpecificSummary</a>
/// </para>
/// </li> <li>
/// <para>
/// <a>TrustedAdvisorResourceDetail</a>
/// </para>
/// </li> <li>
/// <para>
/// <a>TrustedAdvisorResourcesSummary</a>
/// </para>
/// </li> </ul>
/// <para>
/// In addition, the response contains these fields:
/// </para>
/// <ul> <li>
/// <para>
/// <b>status</b> - The alert status of the check can be <code>ok</code> (green), <code>warning</code>
/// (yellow), <code>error</code> (red), or <code>not_available</code>.
/// </para>
/// </li> <li>
/// <para>
/// <b>timestamp</b> - The time of the last refresh of the check.
/// </para>
/// </li> <li>
/// <para>
/// <b>checkId</b> - The unique identifier for the check.
/// </para>
/// </li> </ul> <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckResult service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckResult service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult">REST API Reference for DescribeTrustedAdvisorCheckResult Operation</seealso>
public virtual DescribeTrustedAdvisorCheckResultResponse DescribeTrustedAdvisorCheckResult(DescribeTrustedAdvisorCheckResultRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckResultRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckResultResponseUnmarshaller.Instance;
return Invoke<DescribeTrustedAdvisorCheckResultResponse>(request, options);
}
/// <summary>
/// Returns the results of the Trusted Advisor check that has the specified check ID.
/// You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckResult</a> object, which contains these
/// three objects:
/// </para>
/// <ul> <li>
/// <para>
/// <a>TrustedAdvisorCategorySpecificSummary</a>
/// </para>
/// </li> <li>
/// <para>
/// <a>TrustedAdvisorResourceDetail</a>
/// </para>
/// </li> <li>
/// <para>
/// <a>TrustedAdvisorResourcesSummary</a>
/// </para>
/// </li> </ul>
/// <para>
/// In addition, the response contains these fields:
/// </para>
/// <ul> <li>
/// <para>
/// <b>status</b> - The alert status of the check can be <code>ok</code> (green), <code>warning</code>
/// (yellow), <code>error</code> (red), or <code>not_available</code>.
/// </para>
/// </li> <li>
/// <para>
/// <b>timestamp</b> - The time of the last refresh of the check.
/// </para>
/// </li> <li>
/// <para>
/// <b>checkId</b> - The unique identifier for the check.
/// </para>
/// </li> </ul> <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckResult service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckResult service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult">REST API Reference for DescribeTrustedAdvisorCheckResult Operation</seealso>
public virtual Task<DescribeTrustedAdvisorCheckResultResponse> DescribeTrustedAdvisorCheckResultAsync(DescribeTrustedAdvisorCheckResultRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckResultRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckResultResponseUnmarshaller.Instance;
return InvokeAsync<DescribeTrustedAdvisorCheckResultResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeTrustedAdvisorChecks
/// <summary>
/// Returns information about all available Trusted Advisor checks, including the name,
/// ID, category, description, and metadata. You must specify a language code.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckDescription</a> object for each check.
/// You must set the Amazon Web Services Region to us-east-1.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> <li>
/// <para>
/// The names and descriptions for Trusted Advisor checks are subject to change. We recommend
/// that you specify the check ID in your code to uniquely identify a check.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorChecks service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorChecks service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks">REST API Reference for DescribeTrustedAdvisorChecks Operation</seealso>
public virtual DescribeTrustedAdvisorChecksResponse DescribeTrustedAdvisorChecks(DescribeTrustedAdvisorChecksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorChecksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorChecksResponseUnmarshaller.Instance;
return Invoke<DescribeTrustedAdvisorChecksResponse>(request, options);
}
/// <summary>
/// Returns information about all available Trusted Advisor checks, including the name,
/// ID, category, description, and metadata. You must specify a language code.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckDescription</a> object for each check.
/// You must set the Amazon Web Services Region to us-east-1.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> <li>
/// <para>
/// The names and descriptions for Trusted Advisor checks are subject to change. We recommend
/// that you specify the check ID in your code to uniquely identify a check.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorChecks service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTrustedAdvisorChecks service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks">REST API Reference for DescribeTrustedAdvisorChecks Operation</seealso>
public virtual Task<DescribeTrustedAdvisorChecksResponse> DescribeTrustedAdvisorChecksAsync(DescribeTrustedAdvisorChecksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorChecksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorChecksResponseUnmarshaller.Instance;
return InvokeAsync<DescribeTrustedAdvisorChecksResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeTrustedAdvisorCheckSummaries
/// <summary>
/// Returns the results for the Trusted Advisor check summaries for the check IDs that
/// you specified. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a>
/// operation.
///
///
/// <para>
/// The response contains an array of <a>TrustedAdvisorCheckSummary</a> objects.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckSummaries service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckSummaries service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries">REST API Reference for DescribeTrustedAdvisorCheckSummaries Operation</seealso>
public virtual DescribeTrustedAdvisorCheckSummariesResponse DescribeTrustedAdvisorCheckSummaries(DescribeTrustedAdvisorCheckSummariesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckSummariesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckSummariesResponseUnmarshaller.Instance;
return Invoke<DescribeTrustedAdvisorCheckSummariesResponse>(request, options);
}
/// <summary>
/// Returns the results for the Trusted Advisor check summaries for the check IDs that
/// you specified. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a>
/// operation.
///
///
/// <para>
/// The response contains an array of <a>TrustedAdvisorCheckSummary</a> objects.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckSummaries service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckSummaries service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries">REST API Reference for DescribeTrustedAdvisorCheckSummaries Operation</seealso>
public virtual Task<DescribeTrustedAdvisorCheckSummariesResponse> DescribeTrustedAdvisorCheckSummariesAsync(DescribeTrustedAdvisorCheckSummariesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckSummariesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckSummariesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeTrustedAdvisorCheckSummariesResponse>(request, options, cancellationToken);
}
#endregion
#region RefreshTrustedAdvisorCheck
/// <summary>
/// Refreshes the Trusted Advisor check that you specify using the check ID. You can get
/// the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation.
///
///
/// <para>
/// Some checks are refreshed automatically. If you call the <code>RefreshTrustedAdvisorCheck</code>
/// operation to refresh them, you might see the <code>InvalidParameterValue</code> error.
/// </para>
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckRefreshStatus</a> object.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshTrustedAdvisorCheck service method.</param>
///
/// <returns>The response from the RefreshTrustedAdvisorCheck service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck">REST API Reference for RefreshTrustedAdvisorCheck Operation</seealso>
public virtual RefreshTrustedAdvisorCheckResponse RefreshTrustedAdvisorCheck(RefreshTrustedAdvisorCheckRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RefreshTrustedAdvisorCheckRequestMarshaller.Instance;
options.ResponseUnmarshaller = RefreshTrustedAdvisorCheckResponseUnmarshaller.Instance;
return Invoke<RefreshTrustedAdvisorCheckResponse>(request, options);
}
/// <summary>
/// Refreshes the Trusted Advisor check that you specify using the check ID. You can get
/// the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation.
///
///
/// <para>
/// Some checks are refreshed automatically. If you call the <code>RefreshTrustedAdvisorCheck</code>
/// operation to refresh them, you might see the <code>InvalidParameterValue</code> error.
/// </para>
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckRefreshStatus</a> object.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshTrustedAdvisorCheck service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RefreshTrustedAdvisorCheck service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck">REST API Reference for RefreshTrustedAdvisorCheck Operation</seealso>
public virtual Task<RefreshTrustedAdvisorCheckResponse> RefreshTrustedAdvisorCheckAsync(RefreshTrustedAdvisorCheckRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RefreshTrustedAdvisorCheckRequestMarshaller.Instance;
options.ResponseUnmarshaller = RefreshTrustedAdvisorCheckResponseUnmarshaller.Instance;
return InvokeAsync<RefreshTrustedAdvisorCheckResponse>(request, options, cancellationToken);
}
#endregion
#region ResolveCase
/// <summary>
/// Resolves a support case. This operation takes a <code>caseId</code> and returns the
/// initial and final state of the case.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ResolveCase service method.</param>
///
/// <returns>The response from the ResolveCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase">REST API Reference for ResolveCase Operation</seealso>
public virtual ResolveCaseResponse ResolveCase(ResolveCaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ResolveCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResolveCaseResponseUnmarshaller.Instance;
return Invoke<ResolveCaseResponse>(request, options);
}
/// <summary>
/// Resolves a support case. This operation takes a <code>caseId</code> and returns the
/// initial and final state of the case.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ResolveCase service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ResolveCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase">REST API Reference for ResolveCase Operation</seealso>
public virtual Task<ResolveCaseResponse> ResolveCaseAsync(ResolveCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ResolveCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResolveCaseResponseUnmarshaller.Instance;
return InvokeAsync<ResolveCaseResponse>(request, options, cancellationToken);
}
#endregion
}
}
| 2,233 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AWSSupport.Model;
namespace Amazon.AWSSupport
{
/// <summary>
/// Interface for accessing AWSSupport
///
/// Amazon Web Services Support
/// <para>
/// The <i>Amazon Web Services Support API Reference</i> is intended for programmers who
/// need detailed information about the Amazon Web Services Support operations and data
/// types. You can use the API to manage your support cases programmatically. The Amazon
/// Web Services Support API uses HTTP methods that return results in JSON format.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// You can also use the Amazon Web Services Support API to access features for <a href="http://aws.amazon.com/premiumsupport/trustedadvisor/">Trusted
/// Advisor</a>. You can return a list of checks and their descriptions, get check results,
/// specify checks to refresh, and get the refresh status of checks.
/// </para>
///
/// <para>
/// You can manage your support cases with the following Amazon Web Services Support API
/// operations:
/// </para>
/// <ul> <li>
/// <para>
/// The <a>CreateCase</a>, <a>DescribeCases</a>, <a>DescribeAttachment</a>, and <a>ResolveCase</a>
/// operations create Amazon Web Services Support cases, retrieve information about cases,
/// and resolve cases.
/// </para>
/// </li> <li>
/// <para>
/// The <a>DescribeCommunications</a>, <a>AddCommunicationToCase</a>, and <a>AddAttachmentsToSet</a>
/// operations retrieve and add communications and attachments to Amazon Web Services
/// Support cases.
/// </para>
/// </li> <li>
/// <para>
/// The <a>DescribeServices</a> and <a>DescribeSeverityLevels</a> operations return Amazon
/// Web Service names, service codes, service categories, and problem severity levels.
/// You use these values when you call the <a>CreateCase</a> operation.
/// </para>
/// </li> </ul>
/// <para>
/// You can also use the Amazon Web Services Support API to call the Trusted Advisor operations.
/// For more information, see <a href="https://docs.aws.amazon.com/">Trusted Advisor</a>
/// in the <i>Amazon Web Services Support User Guide</i>.
/// </para>
///
/// <para>
/// For authentication of requests, Amazon Web Services Support uses <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature
/// Version 4 Signing Process</a>.
/// </para>
///
/// <para>
/// For more information about this service and the endpoints to use, see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
public partial interface IAmazonAWSSupport : IAmazonService, IDisposable
{
/// <summary>
/// Paginators for the service
/// </summary>
IAWSSupportPaginatorFactory Paginators { get; }
#region AddAttachmentsToSet
/// <summary>
/// Adds one or more attachments to an attachment set.
///
///
/// <para>
/// An attachment set is a temporary container for attachments that you add to a case
/// or case communication. The set is available for 1 hour after it's created. The <code>expiryTime</code>
/// returned in the response is when the set expires.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddAttachmentsToSet service method.</param>
///
/// <returns>The response from the AddAttachmentsToSet service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentLimitExceededException">
/// The limit for the number of attachment sets created in a short period of time has
/// been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetSizeLimitExceededException">
/// A limit for the size of an attachment set has been exceeded. The limits are three
/// attachments and 5 MB per attachment.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet">REST API Reference for AddAttachmentsToSet Operation</seealso>
AddAttachmentsToSetResponse AddAttachmentsToSet(AddAttachmentsToSetRequest request);
/// <summary>
/// Adds one or more attachments to an attachment set.
///
///
/// <para>
/// An attachment set is a temporary container for attachments that you add to a case
/// or case communication. The set is available for 1 hour after it's created. The <code>expiryTime</code>
/// returned in the response is when the set expires.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddAttachmentsToSet service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the AddAttachmentsToSet service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentLimitExceededException">
/// The limit for the number of attachment sets created in a short period of time has
/// been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetSizeLimitExceededException">
/// A limit for the size of an attachment set has been exceeded. The limits are three
/// attachments and 5 MB per attachment.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet">REST API Reference for AddAttachmentsToSet Operation</seealso>
Task<AddAttachmentsToSetResponse> AddAttachmentsToSetAsync(AddAttachmentsToSetRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region AddCommunicationToCase
/// <summary>
/// Adds additional customer communication to an Amazon Web Services Support case. Use
/// the <code>caseId</code> parameter to identify the case to which to add communication.
/// You can list a set of email addresses to copy on the communication by using the <code>ccEmailAddresses</code>
/// parameter. The <code>communicationBody</code> value contains the text of the communication.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddCommunicationToCase service method.</param>
///
/// <returns>The response from the AddCommunicationToCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase">REST API Reference for AddCommunicationToCase Operation</seealso>
AddCommunicationToCaseResponse AddCommunicationToCase(AddCommunicationToCaseRequest request);
/// <summary>
/// Adds additional customer communication to an Amazon Web Services Support case. Use
/// the <code>caseId</code> parameter to identify the case to which to add communication.
/// You can list a set of email addresses to copy on the communication by using the <code>ccEmailAddresses</code>
/// parameter. The <code>communicationBody</code> value contains the text of the communication.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddCommunicationToCase service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the AddCommunicationToCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase">REST API Reference for AddCommunicationToCase Operation</seealso>
Task<AddCommunicationToCaseResponse> AddCommunicationToCaseAsync(AddCommunicationToCaseRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateCase
/// <summary>
/// Creates a case in the Amazon Web Services Support Center. This operation is similar
/// to how you create a case in the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.
///
///
/// <para>
/// The Amazon Web Services Support API doesn't support requesting service limit increases.
/// You can submit a service limit increase in the following ways:
/// </para>
/// <ul> <li>
/// <para>
/// Submit a request from the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.
/// </para>
/// </li> <li>
/// <para>
/// Use the Service Quotas <a href="https://docs.aws.amazon.com/servicequotas/2019-06-24/apireference/API_RequestServiceQuotaIncrease.html">RequestServiceQuotaIncrease</a>
/// operation.
/// </para>
/// </li> </ul>
/// <para>
/// A successful <code>CreateCase</code> request returns an Amazon Web Services Support
/// case number. You can use the <a>DescribeCases</a> operation and specify the case number
/// to get existing Amazon Web Services Support cases. After you create a case, use the
/// <a>AddCommunicationToCase</a> operation to add additional communication or attachments
/// to an existing case.
/// </para>
///
/// <para>
/// The <code>caseId</code> is separate from the <code>displayId</code> that appears in
/// the <a href="https://console.aws.amazon.com/support">Amazon Web Services Support Center</a>.
/// Use the <a>DescribeCases</a> operation to get the <code>displayId</code>.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateCase service method.</param>
///
/// <returns>The response from the CreateCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseCreationLimitExceededException">
/// The case creation limit for the account has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase">REST API Reference for CreateCase Operation</seealso>
CreateCaseResponse CreateCase(CreateCaseRequest request);
/// <summary>
/// Creates a case in the Amazon Web Services Support Center. This operation is similar
/// to how you create a case in the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.
///
///
/// <para>
/// The Amazon Web Services Support API doesn't support requesting service limit increases.
/// You can submit a service limit increase in the following ways:
/// </para>
/// <ul> <li>
/// <para>
/// Submit a request from the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.
/// </para>
/// </li> <li>
/// <para>
/// Use the Service Quotas <a href="https://docs.aws.amazon.com/servicequotas/2019-06-24/apireference/API_RequestServiceQuotaIncrease.html">RequestServiceQuotaIncrease</a>
/// operation.
/// </para>
/// </li> </ul>
/// <para>
/// A successful <code>CreateCase</code> request returns an Amazon Web Services Support
/// case number. You can use the <a>DescribeCases</a> operation and specify the case number
/// to get existing Amazon Web Services Support cases. After you create a case, use the
/// <a>AddCommunicationToCase</a> operation to add additional communication or attachments
/// to an existing case.
/// </para>
///
/// <para>
/// The <code>caseId</code> is separate from the <code>displayId</code> that appears in
/// the <a href="https://console.aws.amazon.com/support">Amazon Web Services Support Center</a>.
/// Use the <a>DescribeCases</a> operation to get the <code>displayId</code>.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateCase service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseCreationLimitExceededException">
/// The case creation limit for the account has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase">REST API Reference for CreateCase Operation</seealso>
Task<CreateCaseResponse> CreateCaseAsync(CreateCaseRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeAttachment
/// <summary>
/// Returns the attachment that has the specified ID. Attachments can include screenshots,
/// error logs, or other files that describe your issue. Attachment IDs are generated
/// by the case management system when you add an attachment to a case or case communication.
/// Attachment IDs are returned in the <a>AttachmentDetails</a> objects that are returned
/// by the <a>DescribeCommunications</a> operation.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAttachment service method.</param>
///
/// <returns>The response from the DescribeAttachment service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentIdNotFoundException">
/// An attachment with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.DescribeAttachmentLimitExceededException">
/// The limit for the number of <a>DescribeAttachment</a> requests in a short period of
/// time has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment">REST API Reference for DescribeAttachment Operation</seealso>
DescribeAttachmentResponse DescribeAttachment(DescribeAttachmentRequest request);
/// <summary>
/// Returns the attachment that has the specified ID. Attachments can include screenshots,
/// error logs, or other files that describe your issue. Attachment IDs are generated
/// by the case management system when you add an attachment to a case or case communication.
/// Attachment IDs are returned in the <a>AttachmentDetails</a> objects that are returned
/// by the <a>DescribeCommunications</a> operation.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAttachment service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeAttachment service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentIdNotFoundException">
/// An attachment with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.DescribeAttachmentLimitExceededException">
/// The limit for the number of <a>DescribeAttachment</a> requests in a short period of
/// time has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment">REST API Reference for DescribeAttachment Operation</seealso>
Task<DescribeAttachmentResponse> DescribeAttachmentAsync(DescribeAttachmentRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeCases
/// <summary>
/// Returns a list of cases that you specify by passing one or more case IDs. You can
/// use the <code>afterTime</code> and <code>beforeTime</code> parameters to filter the
/// cases by date. You can set values for the <code>includeResolvedCases</code> and <code>includeCommunications</code>
/// parameters to specify how much information to return.
///
///
/// <para>
/// The response returns the following in JSON format:
/// </para>
/// <ul> <li>
/// <para>
/// One or more <a href="https://docs.aws.amazon.com/awssupport/latest/APIReference/API_CaseDetails.html">CaseDetails</a>
/// data types.
/// </para>
/// </li> <li>
/// <para>
/// One or more <code>nextToken</code> values, which specify where to paginate the returned
/// records represented by the <code>CaseDetails</code> objects.
/// </para>
/// </li> </ul>
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request might return an error.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCases service method.</param>
///
/// <returns>The response from the DescribeCases service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases">REST API Reference for DescribeCases Operation</seealso>
DescribeCasesResponse DescribeCases(DescribeCasesRequest request);
/// <summary>
/// Returns a list of cases that you specify by passing one or more case IDs. You can
/// use the <code>afterTime</code> and <code>beforeTime</code> parameters to filter the
/// cases by date. You can set values for the <code>includeResolvedCases</code> and <code>includeCommunications</code>
/// parameters to specify how much information to return.
///
///
/// <para>
/// The response returns the following in JSON format:
/// </para>
/// <ul> <li>
/// <para>
/// One or more <a href="https://docs.aws.amazon.com/awssupport/latest/APIReference/API_CaseDetails.html">CaseDetails</a>
/// data types.
/// </para>
/// </li> <li>
/// <para>
/// One or more <code>nextToken</code> values, which specify where to paginate the returned
/// records represented by the <code>CaseDetails</code> objects.
/// </para>
/// </li> </ul>
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request might return an error.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCases service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeCases service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases">REST API Reference for DescribeCases Operation</seealso>
Task<DescribeCasesResponse> DescribeCasesAsync(DescribeCasesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeCommunications
/// <summary>
/// Returns communications and attachments for one or more support cases. Use the <code>afterTime</code>
/// and <code>beforeTime</code> parameters to filter by date. You can use the <code>caseId</code>
/// parameter to restrict the results to a specific case.
///
///
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request for data might cause an error.
/// </para>
///
/// <para>
/// You can use the <code>maxResults</code> and <code>nextToken</code> parameters to control
/// the pagination of the results. Set <code>maxResults</code> to the number of cases
/// that you want to display on each page, and use <code>nextToken</code> to specify the
/// resumption of pagination.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCommunications service method.</param>
///
/// <returns>The response from the DescribeCommunications service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications">REST API Reference for DescribeCommunications Operation</seealso>
DescribeCommunicationsResponse DescribeCommunications(DescribeCommunicationsRequest request);
/// <summary>
/// Returns communications and attachments for one or more support cases. Use the <code>afterTime</code>
/// and <code>beforeTime</code> parameters to filter by date. You can use the <code>caseId</code>
/// parameter to restrict the results to a specific case.
///
///
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request for data might cause an error.
/// </para>
///
/// <para>
/// You can use the <code>maxResults</code> and <code>nextToken</code> parameters to control
/// the pagination of the results. Set <code>maxResults</code> to the number of cases
/// that you want to display on each page, and use <code>nextToken</code> to specify the
/// resumption of pagination.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCommunications service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeCommunications service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications">REST API Reference for DescribeCommunications Operation</seealso>
Task<DescribeCommunicationsResponse> DescribeCommunicationsAsync(DescribeCommunicationsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeCreateCaseOptions
/// <summary>
/// Returns a list of CreateCaseOption types along with the corresponding supported hours
/// and language availability. You can specify the <code>language</code> <code>categoryCode</code>,
/// <code>issueType</code> and <code>serviceCode</code> used to retrieve the CreateCaseOptions.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCreateCaseOptions service method.</param>
///
/// <returns>The response from the DescribeCreateCaseOptions service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCreateCaseOptions">REST API Reference for DescribeCreateCaseOptions Operation</seealso>
DescribeCreateCaseOptionsResponse DescribeCreateCaseOptions(DescribeCreateCaseOptionsRequest request);
/// <summary>
/// Returns a list of CreateCaseOption types along with the corresponding supported hours
/// and language availability. You can specify the <code>language</code> <code>categoryCode</code>,
/// <code>issueType</code> and <code>serviceCode</code> used to retrieve the CreateCaseOptions.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCreateCaseOptions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeCreateCaseOptions service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCreateCaseOptions">REST API Reference for DescribeCreateCaseOptions Operation</seealso>
Task<DescribeCreateCaseOptionsResponse> DescribeCreateCaseOptionsAsync(DescribeCreateCaseOptionsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeServices
/// <summary>
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your <a>CreateCase</a>
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that appear in the <b>Service</b>
/// and <b>Category</b> lists on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. The values in those fields don't necessarily match the service codes
/// and categories returned by the <code>DescribeServices</code> operation. Always use
/// the service codes and categories that the <code>DescribeServices</code> operation
/// returns, so that you have the most recent set of service and category codes.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
DescribeServicesResponse DescribeServices();
/// <summary>
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your <a>CreateCase</a>
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that appear in the <b>Service</b>
/// and <b>Category</b> lists on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. The values in those fields don't necessarily match the service codes
/// and categories returned by the <code>DescribeServices</code> operation. Always use
/// the service codes and categories that the <code>DescribeServices</code> operation
/// returns, so that you have the most recent set of service and category codes.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeServices service method.</param>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
DescribeServicesResponse DescribeServices(DescribeServicesRequest request);
/// <summary>
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your <a>CreateCase</a>
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that appear in the <b>Service</b>
/// and <b>Category</b> lists on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. The values in those fields don't necessarily match the service codes
/// and categories returned by the <code>DescribeServices</code> operation. Always use
/// the service codes and categories that the <code>DescribeServices</code> operation
/// returns, so that you have the most recent set of service and category codes.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
Task<DescribeServicesResponse> DescribeServicesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your <a>CreateCase</a>
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that appear in the <b>Service</b>
/// and <b>Category</b> lists on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. The values in those fields don't necessarily match the service codes
/// and categories returned by the <code>DescribeServices</code> operation. Always use
/// the service codes and categories that the <code>DescribeServices</code> operation
/// returns, so that you have the most recent set of service and category codes.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeServices service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
Task<DescribeServicesResponse> DescribeServicesAsync(DescribeServicesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeSeverityLevels
/// <summary>
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the <a>CaseDetails</a> data type that you include
/// for a <a>CreateCase</a> request.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
DescribeSeverityLevelsResponse DescribeSeverityLevels();
/// <summary>
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the <a>CaseDetails</a> data type that you include
/// for a <a>CreateCase</a> request.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSeverityLevels service method.</param>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
DescribeSeverityLevelsResponse DescribeSeverityLevels(DescribeSeverityLevelsRequest request);
/// <summary>
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the <a>CaseDetails</a> data type that you include
/// for a <a>CreateCase</a> request.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
Task<DescribeSeverityLevelsResponse> DescribeSeverityLevelsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the <a>CaseDetails</a> data type that you include
/// for a <a>CreateCase</a> request.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSeverityLevels service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
Task<DescribeSeverityLevelsResponse> DescribeSeverityLevelsAsync(DescribeSeverityLevelsRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeSupportedLanguages
/// <summary>
/// Returns a list of supported languages for a specified <code>categoryCode</code>, <code>issueType</code>
/// and <code>serviceCode</code>. The returned supported languages will include a ISO
/// 639-1 code for the <code>language</code>, and the language display name.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSupportedLanguages service method.</param>
///
/// <returns>The response from the DescribeSupportedLanguages service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSupportedLanguages">REST API Reference for DescribeSupportedLanguages Operation</seealso>
DescribeSupportedLanguagesResponse DescribeSupportedLanguages(DescribeSupportedLanguagesRequest request);
/// <summary>
/// Returns a list of supported languages for a specified <code>categoryCode</code>, <code>issueType</code>
/// and <code>serviceCode</code>. The returned supported languages will include a ISO
/// 639-1 code for the <code>language</code>, and the language display name.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSupportedLanguages service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeSupportedLanguages service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSupportedLanguages">REST API Reference for DescribeSupportedLanguages Operation</seealso>
Task<DescribeSupportedLanguagesResponse> DescribeSupportedLanguagesAsync(DescribeSupportedLanguagesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeTrustedAdvisorCheckRefreshStatuses
/// <summary>
/// Returns the refresh status of the Trusted Advisor checks that have the specified check
/// IDs. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a>
/// operation.
///
///
/// <para>
/// Some checks are refreshed automatically, and you can't return their refresh statuses
/// by using the <code>DescribeTrustedAdvisorCheckRefreshStatuses</code> operation. If
/// you call this operation for these checks, you might see an <code>InvalidParameterValue</code>
/// error.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckRefreshStatuses service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckRefreshStatuses service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses">REST API Reference for DescribeTrustedAdvisorCheckRefreshStatuses Operation</seealso>
DescribeTrustedAdvisorCheckRefreshStatusesResponse DescribeTrustedAdvisorCheckRefreshStatuses(DescribeTrustedAdvisorCheckRefreshStatusesRequest request);
/// <summary>
/// Returns the refresh status of the Trusted Advisor checks that have the specified check
/// IDs. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a>
/// operation.
///
///
/// <para>
/// Some checks are refreshed automatically, and you can't return their refresh statuses
/// by using the <code>DescribeTrustedAdvisorCheckRefreshStatuses</code> operation. If
/// you call this operation for these checks, you might see an <code>InvalidParameterValue</code>
/// error.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckRefreshStatuses service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckRefreshStatuses service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses">REST API Reference for DescribeTrustedAdvisorCheckRefreshStatuses Operation</seealso>
Task<DescribeTrustedAdvisorCheckRefreshStatusesResponse> DescribeTrustedAdvisorCheckRefreshStatusesAsync(DescribeTrustedAdvisorCheckRefreshStatusesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeTrustedAdvisorCheckResult
/// <summary>
/// Returns the results of the Trusted Advisor check that has the specified check ID.
/// You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckResult</a> object, which contains these
/// three objects:
/// </para>
/// <ul> <li>
/// <para>
/// <a>TrustedAdvisorCategorySpecificSummary</a>
/// </para>
/// </li> <li>
/// <para>
/// <a>TrustedAdvisorResourceDetail</a>
/// </para>
/// </li> <li>
/// <para>
/// <a>TrustedAdvisorResourcesSummary</a>
/// </para>
/// </li> </ul>
/// <para>
/// In addition, the response contains these fields:
/// </para>
/// <ul> <li>
/// <para>
/// <b>status</b> - The alert status of the check can be <code>ok</code> (green), <code>warning</code>
/// (yellow), <code>error</code> (red), or <code>not_available</code>.
/// </para>
/// </li> <li>
/// <para>
/// <b>timestamp</b> - The time of the last refresh of the check.
/// </para>
/// </li> <li>
/// <para>
/// <b>checkId</b> - The unique identifier for the check.
/// </para>
/// </li> </ul> <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckResult service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckResult service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult">REST API Reference for DescribeTrustedAdvisorCheckResult Operation</seealso>
DescribeTrustedAdvisorCheckResultResponse DescribeTrustedAdvisorCheckResult(DescribeTrustedAdvisorCheckResultRequest request);
/// <summary>
/// Returns the results of the Trusted Advisor check that has the specified check ID.
/// You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckResult</a> object, which contains these
/// three objects:
/// </para>
/// <ul> <li>
/// <para>
/// <a>TrustedAdvisorCategorySpecificSummary</a>
/// </para>
/// </li> <li>
/// <para>
/// <a>TrustedAdvisorResourceDetail</a>
/// </para>
/// </li> <li>
/// <para>
/// <a>TrustedAdvisorResourcesSummary</a>
/// </para>
/// </li> </ul>
/// <para>
/// In addition, the response contains these fields:
/// </para>
/// <ul> <li>
/// <para>
/// <b>status</b> - The alert status of the check can be <code>ok</code> (green), <code>warning</code>
/// (yellow), <code>error</code> (red), or <code>not_available</code>.
/// </para>
/// </li> <li>
/// <para>
/// <b>timestamp</b> - The time of the last refresh of the check.
/// </para>
/// </li> <li>
/// <para>
/// <b>checkId</b> - The unique identifier for the check.
/// </para>
/// </li> </ul> <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckResult service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckResult service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult">REST API Reference for DescribeTrustedAdvisorCheckResult Operation</seealso>
Task<DescribeTrustedAdvisorCheckResultResponse> DescribeTrustedAdvisorCheckResultAsync(DescribeTrustedAdvisorCheckResultRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeTrustedAdvisorChecks
/// <summary>
/// Returns information about all available Trusted Advisor checks, including the name,
/// ID, category, description, and metadata. You must specify a language code.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckDescription</a> object for each check.
/// You must set the Amazon Web Services Region to us-east-1.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> <li>
/// <para>
/// The names and descriptions for Trusted Advisor checks are subject to change. We recommend
/// that you specify the check ID in your code to uniquely identify a check.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorChecks service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorChecks service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks">REST API Reference for DescribeTrustedAdvisorChecks Operation</seealso>
DescribeTrustedAdvisorChecksResponse DescribeTrustedAdvisorChecks(DescribeTrustedAdvisorChecksRequest request);
/// <summary>
/// Returns information about all available Trusted Advisor checks, including the name,
/// ID, category, description, and metadata. You must specify a language code.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckDescription</a> object for each check.
/// You must set the Amazon Web Services Region to us-east-1.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> <li>
/// <para>
/// The names and descriptions for Trusted Advisor checks are subject to change. We recommend
/// that you specify the check ID in your code to uniquely identify a check.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorChecks service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTrustedAdvisorChecks service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks">REST API Reference for DescribeTrustedAdvisorChecks Operation</seealso>
Task<DescribeTrustedAdvisorChecksResponse> DescribeTrustedAdvisorChecksAsync(DescribeTrustedAdvisorChecksRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeTrustedAdvisorCheckSummaries
/// <summary>
/// Returns the results for the Trusted Advisor check summaries for the check IDs that
/// you specified. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a>
/// operation.
///
///
/// <para>
/// The response contains an array of <a>TrustedAdvisorCheckSummary</a> objects.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckSummaries service method.</param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckSummaries service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries">REST API Reference for DescribeTrustedAdvisorCheckSummaries Operation</seealso>
DescribeTrustedAdvisorCheckSummariesResponse DescribeTrustedAdvisorCheckSummaries(DescribeTrustedAdvisorCheckSummariesRequest request);
/// <summary>
/// Returns the results for the Trusted Advisor check summaries for the check IDs that
/// you specified. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a>
/// operation.
///
///
/// <para>
/// The response contains an array of <a>TrustedAdvisorCheckSummary</a> objects.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckSummaries service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckSummaries service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries">REST API Reference for DescribeTrustedAdvisorCheckSummaries Operation</seealso>
Task<DescribeTrustedAdvisorCheckSummariesResponse> DescribeTrustedAdvisorCheckSummariesAsync(DescribeTrustedAdvisorCheckSummariesRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region RefreshTrustedAdvisorCheck
/// <summary>
/// Refreshes the Trusted Advisor check that you specify using the check ID. You can get
/// the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation.
///
///
/// <para>
/// Some checks are refreshed automatically. If you call the <code>RefreshTrustedAdvisorCheck</code>
/// operation to refresh them, you might see the <code>InvalidParameterValue</code> error.
/// </para>
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckRefreshStatus</a> object.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshTrustedAdvisorCheck service method.</param>
///
/// <returns>The response from the RefreshTrustedAdvisorCheck service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck">REST API Reference for RefreshTrustedAdvisorCheck Operation</seealso>
RefreshTrustedAdvisorCheckResponse RefreshTrustedAdvisorCheck(RefreshTrustedAdvisorCheckRequest request);
/// <summary>
/// Refreshes the Trusted Advisor check that you specify using the check ID. You can get
/// the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation.
///
///
/// <para>
/// Some checks are refreshed automatically. If you call the <code>RefreshTrustedAdvisorCheck</code>
/// operation to refresh them, you might see the <code>InvalidParameterValue</code> error.
/// </para>
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckRefreshStatus</a> object.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshTrustedAdvisorCheck service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RefreshTrustedAdvisorCheck service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck">REST API Reference for RefreshTrustedAdvisorCheck Operation</seealso>
Task<RefreshTrustedAdvisorCheckResponse> RefreshTrustedAdvisorCheckAsync(RefreshTrustedAdvisorCheckRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ResolveCase
/// <summary>
/// Resolves a support case. This operation takes a <code>caseId</code> and returns the
/// initial and final state of the case.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ResolveCase service method.</param>
///
/// <returns>The response from the ResolveCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase">REST API Reference for ResolveCase Operation</seealso>
ResolveCaseResponse ResolveCase(ResolveCaseRequest request);
/// <summary>
/// Resolves a support case. This operation takes a <code>caseId</code> and returns the
/// initial and final state of the case.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ResolveCase service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ResolveCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase">REST API Reference for ResolveCase Operation</seealso>
Task<ResolveCaseResponse> ResolveCaseAsync(ResolveCaseRequest request, CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}
| 1,794 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.AWSSupport.Model;
using Amazon.AWSSupport.Model.Internal.MarshallTransformations;
using Amazon.AWSSupport.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.AWSSupport
{
/// <summary>
/// Implementation for accessing AWSSupport
///
/// Amazon Web Services Support
/// <para>
/// The <i>Amazon Web Services Support API Reference</i> is intended for programmers who
/// need detailed information about the Amazon Web Services Support operations and data
/// types. You can use the API to manage your support cases programmatically. The Amazon
/// Web Services Support API uses HTTP methods that return results in JSON format.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// You can also use the Amazon Web Services Support API to access features for <a href="http://aws.amazon.com/premiumsupport/trustedadvisor/">Trusted
/// Advisor</a>. You can return a list of checks and their descriptions, get check results,
/// specify checks to refresh, and get the refresh status of checks.
/// </para>
///
/// <para>
/// You can manage your support cases with the following Amazon Web Services Support API
/// operations:
/// </para>
/// <ul> <li>
/// <para>
/// The <a>CreateCase</a>, <a>DescribeCases</a>, <a>DescribeAttachment</a>, and <a>ResolveCase</a>
/// operations create Amazon Web Services Support cases, retrieve information about cases,
/// and resolve cases.
/// </para>
/// </li> <li>
/// <para>
/// The <a>DescribeCommunications</a>, <a>AddCommunicationToCase</a>, and <a>AddAttachmentsToSet</a>
/// operations retrieve and add communications and attachments to Amazon Web Services
/// Support cases.
/// </para>
/// </li> <li>
/// <para>
/// The <a>DescribeServices</a> and <a>DescribeSeverityLevels</a> operations return Amazon
/// Web Service names, service codes, service categories, and problem severity levels.
/// You use these values when you call the <a>CreateCase</a> operation.
/// </para>
/// </li> </ul>
/// <para>
/// You can also use the Amazon Web Services Support API to call the Trusted Advisor operations.
/// For more information, see <a href="https://docs.aws.amazon.com/">Trusted Advisor</a>
/// in the <i>Amazon Web Services Support User Guide</i>.
/// </para>
///
/// <para>
/// For authentication of requests, Amazon Web Services Support uses <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature
/// Version 4 Signing Process</a>.
/// </para>
///
/// <para>
/// For more information about this service and the endpoints to use, see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
public partial class AmazonAWSSupportClient : AmazonServiceClient, IAmazonAWSSupport
{
private static IServiceMetadata serviceMetadata = new AmazonAWSSupportMetadata();
#region Constructors
/// <summary>
/// Constructs AmazonAWSSupportClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
public AmazonAWSSupportClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSSupportConfig()) { }
/// <summary>
/// Constructs AmazonAWSSupportClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="region">The region to connect.</param>
public AmazonAWSSupportClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonAWSSupportConfig{RegionEndpoint = region}) { }
/// <summary>
/// Constructs AmazonAWSSupportClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
/// <code>
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
/// </code>
///
/// </summary>
/// <param name="config">The AmazonAWSSupportClient Configuration Object</param>
public AmazonAWSSupportClient(AmazonAWSSupportConfig config)
: base(FallbackCredentialsFactory.GetCredentials(), config) { }
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
public AmazonAWSSupportClient(AWSCredentials credentials)
: this(credentials, new AmazonAWSSupportConfig())
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Credentials
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSSupportClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonAWSSupportConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Credentials and an
/// AmazonAWSSupportClient Configuration object.
/// </summary>
/// <param name="credentials">AWS Credentials</param>
/// <param name="clientConfig">The AmazonAWSSupportClient Configuration Object</param>
public AmazonAWSSupportClient(AWSCredentials credentials, AmazonAWSSupportConfig clientConfig)
: base(credentials, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSSupportConfig())
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonAWSSupportConfig() {RegionEndpoint=region})
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSSupportClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="clientConfig">The AmazonAWSSupportClient Configuration Object</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonAWSSupportConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSSupportConfig())
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID and AWS Secret Key
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="region">The region to connect.</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonAWSSupportConfig{RegionEndpoint = region})
{
}
/// <summary>
/// Constructs AmazonAWSSupportClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonAWSSupportClient Configuration object.
/// </summary>
/// <param name="awsAccessKeyId">AWS Access Key ID</param>
/// <param name="awsSecretAccessKey">AWS Secret Access Key</param>
/// <param name="awsSessionToken">AWS Session Token</param>
/// <param name="clientConfig">The AmazonAWSSupportClient Configuration Object</param>
public AmazonAWSSupportClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonAWSSupportConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private IAWSSupportPaginatorFactory _paginators;
/// <summary>
/// Paginators for the service
/// </summary>
public IAWSSupportPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new AWSSupportPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
/// <summary>
/// Creates the signer for the service.
/// </summary>
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
/// <summary>
/// Customizes the runtime pipeline.
/// </summary>
/// <param name="pipeline">Runtime pipeline for the current client.</param>
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler<Amazon.Runtime.Internal.EndpointResolver>();
pipeline.AddHandlerAfter<Amazon.Runtime.Internal.Marshaller>(new AmazonAWSSupportEndpointResolver());
}
/// <summary>
/// Capture metadata for the service.
/// </summary>
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
/// <summary>
/// Disposes the service client.
/// </summary>
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region AddAttachmentsToSet
internal virtual AddAttachmentsToSetResponse AddAttachmentsToSet(AddAttachmentsToSetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AddAttachmentsToSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddAttachmentsToSetResponseUnmarshaller.Instance;
return Invoke<AddAttachmentsToSetResponse>(request, options);
}
/// <summary>
/// Adds one or more attachments to an attachment set.
///
///
/// <para>
/// An attachment set is a temporary container for attachments that you add to a case
/// or case communication. The set is available for 1 hour after it's created. The <code>expiryTime</code>
/// returned in the response is when the set expires.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddAttachmentsToSet service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the AddAttachmentsToSet service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentLimitExceededException">
/// The limit for the number of attachment sets created in a short period of time has
/// been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetSizeLimitExceededException">
/// A limit for the size of an attachment set has been exceeded. The limits are three
/// attachments and 5 MB per attachment.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet">REST API Reference for AddAttachmentsToSet Operation</seealso>
public virtual Task<AddAttachmentsToSetResponse> AddAttachmentsToSetAsync(AddAttachmentsToSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AddAttachmentsToSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddAttachmentsToSetResponseUnmarshaller.Instance;
return InvokeAsync<AddAttachmentsToSetResponse>(request, options, cancellationToken);
}
#endregion
#region AddCommunicationToCase
internal virtual AddCommunicationToCaseResponse AddCommunicationToCase(AddCommunicationToCaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = AddCommunicationToCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddCommunicationToCaseResponseUnmarshaller.Instance;
return Invoke<AddCommunicationToCaseResponse>(request, options);
}
/// <summary>
/// Adds additional customer communication to an Amazon Web Services Support case. Use
/// the <code>caseId</code> parameter to identify the case to which to add communication.
/// You can list a set of email addresses to copy on the communication by using the <code>ccEmailAddresses</code>
/// parameter. The <code>communicationBody</code> value contains the text of the communication.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddCommunicationToCase service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the AddCommunicationToCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase">REST API Reference for AddCommunicationToCase Operation</seealso>
public virtual Task<AddCommunicationToCaseResponse> AddCommunicationToCaseAsync(AddCommunicationToCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = AddCommunicationToCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = AddCommunicationToCaseResponseUnmarshaller.Instance;
return InvokeAsync<AddCommunicationToCaseResponse>(request, options, cancellationToken);
}
#endregion
#region CreateCase
internal virtual CreateCaseResponse CreateCase(CreateCaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCaseResponseUnmarshaller.Instance;
return Invoke<CreateCaseResponse>(request, options);
}
/// <summary>
/// Creates a case in the Amazon Web Services Support Center. This operation is similar
/// to how you create a case in the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.
///
///
/// <para>
/// The Amazon Web Services Support API doesn't support requesting service limit increases.
/// You can submit a service limit increase in the following ways:
/// </para>
/// <ul> <li>
/// <para>
/// Submit a request from the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.
/// </para>
/// </li> <li>
/// <para>
/// Use the Service Quotas <a href="https://docs.aws.amazon.com/servicequotas/2019-06-24/apireference/API_RequestServiceQuotaIncrease.html">RequestServiceQuotaIncrease</a>
/// operation.
/// </para>
/// </li> </ul>
/// <para>
/// A successful <code>CreateCase</code> request returns an Amazon Web Services Support
/// case number. You can use the <a>DescribeCases</a> operation and specify the case number
/// to get existing Amazon Web Services Support cases. After you create a case, use the
/// <a>AddCommunicationToCase</a> operation to add additional communication or attachments
/// to an existing case.
/// </para>
///
/// <para>
/// The <code>caseId</code> is separate from the <code>displayId</code> that appears in
/// the <a href="https://console.aws.amazon.com/support">Amazon Web Services Support Center</a>.
/// Use the <a>DescribeCases</a> operation to get the <code>displayId</code>.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateCase service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseCreationLimitExceededException">
/// The case creation limit for the account has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase">REST API Reference for CreateCase Operation</seealso>
public virtual Task<CreateCaseResponse> CreateCaseAsync(CreateCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateCaseResponseUnmarshaller.Instance;
return InvokeAsync<CreateCaseResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeAttachment
internal virtual DescribeAttachmentResponse DescribeAttachment(DescribeAttachmentRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAttachmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAttachmentResponseUnmarshaller.Instance;
return Invoke<DescribeAttachmentResponse>(request, options);
}
/// <summary>
/// Returns the attachment that has the specified ID. Attachments can include screenshots,
/// error logs, or other files that describe your issue. Attachment IDs are generated
/// by the case management system when you add an attachment to a case or case communication.
/// Attachment IDs are returned in the <a>AttachmentDetails</a> objects that are returned
/// by the <a>DescribeCommunications</a> operation.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAttachment service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeAttachment service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentIdNotFoundException">
/// An attachment with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.DescribeAttachmentLimitExceededException">
/// The limit for the number of <a>DescribeAttachment</a> requests in a short period of
/// time has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment">REST API Reference for DescribeAttachment Operation</seealso>
public virtual Task<DescribeAttachmentResponse> DescribeAttachmentAsync(DescribeAttachmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAttachmentRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAttachmentResponseUnmarshaller.Instance;
return InvokeAsync<DescribeAttachmentResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeCases
internal virtual DescribeCasesResponse DescribeCases(DescribeCasesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCasesResponseUnmarshaller.Instance;
return Invoke<DescribeCasesResponse>(request, options);
}
/// <summary>
/// Returns a list of cases that you specify by passing one or more case IDs. You can
/// use the <code>afterTime</code> and <code>beforeTime</code> parameters to filter the
/// cases by date. You can set values for the <code>includeResolvedCases</code> and <code>includeCommunications</code>
/// parameters to specify how much information to return.
///
///
/// <para>
/// The response returns the following in JSON format:
/// </para>
/// <ul> <li>
/// <para>
/// One or more <a href="https://docs.aws.amazon.com/awssupport/latest/APIReference/API_CaseDetails.html">CaseDetails</a>
/// data types.
/// </para>
/// </li> <li>
/// <para>
/// One or more <code>nextToken</code> values, which specify where to paginate the returned
/// records represented by the <code>CaseDetails</code> objects.
/// </para>
/// </li> </ul>
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request might return an error.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCases service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeCases service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases">REST API Reference for DescribeCases Operation</seealso>
public virtual Task<DescribeCasesResponse> DescribeCasesAsync(DescribeCasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCasesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCasesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeCasesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeCommunications
internal virtual DescribeCommunicationsResponse DescribeCommunications(DescribeCommunicationsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCommunicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCommunicationsResponseUnmarshaller.Instance;
return Invoke<DescribeCommunicationsResponse>(request, options);
}
/// <summary>
/// Returns communications and attachments for one or more support cases. Use the <code>afterTime</code>
/// and <code>beforeTime</code> parameters to filter by date. You can use the <code>caseId</code>
/// parameter to restrict the results to a specific case.
///
///
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request for data might cause an error.
/// </para>
///
/// <para>
/// You can use the <code>maxResults</code> and <code>nextToken</code> parameters to control
/// the pagination of the results. Set <code>maxResults</code> to the number of cases
/// that you want to display on each page, and use <code>nextToken</code> to specify the
/// resumption of pagination.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCommunications service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeCommunications service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications">REST API Reference for DescribeCommunications Operation</seealso>
public virtual Task<DescribeCommunicationsResponse> DescribeCommunicationsAsync(DescribeCommunicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCommunicationsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCommunicationsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeCommunicationsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeCreateCaseOptions
internal virtual DescribeCreateCaseOptionsResponse DescribeCreateCaseOptions(DescribeCreateCaseOptionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCreateCaseOptionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCreateCaseOptionsResponseUnmarshaller.Instance;
return Invoke<DescribeCreateCaseOptionsResponse>(request, options);
}
/// <summary>
/// Returns a list of CreateCaseOption types along with the corresponding supported hours
/// and language availability. You can specify the <code>language</code> <code>categoryCode</code>,
/// <code>issueType</code> and <code>serviceCode</code> used to retrieve the CreateCaseOptions.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCreateCaseOptions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeCreateCaseOptions service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCreateCaseOptions">REST API Reference for DescribeCreateCaseOptions Operation</seealso>
public virtual Task<DescribeCreateCaseOptionsResponse> DescribeCreateCaseOptionsAsync(DescribeCreateCaseOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeCreateCaseOptionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeCreateCaseOptionsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeCreateCaseOptionsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeServices
internal virtual DescribeServicesResponse DescribeServices()
{
return DescribeServices(new DescribeServicesRequest());
}
internal virtual DescribeServicesResponse DescribeServices(DescribeServicesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeServicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeServicesResponseUnmarshaller.Instance;
return Invoke<DescribeServicesResponse>(request, options);
}
/// <summary>
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your <a>CreateCase</a>
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that appear in the <b>Service</b>
/// and <b>Category</b> lists on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. The values in those fields don't necessarily match the service codes
/// and categories returned by the <code>DescribeServices</code> operation. Always use
/// the service codes and categories that the <code>DescribeServices</code> operation
/// returns, so that you have the most recent set of service and category codes.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
public virtual Task<DescribeServicesResponse> DescribeServicesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return DescribeServicesAsync(new DescribeServicesRequest(), cancellationToken);
}
/// <summary>
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your <a>CreateCase</a>
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that appear in the <b>Service</b>
/// and <b>Category</b> lists on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. The values in those fields don't necessarily match the service codes
/// and categories returned by the <code>DescribeServices</code> operation. Always use
/// the service codes and categories that the <code>DescribeServices</code> operation
/// returns, so that you have the most recent set of service and category codes.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeServices service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
public virtual Task<DescribeServicesResponse> DescribeServicesAsync(DescribeServicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeServicesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeServicesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeServicesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeSeverityLevels
internal virtual DescribeSeverityLevelsResponse DescribeSeverityLevels()
{
return DescribeSeverityLevels(new DescribeSeverityLevelsRequest());
}
internal virtual DescribeSeverityLevelsResponse DescribeSeverityLevels(DescribeSeverityLevelsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSeverityLevelsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSeverityLevelsResponseUnmarshaller.Instance;
return Invoke<DescribeSeverityLevelsResponse>(request, options);
}
/// <summary>
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the <a>CaseDetails</a> data type that you include
/// for a <a>CreateCase</a> request.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
public virtual Task<DescribeSeverityLevelsResponse> DescribeSeverityLevelsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
return DescribeSeverityLevelsAsync(new DescribeSeverityLevelsRequest(), cancellationToken);
}
/// <summary>
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the <a>CaseDetails</a> data type that you include
/// for a <a>CreateCase</a> request.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSeverityLevels service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
public virtual Task<DescribeSeverityLevelsResponse> DescribeSeverityLevelsAsync(DescribeSeverityLevelsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSeverityLevelsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSeverityLevelsResponseUnmarshaller.Instance;
return InvokeAsync<DescribeSeverityLevelsResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeSupportedLanguages
internal virtual DescribeSupportedLanguagesResponse DescribeSupportedLanguages(DescribeSupportedLanguagesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSupportedLanguagesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSupportedLanguagesResponseUnmarshaller.Instance;
return Invoke<DescribeSupportedLanguagesResponse>(request, options);
}
/// <summary>
/// Returns a list of supported languages for a specified <code>categoryCode</code>, <code>issueType</code>
/// and <code>serviceCode</code>. The returned supported languages will include a ISO
/// 639-1 code for the <code>language</code>, and the language display name.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSupportedLanguages service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeSupportedLanguages service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSupportedLanguages">REST API Reference for DescribeSupportedLanguages Operation</seealso>
public virtual Task<DescribeSupportedLanguagesResponse> DescribeSupportedLanguagesAsync(DescribeSupportedLanguagesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeSupportedLanguagesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeSupportedLanguagesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeSupportedLanguagesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeTrustedAdvisorCheckRefreshStatuses
internal virtual DescribeTrustedAdvisorCheckRefreshStatusesResponse DescribeTrustedAdvisorCheckRefreshStatuses(DescribeTrustedAdvisorCheckRefreshStatusesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckRefreshStatusesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckRefreshStatusesResponseUnmarshaller.Instance;
return Invoke<DescribeTrustedAdvisorCheckRefreshStatusesResponse>(request, options);
}
/// <summary>
/// Returns the refresh status of the Trusted Advisor checks that have the specified check
/// IDs. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a>
/// operation.
///
///
/// <para>
/// Some checks are refreshed automatically, and you can't return their refresh statuses
/// by using the <code>DescribeTrustedAdvisorCheckRefreshStatuses</code> operation. If
/// you call this operation for these checks, you might see an <code>InvalidParameterValue</code>
/// error.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckRefreshStatuses service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckRefreshStatuses service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses">REST API Reference for DescribeTrustedAdvisorCheckRefreshStatuses Operation</seealso>
public virtual Task<DescribeTrustedAdvisorCheckRefreshStatusesResponse> DescribeTrustedAdvisorCheckRefreshStatusesAsync(DescribeTrustedAdvisorCheckRefreshStatusesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckRefreshStatusesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckRefreshStatusesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeTrustedAdvisorCheckRefreshStatusesResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeTrustedAdvisorCheckResult
internal virtual DescribeTrustedAdvisorCheckResultResponse DescribeTrustedAdvisorCheckResult(DescribeTrustedAdvisorCheckResultRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckResultRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckResultResponseUnmarshaller.Instance;
return Invoke<DescribeTrustedAdvisorCheckResultResponse>(request, options);
}
/// <summary>
/// Returns the results of the Trusted Advisor check that has the specified check ID.
/// You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckResult</a> object, which contains these
/// three objects:
/// </para>
/// <ul> <li>
/// <para>
/// <a>TrustedAdvisorCategorySpecificSummary</a>
/// </para>
/// </li> <li>
/// <para>
/// <a>TrustedAdvisorResourceDetail</a>
/// </para>
/// </li> <li>
/// <para>
/// <a>TrustedAdvisorResourcesSummary</a>
/// </para>
/// </li> </ul>
/// <para>
/// In addition, the response contains these fields:
/// </para>
/// <ul> <li>
/// <para>
/// <b>status</b> - The alert status of the check can be <code>ok</code> (green), <code>warning</code>
/// (yellow), <code>error</code> (red), or <code>not_available</code>.
/// </para>
/// </li> <li>
/// <para>
/// <b>timestamp</b> - The time of the last refresh of the check.
/// </para>
/// </li> <li>
/// <para>
/// <b>checkId</b> - The unique identifier for the check.
/// </para>
/// </li> </ul> <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckResult service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckResult service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult">REST API Reference for DescribeTrustedAdvisorCheckResult Operation</seealso>
public virtual Task<DescribeTrustedAdvisorCheckResultResponse> DescribeTrustedAdvisorCheckResultAsync(DescribeTrustedAdvisorCheckResultRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckResultRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckResultResponseUnmarshaller.Instance;
return InvokeAsync<DescribeTrustedAdvisorCheckResultResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeTrustedAdvisorChecks
internal virtual DescribeTrustedAdvisorChecksResponse DescribeTrustedAdvisorChecks(DescribeTrustedAdvisorChecksRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorChecksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorChecksResponseUnmarshaller.Instance;
return Invoke<DescribeTrustedAdvisorChecksResponse>(request, options);
}
/// <summary>
/// Returns information about all available Trusted Advisor checks, including the name,
/// ID, category, description, and metadata. You must specify a language code.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckDescription</a> object for each check.
/// You must set the Amazon Web Services Region to us-east-1.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> <li>
/// <para>
/// The names and descriptions for Trusted Advisor checks are subject to change. We recommend
/// that you specify the check ID in your code to uniquely identify a check.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorChecks service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTrustedAdvisorChecks service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks">REST API Reference for DescribeTrustedAdvisorChecks Operation</seealso>
public virtual Task<DescribeTrustedAdvisorChecksResponse> DescribeTrustedAdvisorChecksAsync(DescribeTrustedAdvisorChecksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorChecksRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorChecksResponseUnmarshaller.Instance;
return InvokeAsync<DescribeTrustedAdvisorChecksResponse>(request, options, cancellationToken);
}
#endregion
#region DescribeTrustedAdvisorCheckSummaries
internal virtual DescribeTrustedAdvisorCheckSummariesResponse DescribeTrustedAdvisorCheckSummaries(DescribeTrustedAdvisorCheckSummariesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckSummariesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckSummariesResponseUnmarshaller.Instance;
return Invoke<DescribeTrustedAdvisorCheckSummariesResponse>(request, options);
}
/// <summary>
/// Returns the results for the Trusted Advisor check summaries for the check IDs that
/// you specified. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a>
/// operation.
///
///
/// <para>
/// The response contains an array of <a>TrustedAdvisorCheckSummary</a> objects.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckSummaries service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckSummaries service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries">REST API Reference for DescribeTrustedAdvisorCheckSummaries Operation</seealso>
public virtual Task<DescribeTrustedAdvisorCheckSummariesResponse> DescribeTrustedAdvisorCheckSummariesAsync(DescribeTrustedAdvisorCheckSummariesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeTrustedAdvisorCheckSummariesRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeTrustedAdvisorCheckSummariesResponseUnmarshaller.Instance;
return InvokeAsync<DescribeTrustedAdvisorCheckSummariesResponse>(request, options, cancellationToken);
}
#endregion
#region RefreshTrustedAdvisorCheck
internal virtual RefreshTrustedAdvisorCheckResponse RefreshTrustedAdvisorCheck(RefreshTrustedAdvisorCheckRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = RefreshTrustedAdvisorCheckRequestMarshaller.Instance;
options.ResponseUnmarshaller = RefreshTrustedAdvisorCheckResponseUnmarshaller.Instance;
return Invoke<RefreshTrustedAdvisorCheckResponse>(request, options);
}
/// <summary>
/// Refreshes the Trusted Advisor check that you specify using the check ID. You can get
/// the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation.
///
///
/// <para>
/// Some checks are refreshed automatically. If you call the <code>RefreshTrustedAdvisorCheck</code>
/// operation to refresh them, you might see the <code>InvalidParameterValue</code> error.
/// </para>
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckRefreshStatus</a> object.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshTrustedAdvisorCheck service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RefreshTrustedAdvisorCheck service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck">REST API Reference for RefreshTrustedAdvisorCheck Operation</seealso>
public virtual Task<RefreshTrustedAdvisorCheckResponse> RefreshTrustedAdvisorCheckAsync(RefreshTrustedAdvisorCheckRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = RefreshTrustedAdvisorCheckRequestMarshaller.Instance;
options.ResponseUnmarshaller = RefreshTrustedAdvisorCheckResponseUnmarshaller.Instance;
return InvokeAsync<RefreshTrustedAdvisorCheckResponse>(request, options, cancellationToken);
}
#endregion
#region ResolveCase
internal virtual ResolveCaseResponse ResolveCase(ResolveCaseRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ResolveCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResolveCaseResponseUnmarshaller.Instance;
return Invoke<ResolveCaseResponse>(request, options);
}
/// <summary>
/// Resolves a support case. This operation takes a <code>caseId</code> and returns the
/// initial and final state of the case.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ResolveCase service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ResolveCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase">REST API Reference for ResolveCase Operation</seealso>
public virtual Task<ResolveCaseResponse> ResolveCaseAsync(ResolveCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ResolveCaseRequestMarshaller.Instance;
options.ResponseUnmarshaller = ResolveCaseResponseUnmarshaller.Instance;
return InvokeAsync<ResolveCaseResponse>(request, options, cancellationToken);
}
#endregion
}
}
| 1,514 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 support-2013-04-15.normal.json service model.
*/
using System;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.AWSSupport.Model;
namespace Amazon.AWSSupport
{
/// <summary>
/// Interface for accessing AWSSupport
///
/// Amazon Web Services Support
/// <para>
/// The <i>Amazon Web Services Support API Reference</i> is intended for programmers who
/// need detailed information about the Amazon Web Services Support operations and data
/// types. You can use the API to manage your support cases programmatically. The Amazon
/// Web Services Support API uses HTTP methods that return results in JSON format.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// You can also use the Amazon Web Services Support API to access features for <a href="http://aws.amazon.com/premiumsupport/trustedadvisor/">Trusted
/// Advisor</a>. You can return a list of checks and their descriptions, get check results,
/// specify checks to refresh, and get the refresh status of checks.
/// </para>
///
/// <para>
/// You can manage your support cases with the following Amazon Web Services Support API
/// operations:
/// </para>
/// <ul> <li>
/// <para>
/// The <a>CreateCase</a>, <a>DescribeCases</a>, <a>DescribeAttachment</a>, and <a>ResolveCase</a>
/// operations create Amazon Web Services Support cases, retrieve information about cases,
/// and resolve cases.
/// </para>
/// </li> <li>
/// <para>
/// The <a>DescribeCommunications</a>, <a>AddCommunicationToCase</a>, and <a>AddAttachmentsToSet</a>
/// operations retrieve and add communications and attachments to Amazon Web Services
/// Support cases.
/// </para>
/// </li> <li>
/// <para>
/// The <a>DescribeServices</a> and <a>DescribeSeverityLevels</a> operations return Amazon
/// Web Service names, service codes, service categories, and problem severity levels.
/// You use these values when you call the <a>CreateCase</a> operation.
/// </para>
/// </li> </ul>
/// <para>
/// You can also use the Amazon Web Services Support API to call the Trusted Advisor operations.
/// For more information, see <a href="https://docs.aws.amazon.com/">Trusted Advisor</a>
/// in the <i>Amazon Web Services Support User Guide</i>.
/// </para>
///
/// <para>
/// For authentication of requests, Amazon Web Services Support uses <a href="https://docs.aws.amazon.com/general/latest/gr/signature-version-4.html">Signature
/// Version 4 Signing Process</a>.
/// </para>
///
/// <para>
/// For more information about this service and the endpoints to use, see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
public partial interface IAmazonAWSSupport : IAmazonService, IDisposable
{
#if AWS_ASYNC_ENUMERABLES_API
/// <summary>
/// Paginators for the service
/// </summary>
IAWSSupportPaginatorFactory Paginators { get; }
#endif
#region AddAttachmentsToSet
/// <summary>
/// Adds one or more attachments to an attachment set.
///
///
/// <para>
/// An attachment set is a temporary container for attachments that you add to a case
/// or case communication. The set is available for 1 hour after it's created. The <code>expiryTime</code>
/// returned in the response is when the set expires.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddAttachmentsToSet service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the AddAttachmentsToSet service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentLimitExceededException">
/// The limit for the number of attachment sets created in a short period of time has
/// been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetSizeLimitExceededException">
/// A limit for the size of an attachment set has been exceeded. The limits are three
/// attachments and 5 MB per attachment.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddAttachmentsToSet">REST API Reference for AddAttachmentsToSet Operation</seealso>
Task<AddAttachmentsToSetResponse> AddAttachmentsToSetAsync(AddAttachmentsToSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region AddCommunicationToCase
/// <summary>
/// Adds additional customer communication to an Amazon Web Services Support case. Use
/// the <code>caseId</code> parameter to identify the case to which to add communication.
/// You can list a set of email addresses to copy on the communication by using the <code>ccEmailAddresses</code>
/// parameter. The <code>communicationBody</code> value contains the text of the communication.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the AddCommunicationToCase service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the AddCommunicationToCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/AddCommunicationToCase">REST API Reference for AddCommunicationToCase Operation</seealso>
Task<AddCommunicationToCaseResponse> AddCommunicationToCaseAsync(AddCommunicationToCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region CreateCase
/// <summary>
/// Creates a case in the Amazon Web Services Support Center. This operation is similar
/// to how you create a case in the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.
///
///
/// <para>
/// The Amazon Web Services Support API doesn't support requesting service limit increases.
/// You can submit a service limit increase in the following ways:
/// </para>
/// <ul> <li>
/// <para>
/// Submit a request from the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page.
/// </para>
/// </li> <li>
/// <para>
/// Use the Service Quotas <a href="https://docs.aws.amazon.com/servicequotas/2019-06-24/apireference/API_RequestServiceQuotaIncrease.html">RequestServiceQuotaIncrease</a>
/// operation.
/// </para>
/// </li> </ul>
/// <para>
/// A successful <code>CreateCase</code> request returns an Amazon Web Services Support
/// case number. You can use the <a>DescribeCases</a> operation and specify the case number
/// to get existing Amazon Web Services Support cases. After you create a case, use the
/// <a>AddCommunicationToCase</a> operation to add additional communication or attachments
/// to an existing case.
/// </para>
///
/// <para>
/// The <code>caseId</code> is separate from the <code>displayId</code> that appears in
/// the <a href="https://console.aws.amazon.com/support">Amazon Web Services Support Center</a>.
/// Use the <a>DescribeCases</a> operation to get the <code>displayId</code>.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the CreateCase service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the CreateCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetExpiredException">
/// The expiration time of the attachment set has passed. The set expires 1 hour after
/// it is created.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentSetIdNotFoundException">
/// An attachment set with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.CaseCreationLimitExceededException">
/// The case creation limit for the account has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/CreateCase">REST API Reference for CreateCase Operation</seealso>
Task<CreateCaseResponse> CreateCaseAsync(CreateCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeAttachment
/// <summary>
/// Returns the attachment that has the specified ID. Attachments can include screenshots,
/// error logs, or other files that describe your issue. Attachment IDs are generated
/// by the case management system when you add an attachment to a case or case communication.
/// Attachment IDs are returned in the <a>AttachmentDetails</a> objects that are returned
/// by the <a>DescribeCommunications</a> operation.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeAttachment service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeAttachment service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.AttachmentIdNotFoundException">
/// An attachment with the specified ID could not be found.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.DescribeAttachmentLimitExceededException">
/// The limit for the number of <a>DescribeAttachment</a> requests in a short period of
/// time has been exceeded.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeAttachment">REST API Reference for DescribeAttachment Operation</seealso>
Task<DescribeAttachmentResponse> DescribeAttachmentAsync(DescribeAttachmentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeCases
/// <summary>
/// Returns a list of cases that you specify by passing one or more case IDs. You can
/// use the <code>afterTime</code> and <code>beforeTime</code> parameters to filter the
/// cases by date. You can set values for the <code>includeResolvedCases</code> and <code>includeCommunications</code>
/// parameters to specify how much information to return.
///
///
/// <para>
/// The response returns the following in JSON format:
/// </para>
/// <ul> <li>
/// <para>
/// One or more <a href="https://docs.aws.amazon.com/awssupport/latest/APIReference/API_CaseDetails.html">CaseDetails</a>
/// data types.
/// </para>
/// </li> <li>
/// <para>
/// One or more <code>nextToken</code> values, which specify where to paginate the returned
/// records represented by the <code>CaseDetails</code> objects.
/// </para>
/// </li> </ul>
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request might return an error.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCases service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeCases service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCases">REST API Reference for DescribeCases Operation</seealso>
Task<DescribeCasesResponse> DescribeCasesAsync(DescribeCasesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeCommunications
/// <summary>
/// Returns communications and attachments for one or more support cases. Use the <code>afterTime</code>
/// and <code>beforeTime</code> parameters to filter by date. You can use the <code>caseId</code>
/// parameter to restrict the results to a specific case.
///
///
/// <para>
/// Case data is available for 12 months after creation. If a case was created more than
/// 12 months ago, a request for data might cause an error.
/// </para>
///
/// <para>
/// You can use the <code>maxResults</code> and <code>nextToken</code> parameters to control
/// the pagination of the results. Set <code>maxResults</code> to the number of cases
/// that you want to display on each page, and use <code>nextToken</code> to specify the
/// resumption of pagination.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCommunications service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeCommunications service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCommunications">REST API Reference for DescribeCommunications Operation</seealso>
Task<DescribeCommunicationsResponse> DescribeCommunicationsAsync(DescribeCommunicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeCreateCaseOptions
/// <summary>
/// Returns a list of CreateCaseOption types along with the corresponding supported hours
/// and language availability. You can specify the <code>language</code> <code>categoryCode</code>,
/// <code>issueType</code> and <code>serviceCode</code> used to retrieve the CreateCaseOptions.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeCreateCaseOptions service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeCreateCaseOptions service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeCreateCaseOptions">REST API Reference for DescribeCreateCaseOptions Operation</seealso>
Task<DescribeCreateCaseOptionsResponse> DescribeCreateCaseOptionsAsync(DescribeCreateCaseOptionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeServices
/// <summary>
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your <a>CreateCase</a>
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that appear in the <b>Service</b>
/// and <b>Category</b> lists on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. The values in those fields don't necessarily match the service codes
/// and categories returned by the <code>DescribeServices</code> operation. Always use
/// the service codes and categories that the <code>DescribeServices</code> operation
/// returns, so that you have the most recent set of service and category codes.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
Task<DescribeServicesResponse> DescribeServicesAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Returns the current list of Amazon Web Services services and a list of service categories
/// for each service. You then use service names and categories in your <a>CreateCase</a>
/// requests. Each Amazon Web Services service has its own set of categories.
///
///
/// <para>
/// The service codes and category codes correspond to the values that appear in the <b>Service</b>
/// and <b>Category</b> lists on the Amazon Web Services Support Center <a href="https://console.aws.amazon.com/support/home#/case/create">Create
/// Case</a> page. The values in those fields don't necessarily match the service codes
/// and categories returned by the <code>DescribeServices</code> operation. Always use
/// the service codes and categories that the <code>DescribeServices</code> operation
/// returns, so that you have the most recent set of service and category codes.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeServices service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeServices service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeServices">REST API Reference for DescribeServices Operation</seealso>
Task<DescribeServicesResponse> DescribeServicesAsync(DescribeServicesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeSeverityLevels
/// <summary>
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the <a>CaseDetails</a> data type that you include
/// for a <a>CreateCase</a> request.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
Task<DescribeSeverityLevelsResponse> DescribeSeverityLevelsAsync(System.Threading.CancellationToken cancellationToken = default(CancellationToken));
/// <summary>
/// Returns the list of severity levels that you can assign to a support case. The severity
/// level for a case is also a field in the <a>CaseDetails</a> data type that you include
/// for a <a>CreateCase</a> request.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSeverityLevels service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeSeverityLevels service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSeverityLevels">REST API Reference for DescribeSeverityLevels Operation</seealso>
Task<DescribeSeverityLevelsResponse> DescribeSeverityLevelsAsync(DescribeSeverityLevelsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeSupportedLanguages
/// <summary>
/// Returns a list of supported languages for a specified <code>categoryCode</code>, <code>issueType</code>
/// and <code>serviceCode</code>. The returned supported languages will include a ISO
/// 639-1 code for the <code>language</code>, and the language display name.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeSupportedLanguages service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeSupportedLanguages service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeSupportedLanguages">REST API Reference for DescribeSupportedLanguages Operation</seealso>
Task<DescribeSupportedLanguagesResponse> DescribeSupportedLanguagesAsync(DescribeSupportedLanguagesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeTrustedAdvisorCheckRefreshStatuses
/// <summary>
/// Returns the refresh status of the Trusted Advisor checks that have the specified check
/// IDs. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a>
/// operation.
///
///
/// <para>
/// Some checks are refreshed automatically, and you can't return their refresh statuses
/// by using the <code>DescribeTrustedAdvisorCheckRefreshStatuses</code> operation. If
/// you call this operation for these checks, you might see an <code>InvalidParameterValue</code>
/// error.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckRefreshStatuses service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckRefreshStatuses service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckRefreshStatuses">REST API Reference for DescribeTrustedAdvisorCheckRefreshStatuses Operation</seealso>
Task<DescribeTrustedAdvisorCheckRefreshStatusesResponse> DescribeTrustedAdvisorCheckRefreshStatusesAsync(DescribeTrustedAdvisorCheckRefreshStatusesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeTrustedAdvisorCheckResult
/// <summary>
/// Returns the results of the Trusted Advisor check that has the specified check ID.
/// You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckResult</a> object, which contains these
/// three objects:
/// </para>
/// <ul> <li>
/// <para>
/// <a>TrustedAdvisorCategorySpecificSummary</a>
/// </para>
/// </li> <li>
/// <para>
/// <a>TrustedAdvisorResourceDetail</a>
/// </para>
/// </li> <li>
/// <para>
/// <a>TrustedAdvisorResourcesSummary</a>
/// </para>
/// </li> </ul>
/// <para>
/// In addition, the response contains these fields:
/// </para>
/// <ul> <li>
/// <para>
/// <b>status</b> - The alert status of the check can be <code>ok</code> (green), <code>warning</code>
/// (yellow), <code>error</code> (red), or <code>not_available</code>.
/// </para>
/// </li> <li>
/// <para>
/// <b>timestamp</b> - The time of the last refresh of the check.
/// </para>
/// </li> <li>
/// <para>
/// <b>checkId</b> - The unique identifier for the check.
/// </para>
/// </li> </ul> <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckResult service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckResult service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckResult">REST API Reference for DescribeTrustedAdvisorCheckResult Operation</seealso>
Task<DescribeTrustedAdvisorCheckResultResponse> DescribeTrustedAdvisorCheckResultAsync(DescribeTrustedAdvisorCheckResultRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeTrustedAdvisorChecks
/// <summary>
/// Returns information about all available Trusted Advisor checks, including the name,
/// ID, category, description, and metadata. You must specify a language code.
///
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckDescription</a> object for each check.
/// You must set the Amazon Web Services Region to us-east-1.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> <li>
/// <para>
/// The names and descriptions for Trusted Advisor checks are subject to change. We recommend
/// that you specify the check ID in your code to uniquely identify a check.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorChecks service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTrustedAdvisorChecks service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorChecks">REST API Reference for DescribeTrustedAdvisorChecks Operation</seealso>
Task<DescribeTrustedAdvisorChecksResponse> DescribeTrustedAdvisorChecksAsync(DescribeTrustedAdvisorChecksRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region DescribeTrustedAdvisorCheckSummaries
/// <summary>
/// Returns the results for the Trusted Advisor check summaries for the check IDs that
/// you specified. You can get the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a>
/// operation.
///
///
/// <para>
/// The response contains an array of <a>TrustedAdvisorCheckSummary</a> objects.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the DescribeTrustedAdvisorCheckSummaries service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the DescribeTrustedAdvisorCheckSummaries service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.ThrottlingException">
/// You have exceeded the maximum allowed TPS (Transactions Per Second) for the operations.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/DescribeTrustedAdvisorCheckSummaries">REST API Reference for DescribeTrustedAdvisorCheckSummaries Operation</seealso>
Task<DescribeTrustedAdvisorCheckSummariesResponse> DescribeTrustedAdvisorCheckSummariesAsync(DescribeTrustedAdvisorCheckSummariesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region RefreshTrustedAdvisorCheck
/// <summary>
/// Refreshes the Trusted Advisor check that you specify using the check ID. You can get
/// the check IDs by calling the <a>DescribeTrustedAdvisorChecks</a> operation.
///
///
/// <para>
/// Some checks are refreshed automatically. If you call the <code>RefreshTrustedAdvisorCheck</code>
/// operation to refresh them, you might see the <code>InvalidParameterValue</code> error.
/// </para>
///
/// <para>
/// The response contains a <a>TrustedAdvisorCheckRefreshStatus</a> object.
/// </para>
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// <para>
/// To call the Trusted Advisor operations in the Amazon Web Services Support API, you
/// must use the US East (N. Virginia) endpoint. Currently, the US West (Oregon) and Europe
/// (Ireland) endpoints don't support the Trusted Advisor operations. For more information,
/// see <a href="https://docs.aws.amazon.com/awssupport/latest/user/about-support-api.html#endpoint">About
/// the Amazon Web Services Support API</a> in the <i>Amazon Web Services Support User
/// Guide</i>.
/// </para>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the RefreshTrustedAdvisorCheck service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the RefreshTrustedAdvisorCheck service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/RefreshTrustedAdvisorCheck">REST API Reference for RefreshTrustedAdvisorCheck Operation</seealso>
Task<RefreshTrustedAdvisorCheckResponse> RefreshTrustedAdvisorCheckAsync(RefreshTrustedAdvisorCheckRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
#region ResolveCase
/// <summary>
/// Resolves a support case. This operation takes a <code>caseId</code> and returns the
/// initial and final state of the case.
///
/// <note> <ul> <li>
/// <para>
/// You must have a Business, Enterprise On-Ramp, or Enterprise Support plan to use the
/// Amazon Web Services Support API.
/// </para>
/// </li> <li>
/// <para>
/// If you call the Amazon Web Services Support API from an account that doesn't have
/// a Business, Enterprise On-Ramp, or Enterprise Support plan, the <code>SubscriptionRequiredException</code>
/// error message appears. For information about changing your support plan, see <a href="http://aws.amazon.com/premiumsupport/">Amazon
/// Web Services Support</a>.
/// </para>
/// </li> </ul> </note>
/// </summary>
/// <param name="request">Container for the necessary parameters to execute the ResolveCase service method.</param>
/// <param name="cancellationToken">
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
/// </param>
///
/// <returns>The response from the ResolveCase service method, as returned by AWSSupport.</returns>
/// <exception cref="Amazon.AWSSupport.Model.CaseIdNotFoundException">
/// The requested <code>caseId</code> couldn't be located.
/// </exception>
/// <exception cref="Amazon.AWSSupport.Model.InternalServerErrorException">
/// An internal server error occurred.
/// </exception>
/// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/support-2013-04-15/ResolveCase">REST API Reference for ResolveCase Operation</seealso>
Task<ResolveCaseResponse> ResolveCaseAsync(ResolveCaseRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken));
#endregion
}
}
| 1,019 |
aws-sdk-net
|
aws
|
C#
|
using System;
using System.Reflection;
using System.Runtime.InteropServices;
using System.Runtime.CompilerServices;
// General Information about an assembly is controlled through the following
// set of attributes. Change these attribute values to modify the information
// associated with an assembly.
[assembly: AssemblyTitle("AWSSDK.AWSSupport")]
#if BCL35
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (3.5) - AWS Support. The AWS Support API provides methods for creating and managing AWS Support cases and for retrieving the results of AWS Trusted Advisor checks.")]
#elif BCL45
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (4.5) - AWS Support. The AWS Support API provides methods for creating and managing AWS Support cases and for retrieving the results of AWS Trusted Advisor checks.")]
#elif NETSTANDARD20
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (NetStandard 2.0) - AWS Support. The AWS Support API provides methods for creating and managing AWS Support cases and for retrieving the results of AWS Trusted Advisor checks.")]
#elif NETCOREAPP3_1
[assembly: AssemblyDescription("The Amazon Web Services SDK for .NET (.NET Core 3.1) - AWS Support. The AWS Support API provides methods for creating and managing AWS Support cases and for retrieving the results of AWS Trusted Advisor checks.")]
#else
#error Unknown platform constant - unable to set correct AssemblyDescription
#endif
[assembly: AssemblyConfiguration("")]
[assembly: AssemblyProduct("Amazon Web Services SDK for .NET")]
[assembly: AssemblyCompany("Amazon.com, Inc")]
[assembly: AssemblyCopyright("Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.")]
[assembly: AssemblyTrademark("")]
[assembly: AssemblyCulture("")]
// Setting ComVisible to false makes the types in this assembly not visible
// to COM components. If you need to access a type in this assembly from
// COM, set the ComVisible attribute to true on that type.
[assembly: ComVisible(false)]
// Version information for an assembly consists of the following four values:
//
// Major Version
// Minor Version
// Build Number
// Revision
//
// You can specify all the values or you can default the Build and Revision Numbers
// by using the '*' as shown below:
// [assembly: AssemblyVersion("1.0.*")]
[assembly: AssemblyVersion("3.3")]
[assembly: AssemblyFileVersion("3.7.102.19")]
[assembly: System.CLSCompliant(true)]
#if BCL
[assembly: System.Security.AllowPartiallyTrustedCallers]
#endif
| 51 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.normal.json service model.
*/
using System;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Util.Internal;
using Amazon.Backup.Internal;
namespace Amazon.Backup
{
/// <summary>
/// Configuration for accessing Amazon Backup service
/// </summary>
[AWSSignerType("v4")]
public partial class AmazonBackupConfig : ClientConfig
{
private static readonly string UserAgentString =
InternalSDKUtils.BuildUserAgentString("3.7.104.15");
private string _userAgent = UserAgentString;
/// <summary>
/// Default constructor
/// </summary>
public AmazonBackupConfig()
: base(new Amazon.Runtime.Internal.DefaultConfigurationProvider(AmazonBackupDefaultConfiguration.GetAllConfigurations()))
{
this.AuthenticationServiceName = "backup";
this.EndpointProvider = new AmazonBackupEndpointProvider();
}
/// <summary>
/// The constant used to lookup in the region hash the endpoint.
/// </summary>
public override string RegionEndpointServiceName
{
get
{
return "backup";
}
}
/// <summary>
/// Gets the ServiceVersion property.
/// </summary>
public override string ServiceVersion
{
get
{
return "2018-11-15";
}
}
/// <summary>
/// Gets the value of UserAgent property.
/// </summary>
public override string UserAgent
{
get
{
return _userAgent;
}
}
}
}
| 83 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using Amazon.Runtime;
namespace Amazon.Backup
{
/// <summary>
/// Configuration for accessing Amazon Backup service
/// </summary>
public static class AmazonBackupDefaultConfiguration
{
/// <summary>
/// Collection of all <see cref="DefaultConfiguration"/>s supported by
/// Backup
/// </summary>
public static ReadOnlyCollection<IDefaultConfiguration> GetAllConfigurations()
{
return new ReadOnlyCollection<IDefaultConfiguration>(new List<IDefaultConfiguration>
{
Standard,
InRegion,
CrossRegion,
Mobile,
Auto,
Legacy
});
}
/// <summary>
/// <p>The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration Standard {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Standard,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:03.1
ConnectTimeout = TimeSpan.FromMilliseconds(3100L),
// 0:00:03.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration InRegion {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.InRegion,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:01.1
ConnectTimeout = TimeSpan.FromMilliseconds(1100L),
// 0:00:01.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration CrossRegion {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.CrossRegion,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:03.1
ConnectTimeout = TimeSpan.FromMilliseconds(3100L),
// 0:00:03.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(3100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications</p><p>Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK</p>
/// </summary>
public static IDefaultConfiguration Mobile {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Mobile,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:30
ConnectTimeout = TimeSpan.FromMilliseconds(30000L),
// 0:00:30
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(30000L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.</p><p>Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query <a href="https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/ec2-instance-metadata.html">EC2 Instance Metadata service</a>, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application</p>
/// </summary>
public static IDefaultConfiguration Auto {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Auto,
RetryMode = RequestRetryMode.Standard,
StsRegionalEndpoints = StsRegionalEndpointsValue.Regional,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Regional,
// 0:00:01.1
ConnectTimeout = TimeSpan.FromMilliseconds(1100L),
// 0:00:01.1
TlsNegotiationTimeout = TimeSpan.FromMilliseconds(1100L),
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
/// <summary>
/// <p>The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode</p>
/// </summary>
public static IDefaultConfiguration Legacy {get;} = new DefaultConfiguration
{
Name = DefaultConfigurationMode.Legacy,
RetryMode = RequestRetryMode.Legacy,
StsRegionalEndpoints = StsRegionalEndpointsValue.Legacy,
S3UsEast1RegionalEndpoint = S3UsEast1RegionalEndpointValue.Legacy,
ConnectTimeout = null,
TlsNegotiationTimeout = null,
TimeToFirstByteTimeout = null,
HttpRequestTimeout = null
};
}
}
| 146 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.normal.json service model.
*/
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
namespace Amazon.Backup.Endpoints
{
/// <summary>
/// Contains parameters used for resolving Backup endpoints
/// Parameters can be sourced from client config and service operations
/// Used by internal BackupEndpointProvider and BackupEndpointResolver
/// Can be used by custom EndpointProvider, see ClientConfig.EndpointProvider
/// </summary>
public class BackupEndpointParameters : EndpointParameters
{
/// <summary>
/// BackupEndpointParameters constructor
/// </summary>
public BackupEndpointParameters()
{
UseDualStack = false;
UseFIPS = false;
}
/// <summary>
/// Region parameter
/// </summary>
public string Region
{
get { return (string)this["Region"]; }
set { this["Region"] = value; }
}
/// <summary>
/// UseDualStack parameter
/// </summary>
public bool? UseDualStack
{
get { return (bool?)this["UseDualStack"]; }
set { this["UseDualStack"] = value; }
}
/// <summary>
/// UseFIPS parameter
/// </summary>
public bool? UseFIPS
{
get { return (bool?)this["UseFIPS"]; }
set { this["UseFIPS"] = value; }
}
/// <summary>
/// Endpoint parameter
/// </summary>
public string Endpoint
{
get { return (string)this["Endpoint"]; }
set { this["Endpoint"] = value; }
}
}
}
| 78 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using System.Net;
using System.Text;
using Amazon.Runtime;
namespace Amazon.Backup
{
///<summary>
/// Common exception for the Backup service.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AmazonBackupException : AmazonServiceException
{
/// <summary>
/// Construct instance of AmazonBackupException
/// </summary>
/// <param name="message"></param>
public AmazonBackupException(string message)
: base(message)
{
}
/// <summary>
/// Construct instance of AmazonBackupException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AmazonBackupException(string message, Exception innerException)
: base(message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonBackupException
/// </summary>
/// <param name="innerException"></param>
public AmazonBackupException(Exception innerException)
: base(innerException.Message, innerException)
{
}
/// <summary>
/// Construct instance of AmazonBackupException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonBackupException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode)
{
}
/// <summary>
/// Construct instance of AmazonBackupException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AmazonBackupException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode)
{
}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the AmazonBackupException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected AmazonBackupException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
}
#endif
}
}
| 105 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.normal.json service model.
*/
using System;
using Amazon.Runtime;
namespace Amazon.Backup
{
/// <summary>
/// Constants used for properties of type BackupJobState.
/// </summary>
public class BackupJobState : ConstantClass
{
/// <summary>
/// Constant ABORTED for BackupJobState
/// </summary>
public static readonly BackupJobState ABORTED = new BackupJobState("ABORTED");
/// <summary>
/// Constant ABORTING for BackupJobState
/// </summary>
public static readonly BackupJobState ABORTING = new BackupJobState("ABORTING");
/// <summary>
/// Constant COMPLETED for BackupJobState
/// </summary>
public static readonly BackupJobState COMPLETED = new BackupJobState("COMPLETED");
/// <summary>
/// Constant CREATED for BackupJobState
/// </summary>
public static readonly BackupJobState CREATED = new BackupJobState("CREATED");
/// <summary>
/// Constant EXPIRED for BackupJobState
/// </summary>
public static readonly BackupJobState EXPIRED = new BackupJobState("EXPIRED");
/// <summary>
/// Constant FAILED for BackupJobState
/// </summary>
public static readonly BackupJobState FAILED = new BackupJobState("FAILED");
/// <summary>
/// Constant PARTIAL for BackupJobState
/// </summary>
public static readonly BackupJobState PARTIAL = new BackupJobState("PARTIAL");
/// <summary>
/// Constant PENDING for BackupJobState
/// </summary>
public static readonly BackupJobState PENDING = new BackupJobState("PENDING");
/// <summary>
/// Constant RUNNING for BackupJobState
/// </summary>
public static readonly BackupJobState RUNNING = new BackupJobState("RUNNING");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public BackupJobState(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static BackupJobState FindValue(string value)
{
return FindValue<BackupJobState>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator BackupJobState(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type BackupVaultEvent.
/// </summary>
public class BackupVaultEvent : ConstantClass
{
/// <summary>
/// Constant BACKUP_JOB_COMPLETED for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent BACKUP_JOB_COMPLETED = new BackupVaultEvent("BACKUP_JOB_COMPLETED");
/// <summary>
/// Constant BACKUP_JOB_EXPIRED for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent BACKUP_JOB_EXPIRED = new BackupVaultEvent("BACKUP_JOB_EXPIRED");
/// <summary>
/// Constant BACKUP_JOB_FAILED for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent BACKUP_JOB_FAILED = new BackupVaultEvent("BACKUP_JOB_FAILED");
/// <summary>
/// Constant BACKUP_JOB_STARTED for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent BACKUP_JOB_STARTED = new BackupVaultEvent("BACKUP_JOB_STARTED");
/// <summary>
/// Constant BACKUP_JOB_SUCCESSFUL for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent BACKUP_JOB_SUCCESSFUL = new BackupVaultEvent("BACKUP_JOB_SUCCESSFUL");
/// <summary>
/// Constant BACKUP_PLAN_CREATED for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent BACKUP_PLAN_CREATED = new BackupVaultEvent("BACKUP_PLAN_CREATED");
/// <summary>
/// Constant BACKUP_PLAN_MODIFIED for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent BACKUP_PLAN_MODIFIED = new BackupVaultEvent("BACKUP_PLAN_MODIFIED");
/// <summary>
/// Constant COPY_JOB_FAILED for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent COPY_JOB_FAILED = new BackupVaultEvent("COPY_JOB_FAILED");
/// <summary>
/// Constant COPY_JOB_STARTED for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent COPY_JOB_STARTED = new BackupVaultEvent("COPY_JOB_STARTED");
/// <summary>
/// Constant COPY_JOB_SUCCESSFUL for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent COPY_JOB_SUCCESSFUL = new BackupVaultEvent("COPY_JOB_SUCCESSFUL");
/// <summary>
/// Constant RECOVERY_POINT_MODIFIED for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent RECOVERY_POINT_MODIFIED = new BackupVaultEvent("RECOVERY_POINT_MODIFIED");
/// <summary>
/// Constant RESTORE_JOB_COMPLETED for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent RESTORE_JOB_COMPLETED = new BackupVaultEvent("RESTORE_JOB_COMPLETED");
/// <summary>
/// Constant RESTORE_JOB_FAILED for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent RESTORE_JOB_FAILED = new BackupVaultEvent("RESTORE_JOB_FAILED");
/// <summary>
/// Constant RESTORE_JOB_STARTED for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent RESTORE_JOB_STARTED = new BackupVaultEvent("RESTORE_JOB_STARTED");
/// <summary>
/// Constant RESTORE_JOB_SUCCESSFUL for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent RESTORE_JOB_SUCCESSFUL = new BackupVaultEvent("RESTORE_JOB_SUCCESSFUL");
/// <summary>
/// Constant S3_BACKUP_OBJECT_FAILED for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent S3_BACKUP_OBJECT_FAILED = new BackupVaultEvent("S3_BACKUP_OBJECT_FAILED");
/// <summary>
/// Constant S3_RESTORE_OBJECT_FAILED for BackupVaultEvent
/// </summary>
public static readonly BackupVaultEvent S3_RESTORE_OBJECT_FAILED = new BackupVaultEvent("S3_RESTORE_OBJECT_FAILED");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public BackupVaultEvent(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static BackupVaultEvent FindValue(string value)
{
return FindValue<BackupVaultEvent>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator BackupVaultEvent(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type ConditionType.
/// </summary>
public class ConditionType : ConstantClass
{
/// <summary>
/// Constant STRINGEQUALS for ConditionType
/// </summary>
public static readonly ConditionType STRINGEQUALS = new ConditionType("STRINGEQUALS");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public ConditionType(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static ConditionType FindValue(string value)
{
return FindValue<ConditionType>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator ConditionType(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type CopyJobState.
/// </summary>
public class CopyJobState : ConstantClass
{
/// <summary>
/// Constant COMPLETED for CopyJobState
/// </summary>
public static readonly CopyJobState COMPLETED = new CopyJobState("COMPLETED");
/// <summary>
/// Constant CREATED for CopyJobState
/// </summary>
public static readonly CopyJobState CREATED = new CopyJobState("CREATED");
/// <summary>
/// Constant FAILED for CopyJobState
/// </summary>
public static readonly CopyJobState FAILED = new CopyJobState("FAILED");
/// <summary>
/// Constant PARTIAL for CopyJobState
/// </summary>
public static readonly CopyJobState PARTIAL = new CopyJobState("PARTIAL");
/// <summary>
/// Constant RUNNING for CopyJobState
/// </summary>
public static readonly CopyJobState RUNNING = new CopyJobState("RUNNING");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public CopyJobState(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static CopyJobState FindValue(string value)
{
return FindValue<CopyJobState>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator CopyJobState(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type LegalHoldStatus.
/// </summary>
public class LegalHoldStatus : ConstantClass
{
/// <summary>
/// Constant ACTIVE for LegalHoldStatus
/// </summary>
public static readonly LegalHoldStatus ACTIVE = new LegalHoldStatus("ACTIVE");
/// <summary>
/// Constant CANCELED for LegalHoldStatus
/// </summary>
public static readonly LegalHoldStatus CANCELED = new LegalHoldStatus("CANCELED");
/// <summary>
/// Constant CANCELING for LegalHoldStatus
/// </summary>
public static readonly LegalHoldStatus CANCELING = new LegalHoldStatus("CANCELING");
/// <summary>
/// Constant CREATING for LegalHoldStatus
/// </summary>
public static readonly LegalHoldStatus CREATING = new LegalHoldStatus("CREATING");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public LegalHoldStatus(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static LegalHoldStatus FindValue(string value)
{
return FindValue<LegalHoldStatus>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator LegalHoldStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type RecoveryPointStatus.
/// </summary>
public class RecoveryPointStatus : ConstantClass
{
/// <summary>
/// Constant COMPLETED for RecoveryPointStatus
/// </summary>
public static readonly RecoveryPointStatus COMPLETED = new RecoveryPointStatus("COMPLETED");
/// <summary>
/// Constant DELETING for RecoveryPointStatus
/// </summary>
public static readonly RecoveryPointStatus DELETING = new RecoveryPointStatus("DELETING");
/// <summary>
/// Constant EXPIRED for RecoveryPointStatus
/// </summary>
public static readonly RecoveryPointStatus EXPIRED = new RecoveryPointStatus("EXPIRED");
/// <summary>
/// Constant PARTIAL for RecoveryPointStatus
/// </summary>
public static readonly RecoveryPointStatus PARTIAL = new RecoveryPointStatus("PARTIAL");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public RecoveryPointStatus(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static RecoveryPointStatus FindValue(string value)
{
return FindValue<RecoveryPointStatus>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator RecoveryPointStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type RestoreJobStatus.
/// </summary>
public class RestoreJobStatus : ConstantClass
{
/// <summary>
/// Constant ABORTED for RestoreJobStatus
/// </summary>
public static readonly RestoreJobStatus ABORTED = new RestoreJobStatus("ABORTED");
/// <summary>
/// Constant COMPLETED for RestoreJobStatus
/// </summary>
public static readonly RestoreJobStatus COMPLETED = new RestoreJobStatus("COMPLETED");
/// <summary>
/// Constant FAILED for RestoreJobStatus
/// </summary>
public static readonly RestoreJobStatus FAILED = new RestoreJobStatus("FAILED");
/// <summary>
/// Constant PENDING for RestoreJobStatus
/// </summary>
public static readonly RestoreJobStatus PENDING = new RestoreJobStatus("PENDING");
/// <summary>
/// Constant RUNNING for RestoreJobStatus
/// </summary>
public static readonly RestoreJobStatus RUNNING = new RestoreJobStatus("RUNNING");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public RestoreJobStatus(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static RestoreJobStatus FindValue(string value)
{
return FindValue<RestoreJobStatus>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator RestoreJobStatus(string value)
{
return FindValue(value);
}
}
/// <summary>
/// Constants used for properties of type StorageClass.
/// </summary>
public class StorageClass : ConstantClass
{
/// <summary>
/// Constant COLD for StorageClass
/// </summary>
public static readonly StorageClass COLD = new StorageClass("COLD");
/// <summary>
/// Constant DELETED for StorageClass
/// </summary>
public static readonly StorageClass DELETED = new StorageClass("DELETED");
/// <summary>
/// Constant WARM for StorageClass
/// </summary>
public static readonly StorageClass WARM = new StorageClass("WARM");
/// <summary>
/// This constant constructor does not need to be called if the constant
/// you are attempting to use is already defined as a static instance of
/// this class.
/// This constructor should be used to construct constants that are not
/// defined as statics, for instance if attempting to use a feature that is
/// newer than the current version of the SDK.
/// </summary>
public StorageClass(string value)
: base(value)
{
}
/// <summary>
/// Finds the constant for the unique value.
/// </summary>
/// <param name="value">The unique value for the constant</param>
/// <returns>The constant for the unique value</returns>
public static StorageClass FindValue(string value)
{
return FindValue<StorageClass>(value);
}
/// <summary>
/// Utility method to convert strings to the constant class.
/// </summary>
/// <param name="value">The string value to convert to the constant class.</param>
/// <returns></returns>
public static implicit operator StorageClass(string value)
{
return FindValue(value);
}
}
}
| 554 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.normal.json service model.
*/
using System;
using System.Collections.Generic;
using Amazon.Runtime;
using Amazon.Runtime.Endpoints;
using static Amazon.Runtime.Internal.Endpoints.StandardLibrary.Fn;
namespace Amazon.Backup.Internal
{
/// <summary>
/// Amazon Backup endpoint provider.
/// Resolves endpoint for given set of BackupEndpointParameters.
/// Can throw AmazonClientException if endpoint resolution is unsuccessful.
/// </summary>
public class AmazonBackupEndpointProvider : IEndpointProvider
{
/// <summary>
/// Resolve endpoint for BackupEndpointParameters
/// </summary>
public Endpoint ResolveEndpoint(EndpointParameters parameters)
{
if (parameters == null)
throw new ArgumentNullException("parameters");
if (parameters["UseDualStack"] == null)
throw new AmazonClientException("UseDualStack parameter must be set for endpoint resolution");
if (parameters["UseFIPS"] == null)
throw new AmazonClientException("UseFIPS parameter must be set for endpoint resolution");
var refs = new Dictionary<string, object>()
{
["Region"] = parameters["Region"],
["UseDualStack"] = parameters["UseDualStack"],
["UseFIPS"] = parameters["UseFIPS"],
["Endpoint"] = parameters["Endpoint"],
};
if (IsSet(refs["Endpoint"]))
{
if (Equals(refs["UseFIPS"], true))
{
throw new AmazonClientException("Invalid Configuration: FIPS and custom endpoint are not supported");
}
if (Equals(refs["UseDualStack"], true))
{
throw new AmazonClientException("Invalid Configuration: Dualstack and custom endpoint are not supported");
}
return new Endpoint((string)refs["Endpoint"], InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
if (IsSet(refs["Region"]))
{
if ((refs["PartitionResult"] = Partition((string)refs["Region"])) != null)
{
if (Equals(refs["UseFIPS"], true) && Equals(refs["UseDualStack"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")) && Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack")))
{
return new Endpoint(Interpolate(@"https://backup-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("FIPS and DualStack are enabled, but this partition does not support one or both");
}
if (Equals(refs["UseFIPS"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsFIPS")))
{
return new Endpoint(Interpolate(@"https://backup-fips.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("FIPS is enabled but this partition does not support FIPS");
}
if (Equals(refs["UseDualStack"], true))
{
if (Equals(true, GetAttr(refs["PartitionResult"], "supportsDualStack")))
{
return new Endpoint(Interpolate(@"https://backup.{Region}.{PartitionResult#dualStackDnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
throw new AmazonClientException("DualStack is enabled but this partition does not support DualStack");
}
return new Endpoint(Interpolate(@"https://backup.{Region}.{PartitionResult#dnsSuffix}", refs), InterpolateJson(@"", refs), InterpolateJson(@"", refs));
}
}
throw new AmazonClientException("Invalid Configuration: Missing Region");
throw new AmazonClientException("Cannot resolve endpoint");
}
}
}
| 103 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.normal.json service model.
*/
using System;
using Amazon.Backup.Model;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Endpoints;
using Amazon.Util;
using Amazon.Backup.Endpoints;
#pragma warning disable 1591
namespace Amazon.Backup.Internal
{
/// <summary>
/// Amazon Backup endpoint resolver.
/// Custom PipelineHandler responsible for resolving endpoint and setting authentication parameters for Backup service requests.
/// Collects values for BackupEndpointParameters and then tries to resolve endpoint by calling
/// ResolveEndpoint method on GlobalEndpoints.Provider if present, otherwise uses BackupEndpointProvider.
/// Responsible for setting authentication and http headers provided by resolved endpoint.
/// </summary>
public class AmazonBackupEndpointResolver : BaseEndpointResolver
{
protected override void ServiceSpecificHandler(IExecutionContext executionContext, EndpointParameters parameters)
{
InjectHostPrefix(executionContext.RequestContext);
}
protected override EndpointParameters MapEndpointsParameters(IRequestContext requestContext)
{
var config = (AmazonBackupConfig)requestContext.ClientConfig;
var result = new BackupEndpointParameters();
result.Region = config.RegionEndpoint?.SystemName;
result.UseDualStack = config.UseDualstackEndpoint;
result.UseFIPS = config.UseFIPSEndpoint;
result.Endpoint = config.ServiceURL;
// The region needs to be determined from the ServiceURL if not set.
var regionEndpoint = config.RegionEndpoint;
if (regionEndpoint == null && !string.IsNullOrEmpty(config.ServiceURL))
{
var regionName = AWSSDKUtils.DetermineRegion(config.ServiceURL);
result.Region = RegionEndpoint.GetBySystemName(regionName).SystemName;
}
// To support legacy endpoint overridding rules in the endpoints.json
if (result.Region == "us-east-1-regional")
{
result.Region = "us-east-1";
}
// Use AlternateEndpoint region override if set
if (requestContext.Request.AlternateEndpoint != null)
{
result.Region = requestContext.Request.AlternateEndpoint.SystemName;
}
// Assign staticContextParams and contextParam per operation
return result;
}
}
}
| 83 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.normal.json service model.
*/
using Amazon.Runtime.Internal;
namespace Amazon.Backup.Internal
{
/// <summary>
/// Service metadata for Amazon Backup service
/// </summary>
public partial class AmazonBackupMetadata : IServiceMetadata
{
/// <summary>
/// Gets the value of the Service Id.
/// </summary>
public string ServiceId
{
get
{
return "Backup";
}
}
/// <summary>
/// Gets the dictionary that gives mapping of renamed operations
/// </summary>
public System.Collections.Generic.IDictionary<string, string> OperationNameMapping
{
get
{
return new System.Collections.Generic.Dictionary<string, string>(0)
{
};
}
}
}
}
| 55 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// A list of backup options for each resource type.
/// </summary>
public partial class AdvancedBackupSetting
{
private Dictionary<string, string> _backupOptions = new Dictionary<string, string>();
private string _resourceType;
/// <summary>
/// Gets and sets the property BackupOptions.
/// <para>
/// Specifies the backup option for a selected resource. This option is only available
/// for Windows VSS backup jobs.
/// </para>
///
/// <para>
/// Valid values:
/// </para>
///
/// <para>
/// Set to <code>"WindowsVSS":"enabled"</code> to enable the <code>WindowsVSS</code> backup
/// option and create a Windows VSS backup.
/// </para>
///
/// <para>
/// Set to <code>"WindowsVSS":"disabled"</code> to create a regular backup. The <code>WindowsVSS</code>
/// option is not enabled by default.
/// </para>
///
/// <para>
/// If you specify an invalid option, you get an <code>InvalidParameterValueException</code>
/// exception.
/// </para>
///
/// <para>
/// For more information about Windows VSS backups, see <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/windows-backups.html">Creating
/// a VSS-Enabled Windows Backup</a>.
/// </para>
/// </summary>
public Dictionary<string, string> BackupOptions
{
get { return this._backupOptions; }
set { this._backupOptions = value; }
}
// Check to see if BackupOptions property is set
internal bool IsSetBackupOptions()
{
return this._backupOptions != null && this._backupOptions.Count > 0;
}
/// <summary>
/// Gets and sets the property ResourceType.
/// <para>
/// Specifies an object containing resource type and backup options. The only supported
/// resource type is Amazon EC2 instances with Windows Volume Shadow Copy Service (VSS).
/// For a CloudFormation example, see the <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/integrate-cloudformation-with-aws-backup.html">sample
/// CloudFormation template to enable Windows VSS</a> in the <i>Backup User Guide</i>.
/// </para>
///
/// <para>
/// Valid values: <code>EC2</code>.
/// </para>
/// </summary>
public string ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
}
}
| 108 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// The required resource already exists.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class AlreadyExistsException : AmazonBackupException
{
private string _arn;
private string _code;
private string _context;
private string _creatorRequestId;
private string _type;
/// <summary>
/// Constructs a new AlreadyExistsException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public AlreadyExistsException(string message)
: base(message) {}
/// <summary>
/// Construct instance of AlreadyExistsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public AlreadyExistsException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of AlreadyExistsException
/// </summary>
/// <param name="innerException"></param>
public AlreadyExistsException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of AlreadyExistsException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AlreadyExistsException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of AlreadyExistsException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public AlreadyExistsException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the AlreadyExistsException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected AlreadyExistsException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.Arn = (string)info.GetValue("Arn", typeof(string));
this.Code = (string)info.GetValue("Code", typeof(string));
this.Context = (string)info.GetValue("Context", typeof(string));
this.CreatorRequestId = (string)info.GetValue("CreatorRequestId", typeof(string));
this.Type = (string)info.GetValue("Type", typeof(string));
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("Arn", this.Arn);
info.AddValue("Code", this.Code);
info.AddValue("Context", this.Context);
info.AddValue("CreatorRequestId", this.CreatorRequestId);
info.AddValue("Type", this.Type);
}
#endif
/// <summary>
/// Gets and sets the property Arn.
/// </summary>
public string Arn
{
get { return this._arn; }
set { this._arn = value; }
}
// Check to see if Arn property is set
internal bool IsSetArn()
{
return this._arn != null;
}
/// <summary>
/// Gets and sets the property Code.
/// </summary>
public string Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
/// <summary>
/// Gets and sets the property Context.
/// </summary>
public string Context
{
get { return this._context; }
set { this._context = value; }
}
// Check to see if Context property is set
internal bool IsSetContext()
{
return this._context != null;
}
/// <summary>
/// Gets and sets the property CreatorRequestId.
/// </summary>
public string CreatorRequestId
{
get { return this._creatorRequestId; }
set { this._creatorRequestId = value; }
}
// Check to see if CreatorRequestId property is set
internal bool IsSetCreatorRequestId()
{
return this._creatorRequestId != null;
}
/// <summary>
/// Gets and sets the property Type.
/// </summary>
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}
| 214 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.normal.json service model.
*/
using Amazon.Runtime;
namespace Amazon.Backup
{
/// <summary>
/// Base class for Backup operation requests.
/// </summary>
public partial class AmazonBackupRequest : AmazonWebServiceRequest
{
}
}
| 30 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Contains detailed information about a backup job.
/// </summary>
public partial class BackupJob
{
private string _accountId;
private string _backupJobId;
private Dictionary<string, string> _backupOptions = new Dictionary<string, string>();
private long? _backupSizeInBytes;
private string _backupType;
private string _backupVaultArn;
private string _backupVaultName;
private long? _bytesTransferred;
private DateTime? _completionDate;
private RecoveryPointCreator _createdBy;
private DateTime? _creationDate;
private DateTime? _expectedCompletionDate;
private string _iamRoleArn;
private bool? _isParent;
private string _parentJobId;
private string _percentDone;
private string _recoveryPointArn;
private string _resourceArn;
private string _resourceName;
private string _resourceType;
private DateTime? _startBy;
private BackupJobState _state;
private string _statusMessage;
/// <summary>
/// Gets and sets the property AccountId.
/// <para>
/// The account ID that owns the backup job.
/// </para>
/// </summary>
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;
}
/// <summary>
/// Gets and sets the property BackupJobId.
/// <para>
/// Uniquely identifies a request to Backup to back up a resource.
/// </para>
/// </summary>
public string BackupJobId
{
get { return this._backupJobId; }
set { this._backupJobId = value; }
}
// Check to see if BackupJobId property is set
internal bool IsSetBackupJobId()
{
return this._backupJobId != null;
}
/// <summary>
/// Gets and sets the property BackupOptions.
/// <para>
/// Specifies the backup option for a selected resource. This option is only available
/// for Windows Volume Shadow Copy Service (VSS) backup jobs.
/// </para>
///
/// <para>
/// Valid values: Set to <code>"WindowsVSS":"enabled"</code> to enable the <code>WindowsVSS</code>
/// backup option and create a Windows VSS backup. Set to <code>"WindowsVSS":"disabled"</code>
/// to create a regular backup. If you specify an invalid option, you get an <code>InvalidParameterValueException</code>
/// exception.
/// </para>
/// </summary>
public Dictionary<string, string> BackupOptions
{
get { return this._backupOptions; }
set { this._backupOptions = value; }
}
// Check to see if BackupOptions property is set
internal bool IsSetBackupOptions()
{
return this._backupOptions != null && this._backupOptions.Count > 0;
}
/// <summary>
/// Gets and sets the property BackupSizeInBytes.
/// <para>
/// The size, in bytes, of a backup.
/// </para>
/// </summary>
public long BackupSizeInBytes
{
get { return this._backupSizeInBytes.GetValueOrDefault(); }
set { this._backupSizeInBytes = value; }
}
// Check to see if BackupSizeInBytes property is set
internal bool IsSetBackupSizeInBytes()
{
return this._backupSizeInBytes.HasValue;
}
/// <summary>
/// Gets and sets the property BackupType.
/// <para>
/// Represents the type of backup for a backup job.
/// </para>
/// </summary>
public string BackupType
{
get { return this._backupType; }
set { this._backupType = value; }
}
// Check to see if BackupType property is set
internal bool IsSetBackupType()
{
return this._backupType != null;
}
/// <summary>
/// Gets and sets the property BackupVaultArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
/// <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.
/// </para>
/// </summary>
public string BackupVaultArn
{
get { return this._backupVaultArn; }
set { this._backupVaultArn = value; }
}
// Check to see if BackupVaultArn property is set
internal bool IsSetBackupVaultArn()
{
return this._backupVaultArn != null;
}
/// <summary>
/// Gets and sets the property BackupVaultName.
/// <para>
/// The name of a logical container where backups are stored. Backup vaults are identified
/// by names that are unique to the account used to create them and the Amazon Web Services
/// Region where they are created. They consist of lowercase letters, numbers, and hyphens.
/// </para>
/// </summary>
public string BackupVaultName
{
get { return this._backupVaultName; }
set { this._backupVaultName = value; }
}
// Check to see if BackupVaultName property is set
internal bool IsSetBackupVaultName()
{
return this._backupVaultName != null;
}
/// <summary>
/// Gets and sets the property BytesTransferred.
/// <para>
/// The size in bytes transferred to a backup vault at the time that the job status was
/// queried.
/// </para>
/// </summary>
public long BytesTransferred
{
get { return this._bytesTransferred.GetValueOrDefault(); }
set { this._bytesTransferred = value; }
}
// Check to see if BytesTransferred property is set
internal bool IsSetBytesTransferred()
{
return this._bytesTransferred.HasValue;
}
/// <summary>
/// Gets and sets the property CompletionDate.
/// <para>
/// The date and time a job to create a backup job is completed, in Unix format and Coordinated
/// Universal Time (UTC). The value of <code>CompletionDate</code> is accurate to milliseconds.
/// For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CompletionDate
{
get { return this._completionDate.GetValueOrDefault(); }
set { this._completionDate = value; }
}
// Check to see if CompletionDate property is set
internal bool IsSetCompletionDate()
{
return this._completionDate.HasValue;
}
/// <summary>
/// Gets and sets the property CreatedBy.
/// <para>
/// Contains identifying information about the creation of a backup job, including the
/// <code>BackupPlanArn</code>, <code>BackupPlanId</code>, <code>BackupPlanVersion</code>,
/// and <code>BackupRuleId</code> of the backup plan used to create it.
/// </para>
/// </summary>
public RecoveryPointCreator CreatedBy
{
get { return this._createdBy; }
set { this._createdBy = value; }
}
// Check to see if CreatedBy property is set
internal bool IsSetCreatedBy()
{
return this._createdBy != null;
}
/// <summary>
/// Gets and sets the property CreationDate.
/// <para>
/// The date and time a backup job is created, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For
/// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
/// <summary>
/// Gets and sets the property ExpectedCompletionDate.
/// <para>
/// The date and time a job to back up resources is expected to be completed, in Unix
/// format and Coordinated Universal Time (UTC). The value of <code>ExpectedCompletionDate</code>
/// is accurate to milliseconds. For example, the value 1516925490.087 represents Friday,
/// January 26, 2018 12:11:30.087 AM.
/// </para>
/// </summary>
public DateTime ExpectedCompletionDate
{
get { return this._expectedCompletionDate.GetValueOrDefault(); }
set { this._expectedCompletionDate = value; }
}
// Check to see if ExpectedCompletionDate property is set
internal bool IsSetExpectedCompletionDate()
{
return this._expectedCompletionDate.HasValue;
}
/// <summary>
/// Gets and sets the property IamRoleArn.
/// <para>
/// Specifies the IAM role ARN used to create the target recovery point. IAM roles other
/// than the default role must include either <code>AWSBackup</code> or <code>AwsBackup</code>
/// in the role name. For example, <code>arn:aws:iam::123456789012:role/AWSBackupRDSAccess</code>.
/// Role names without those strings lack permissions to perform backup jobs.
/// </para>
/// </summary>
public string IamRoleArn
{
get { return this._iamRoleArn; }
set { this._iamRoleArn = value; }
}
// Check to see if IamRoleArn property is set
internal bool IsSetIamRoleArn()
{
return this._iamRoleArn != null;
}
/// <summary>
/// Gets and sets the property IsParent.
/// <para>
/// This is a boolean value indicating this is a parent (composite) backup job.
/// </para>
/// </summary>
public bool IsParent
{
get { return this._isParent.GetValueOrDefault(); }
set { this._isParent = value; }
}
// Check to see if IsParent property is set
internal bool IsSetIsParent()
{
return this._isParent.HasValue;
}
/// <summary>
/// Gets and sets the property ParentJobId.
/// <para>
/// This uniquely identifies a request to Backup to back up a resource. The return will
/// be the parent (composite) job ID.
/// </para>
/// </summary>
public string ParentJobId
{
get { return this._parentJobId; }
set { this._parentJobId = value; }
}
// Check to see if ParentJobId property is set
internal bool IsSetParentJobId()
{
return this._parentJobId != null;
}
/// <summary>
/// Gets and sets the property PercentDone.
/// <para>
/// Contains an estimated percentage complete of a job at the time the job status was
/// queried.
/// </para>
/// </summary>
public string PercentDone
{
get { return this._percentDone; }
set { this._percentDone = value; }
}
// Check to see if PercentDone property is set
internal bool IsSetPercentDone()
{
return this._percentDone != null;
}
/// <summary>
/// Gets and sets the property RecoveryPointArn.
/// <para>
/// An ARN that uniquely identifies a recovery point; for example, <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.
/// </para>
/// </summary>
public string RecoveryPointArn
{
get { return this._recoveryPointArn; }
set { this._recoveryPointArn = value; }
}
// Check to see if RecoveryPointArn property is set
internal bool IsSetRecoveryPointArn()
{
return this._recoveryPointArn != null;
}
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// An ARN that uniquely identifies a resource. The format of the ARN depends on the resource
/// type.
/// </para>
/// </summary>
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
/// <summary>
/// Gets and sets the property ResourceName.
/// <para>
/// This is the non-unique name of the resource that belongs to the specified backup.
/// </para>
/// </summary>
public string ResourceName
{
get { return this._resourceName; }
set { this._resourceName = value; }
}
// Check to see if ResourceName property is set
internal bool IsSetResourceName()
{
return this._resourceName != null;
}
/// <summary>
/// Gets and sets the property ResourceType.
/// <para>
/// The type of Amazon Web Services resource to be backed up; for example, an Amazon Elastic
/// Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS)
/// database. For Windows Volume Shadow Copy Service (VSS) backups, the only supported
/// resource type is Amazon EC2.
/// </para>
/// </summary>
public string ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
/// <summary>
/// Gets and sets the property StartBy.
/// <para>
/// Specifies the time in Unix format and Coordinated Universal Time (UTC) when a backup
/// job must be started before it is canceled. The value is calculated by adding the start
/// window to the scheduled time. So if the scheduled time were 6:00 PM and the start
/// window is 2 hours, the <code>StartBy</code> time would be 8:00 PM on the date specified.
/// The value of <code>StartBy</code> is accurate to milliseconds. For example, the value
/// 1516925490.087 represents Friday, January 26, 2018 12:11:30.087 AM.
/// </para>
/// </summary>
public DateTime StartBy
{
get { return this._startBy.GetValueOrDefault(); }
set { this._startBy = value; }
}
// Check to see if StartBy property is set
internal bool IsSetStartBy()
{
return this._startBy.HasValue;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// The current state of a resource recovery point.
/// </para>
/// </summary>
public BackupJobState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
/// <summary>
/// Gets and sets the property StatusMessage.
/// <para>
/// A detailed message explaining the status of the job to back up a resource.
/// </para>
/// </summary>
public string StatusMessage
{
get { return this._statusMessage; }
set { this._statusMessage = value; }
}
// Check to see if StatusMessage property is set
internal bool IsSetStatusMessage()
{
return this._statusMessage != null;
}
}
}
| 512 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Contains an optional backup plan display name and an array of <code>BackupRule</code>
/// objects, each of which specifies a backup rule. Each rule in a backup plan is a separate
/// scheduled task and can back up a different selection of Amazon Web Services resources.
/// </summary>
public partial class BackupPlan
{
private List<AdvancedBackupSetting> _advancedBackupSettings = new List<AdvancedBackupSetting>();
private string _backupPlanName;
private List<BackupRule> _rules = new List<BackupRule>();
/// <summary>
/// Gets and sets the property AdvancedBackupSettings.
/// <para>
/// Contains a list of <code>BackupOptions</code> for each resource type.
/// </para>
/// </summary>
public List<AdvancedBackupSetting> AdvancedBackupSettings
{
get { return this._advancedBackupSettings; }
set { this._advancedBackupSettings = value; }
}
// Check to see if AdvancedBackupSettings property is set
internal bool IsSetAdvancedBackupSettings()
{
return this._advancedBackupSettings != null && this._advancedBackupSettings.Count > 0;
}
/// <summary>
/// Gets and sets the property BackupPlanName.
/// <para>
/// The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string BackupPlanName
{
get { return this._backupPlanName; }
set { this._backupPlanName = value; }
}
// Check to see if BackupPlanName property is set
internal bool IsSetBackupPlanName()
{
return this._backupPlanName != null;
}
/// <summary>
/// Gets and sets the property Rules.
/// <para>
/// An array of <code>BackupRule</code> objects, each of which specifies a scheduled task
/// that is used to back up a selection of resources.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<BackupRule> Rules
{
get { return this._rules; }
set { this._rules = value; }
}
// Check to see if Rules property is set
internal bool IsSetRules()
{
return this._rules != null && this._rules.Count > 0;
}
}
}
| 100 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Contains an optional backup plan display name and an array of <code>BackupRule</code>
/// objects, each of which specifies a backup rule. Each rule in a backup plan is a separate
/// scheduled task.
/// </summary>
public partial class BackupPlanInput
{
private List<AdvancedBackupSetting> _advancedBackupSettings = new List<AdvancedBackupSetting>();
private string _backupPlanName;
private List<BackupRuleInput> _rules = new List<BackupRuleInput>();
/// <summary>
/// Gets and sets the property AdvancedBackupSettings.
/// <para>
/// Specifies a list of <code>BackupOptions</code> for each resource type. These settings
/// are only available for Windows Volume Shadow Copy Service (VSS) backup jobs.
/// </para>
/// </summary>
public List<AdvancedBackupSetting> AdvancedBackupSettings
{
get { return this._advancedBackupSettings; }
set { this._advancedBackupSettings = value; }
}
// Check to see if AdvancedBackupSettings property is set
internal bool IsSetAdvancedBackupSettings()
{
return this._advancedBackupSettings != null && this._advancedBackupSettings.Count > 0;
}
/// <summary>
/// Gets and sets the property BackupPlanName.
/// <para>
/// The display name of a backup plan. Must contain 1 to 50 alphanumeric or '-_.' characters.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string BackupPlanName
{
get { return this._backupPlanName; }
set { this._backupPlanName = value; }
}
// Check to see if BackupPlanName property is set
internal bool IsSetBackupPlanName()
{
return this._backupPlanName != null;
}
/// <summary>
/// Gets and sets the property Rules.
/// <para>
/// An array of <code>BackupRule</code> objects, each of which specifies a scheduled task
/// that is used to back up a selection of resources.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<BackupRuleInput> Rules
{
get { return this._rules; }
set { this._rules = value; }
}
// Check to see if Rules property is set
internal bool IsSetRules()
{
return this._rules != null && this._rules.Count > 0;
}
}
}
| 101 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Contains metadata about a backup plan.
/// </summary>
public partial class BackupPlansListMember
{
private List<AdvancedBackupSetting> _advancedBackupSettings = new List<AdvancedBackupSetting>();
private string _backupPlanArn;
private string _backupPlanId;
private string _backupPlanName;
private DateTime? _creationDate;
private string _creatorRequestId;
private DateTime? _deletionDate;
private DateTime? _lastExecutionDate;
private string _versionId;
/// <summary>
/// Gets and sets the property AdvancedBackupSettings.
/// <para>
/// Contains a list of <code>BackupOptions</code> for a resource type.
/// </para>
/// </summary>
public List<AdvancedBackupSetting> AdvancedBackupSettings
{
get { return this._advancedBackupSettings; }
set { this._advancedBackupSettings = value; }
}
// Check to see if AdvancedBackupSettings property is set
internal bool IsSetAdvancedBackupSettings()
{
return this._advancedBackupSettings != null && this._advancedBackupSettings.Count > 0;
}
/// <summary>
/// Gets and sets the property BackupPlanArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example,
/// <code>arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50</code>.
/// </para>
/// </summary>
public string BackupPlanArn
{
get { return this._backupPlanArn; }
set { this._backupPlanArn = value; }
}
// Check to see if BackupPlanArn property is set
internal bool IsSetBackupPlanArn()
{
return this._backupPlanArn != null;
}
/// <summary>
/// Gets and sets the property BackupPlanId.
/// <para>
/// Uniquely identifies a backup plan.
/// </para>
/// </summary>
public string BackupPlanId
{
get { return this._backupPlanId; }
set { this._backupPlanId = value; }
}
// Check to see if BackupPlanId property is set
internal bool IsSetBackupPlanId()
{
return this._backupPlanId != null;
}
/// <summary>
/// Gets and sets the property BackupPlanName.
/// <para>
/// The display name of a saved backup plan.
/// </para>
/// </summary>
public string BackupPlanName
{
get { return this._backupPlanName; }
set { this._backupPlanName = value; }
}
// Check to see if BackupPlanName property is set
internal bool IsSetBackupPlanName()
{
return this._backupPlanName != null;
}
/// <summary>
/// Gets and sets the property CreationDate.
/// <para>
/// The date and time a resource backup plan is created, in Unix format and Coordinated
/// Universal Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds.
/// For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
/// <summary>
/// Gets and sets the property CreatorRequestId.
/// <para>
/// A unique string that identifies the request and allows failed requests to be retried
/// without the risk of running the operation twice. This parameter is optional.
/// </para>
///
/// <para>
/// If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
/// </para>
/// </summary>
public string CreatorRequestId
{
get { return this._creatorRequestId; }
set { this._creatorRequestId = value; }
}
// Check to see if CreatorRequestId property is set
internal bool IsSetCreatorRequestId()
{
return this._creatorRequestId != null;
}
/// <summary>
/// Gets and sets the property DeletionDate.
/// <para>
/// The date and time a backup plan is deleted, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>DeletionDate</code> is accurate to milliseconds. For
/// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime DeletionDate
{
get { return this._deletionDate.GetValueOrDefault(); }
set { this._deletionDate = value; }
}
// Check to see if DeletionDate property is set
internal bool IsSetDeletionDate()
{
return this._deletionDate.HasValue;
}
/// <summary>
/// Gets and sets the property LastExecutionDate.
/// <para>
/// The last time a job to back up resources was run with this rule. A date and time,
/// in Unix format and Coordinated Universal Time (UTC). The value of <code>LastExecutionDate</code>
/// is accurate to milliseconds. For example, the value 1516925490.087 represents Friday,
/// January 26, 2018 12:11:30.087 AM.
/// </para>
/// </summary>
public DateTime LastExecutionDate
{
get { return this._lastExecutionDate.GetValueOrDefault(); }
set { this._lastExecutionDate = value; }
}
// Check to see if LastExecutionDate property is set
internal bool IsSetLastExecutionDate()
{
return this._lastExecutionDate.HasValue;
}
/// <summary>
/// Gets and sets the property VersionId.
/// <para>
/// Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024
/// bytes long. Version IDs cannot be edited.
/// </para>
/// </summary>
public string VersionId
{
get { return this._versionId; }
set { this._versionId = value; }
}
// Check to see if VersionId property is set
internal bool IsSetVersionId()
{
return this._versionId != null;
}
}
}
| 225 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// An object specifying metadata associated with a backup plan template.
/// </summary>
public partial class BackupPlanTemplatesListMember
{
private string _backupPlanTemplateId;
private string _backupPlanTemplateName;
/// <summary>
/// Gets and sets the property BackupPlanTemplateId.
/// <para>
/// Uniquely identifies a stored backup plan template.
/// </para>
/// </summary>
public string BackupPlanTemplateId
{
get { return this._backupPlanTemplateId; }
set { this._backupPlanTemplateId = value; }
}
// Check to see if BackupPlanTemplateId property is set
internal bool IsSetBackupPlanTemplateId()
{
return this._backupPlanTemplateId != null;
}
/// <summary>
/// Gets and sets the property BackupPlanTemplateName.
/// <para>
/// The optional display name of a backup plan template.
/// </para>
/// </summary>
public string BackupPlanTemplateName
{
get { return this._backupPlanTemplateName; }
set { this._backupPlanTemplateName = value; }
}
// Check to see if BackupPlanTemplateName property is set
internal bool IsSetBackupPlanTemplateName()
{
return this._backupPlanTemplateName != null;
}
}
}
| 76 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Used to specify a set of resources to a backup plan.
///
///
/// <para>
/// Specifying your desired <code>Conditions</code>, <code>ListOfTags</code>, <code>NotResources</code>,
/// and/or <code>Resources</code> is recommended. If none of these are specified, Backup
/// will attempt to select all supported and opted-in storage resources, which could have
/// unintended cost implications.
/// </para>
/// </summary>
public partial class BackupSelection
{
private Conditions _conditions;
private string _iamRoleArn;
private List<Condition> _listOfTags = new List<Condition>();
private List<string> _notResources = new List<string>();
private List<string> _resources = new List<string>();
private string _selectionName;
/// <summary>
/// Gets and sets the property Conditions.
/// <para>
/// A list of conditions that you define to assign resources to your backup plans using
/// tags. For example, <code>"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo",
/// "ConditionValue": "true" },</code>. Condition operators are case sensitive.
/// </para>
///
/// <para>
/// <code>Conditions</code> differs from <code>ListOfTags</code> as follows:
/// </para>
/// <ul> <li>
/// <para>
/// When you specify more than one condition, you only assign the resources that match
/// ALL conditions (using AND logic).
/// </para>
/// </li> <li>
/// <para>
/// <code>Conditions</code> supports <code>StringEquals</code>, <code>StringLike</code>,
/// <code>StringNotEquals</code>, and <code>StringNotLike</code>. <code>ListOfTags</code>
/// only supports <code>StringEquals</code>.
/// </para>
/// </li> </ul>
/// </summary>
public Conditions Conditions
{
get { return this._conditions; }
set { this._conditions = value; }
}
// Check to see if Conditions property is set
internal bool IsSetConditions()
{
return this._conditions != null;
}
/// <summary>
/// Gets and sets the property IamRoleArn.
/// <para>
/// The ARN of the IAM role that Backup uses to authenticate when backing up the target
/// resource; for example, <code>arn:aws:iam::123456789012:role/S3Access</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string IamRoleArn
{
get { return this._iamRoleArn; }
set { this._iamRoleArn = value; }
}
// Check to see if IamRoleArn property is set
internal bool IsSetIamRoleArn()
{
return this._iamRoleArn != null;
}
/// <summary>
/// Gets and sets the property ListOfTags.
/// <para>
/// A list of conditions that you define to assign resources to your backup plans using
/// tags. For example, <code>"StringEquals": { "ConditionKey": "aws:ResourceTag/CreatedByCryo",
/// "ConditionValue": "true" },</code>. Condition operators are case sensitive.
/// </para>
///
/// <para>
/// <code>ListOfTags</code> differs from <code>Conditions</code> as follows:
/// </para>
/// <ul> <li>
/// <para>
/// When you specify more than one condition, you assign all resources that match AT LEAST
/// ONE condition (using OR logic).
/// </para>
/// </li> <li>
/// <para>
/// <code>ListOfTags</code> only supports <code>StringEquals</code>. <code>Conditions</code>
/// supports <code>StringEquals</code>, <code>StringLike</code>, <code>StringNotEquals</code>,
/// and <code>StringNotLike</code>.
/// </para>
/// </li> </ul>
/// </summary>
public List<Condition> ListOfTags
{
get { return this._listOfTags; }
set { this._listOfTags = value; }
}
// Check to see if ListOfTags property is set
internal bool IsSetListOfTags()
{
return this._listOfTags != null && this._listOfTags.Count > 0;
}
/// <summary>
/// Gets and sets the property NotResources.
/// <para>
/// A list of Amazon Resource Names (ARNs) to exclude from a backup plan. The maximum
/// number of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
/// </para>
///
/// <para>
/// If you need to exclude many resources from a backup plan, consider a different resource
/// selection strategy, such as assigning only one or a few resource types or refining
/// your resource selection using tags.
/// </para>
/// </summary>
public List<string> NotResources
{
get { return this._notResources; }
set { this._notResources = value; }
}
// Check to see if NotResources property is set
internal bool IsSetNotResources()
{
return this._notResources != null && this._notResources.Count > 0;
}
/// <summary>
/// Gets and sets the property Resources.
/// <para>
/// A list of Amazon Resource Names (ARNs) to assign to a backup plan. The maximum number
/// of ARNs is 500 without wildcards, or 30 ARNs with wildcards.
/// </para>
///
/// <para>
/// If you need to assign many resources to a backup plan, consider a different resource
/// selection strategy, such as assigning all resources of a resource type or refining
/// your resource selection using tags.
/// </para>
/// </summary>
public List<string> Resources
{
get { return this._resources; }
set { this._resources = value; }
}
// Check to see if Resources property is set
internal bool IsSetResources()
{
return this._resources != null && this._resources.Count > 0;
}
/// <summary>
/// Gets and sets the property SelectionName.
/// <para>
/// The display name of a resource selection document. Must contain 1 to 50 alphanumeric
/// or '-_.' characters.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string SelectionName
{
get { return this._selectionName; }
set { this._selectionName = value; }
}
// Check to see if SelectionName property is set
internal bool IsSetSelectionName()
{
return this._selectionName != null;
}
}
}
| 214 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Contains metadata about a <code>BackupSelection</code> object.
/// </summary>
public partial class BackupSelectionsListMember
{
private string _backupPlanId;
private DateTime? _creationDate;
private string _creatorRequestId;
private string _iamRoleArn;
private string _selectionId;
private string _selectionName;
/// <summary>
/// Gets and sets the property BackupPlanId.
/// <para>
/// Uniquely identifies a backup plan.
/// </para>
/// </summary>
public string BackupPlanId
{
get { return this._backupPlanId; }
set { this._backupPlanId = value; }
}
// Check to see if BackupPlanId property is set
internal bool IsSetBackupPlanId()
{
return this._backupPlanId != null;
}
/// <summary>
/// Gets and sets the property CreationDate.
/// <para>
/// The date and time a backup plan is created, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For
/// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
/// <summary>
/// Gets and sets the property CreatorRequestId.
/// <para>
/// A unique string that identifies the request and allows failed requests to be retried
/// without the risk of running the operation twice. This parameter is optional.
/// </para>
///
/// <para>
/// If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
/// </para>
/// </summary>
public string CreatorRequestId
{
get { return this._creatorRequestId; }
set { this._creatorRequestId = value; }
}
// Check to see if CreatorRequestId property is set
internal bool IsSetCreatorRequestId()
{
return this._creatorRequestId != null;
}
/// <summary>
/// Gets and sets the property IamRoleArn.
/// <para>
/// Specifies the IAM role Amazon Resource Name (ARN) to create the target recovery point;
/// for example, <code>arn:aws:iam::123456789012:role/S3Access</code>.
/// </para>
/// </summary>
public string IamRoleArn
{
get { return this._iamRoleArn; }
set { this._iamRoleArn = value; }
}
// Check to see if IamRoleArn property is set
internal bool IsSetIamRoleArn()
{
return this._iamRoleArn != null;
}
/// <summary>
/// Gets and sets the property SelectionId.
/// <para>
/// Uniquely identifies a request to assign a set of resources to a backup plan.
/// </para>
/// </summary>
public string SelectionId
{
get { return this._selectionId; }
set { this._selectionId = value; }
}
// Check to see if SelectionId property is set
internal bool IsSetSelectionId()
{
return this._selectionId != null;
}
/// <summary>
/// Gets and sets the property SelectionName.
/// <para>
/// The display name of a resource selection document.
/// </para>
/// </summary>
public string SelectionName
{
get { return this._selectionName; }
set { this._selectionName = value; }
}
// Check to see if SelectionName property is set
internal bool IsSetSelectionName()
{
return this._selectionName != null;
}
}
}
| 161 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Contains metadata about a backup vault.
/// </summary>
public partial class BackupVaultListMember
{
private string _backupVaultArn;
private string _backupVaultName;
private DateTime? _creationDate;
private string _creatorRequestId;
private string _encryptionKeyArn;
private DateTime? _lockDate;
private bool? _locked;
private long? _maxRetentionDays;
private long? _minRetentionDays;
private long? _numberOfRecoveryPoints;
/// <summary>
/// Gets and sets the property BackupVaultArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
/// <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.
/// </para>
/// </summary>
public string BackupVaultArn
{
get { return this._backupVaultArn; }
set { this._backupVaultArn = value; }
}
// Check to see if BackupVaultArn property is set
internal bool IsSetBackupVaultArn()
{
return this._backupVaultArn != null;
}
/// <summary>
/// Gets and sets the property BackupVaultName.
/// <para>
/// The name of a logical container where backups are stored. Backup vaults are identified
/// by names that are unique to the account used to create them and the Amazon Web Services
/// Region where they are created. They consist of lowercase letters, numbers, and hyphens.
/// </para>
/// </summary>
public string BackupVaultName
{
get { return this._backupVaultName; }
set { this._backupVaultName = value; }
}
// Check to see if BackupVaultName property is set
internal bool IsSetBackupVaultName()
{
return this._backupVaultName != null;
}
/// <summary>
/// Gets and sets the property CreationDate.
/// <para>
/// The date and time a resource backup is created, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For
/// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
/// <summary>
/// Gets and sets the property CreatorRequestId.
/// <para>
/// A unique string that identifies the request and allows failed requests to be retried
/// without the risk of running the operation twice. This parameter is optional.
/// </para>
///
/// <para>
/// If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
/// </para>
/// </summary>
public string CreatorRequestId
{
get { return this._creatorRequestId; }
set { this._creatorRequestId = value; }
}
// Check to see if CreatorRequestId property is set
internal bool IsSetCreatorRequestId()
{
return this._creatorRequestId != null;
}
/// <summary>
/// Gets and sets the property EncryptionKeyArn.
/// <para>
/// A server-side encryption key you can specify to encrypt your backups from services
/// that support full Backup management; for example, <code>arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>.
/// If you specify a key, you must specify its ARN, not its alias. If you do not specify
/// a key, Backup creates a KMS key for you by default.
/// </para>
///
/// <para>
/// To learn which Backup services support full Backup management and how Backup handles
/// encryption for backups from services that do not yet support full Backup, see <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/encryption.html">
/// Encryption for backups in Backup</a>
/// </para>
/// </summary>
public string EncryptionKeyArn
{
get { return this._encryptionKeyArn; }
set { this._encryptionKeyArn = value; }
}
// Check to see if EncryptionKeyArn property is set
internal bool IsSetEncryptionKeyArn()
{
return this._encryptionKeyArn != null;
}
/// <summary>
/// Gets and sets the property LockDate.
/// <para>
/// The date and time when Backup Vault Lock configuration becomes immutable, meaning
/// it cannot be changed or deleted.
/// </para>
///
/// <para>
/// If you applied Vault Lock to your vault without specifying a lock date, you can change
/// your Vault Lock settings, or delete Vault Lock from the vault entirely, at any time.
/// </para>
///
/// <para>
/// This value is in Unix format, Coordinated Universal Time (UTC), and accurate to milliseconds.
/// For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime LockDate
{
get { return this._lockDate.GetValueOrDefault(); }
set { this._lockDate = value; }
}
// Check to see if LockDate property is set
internal bool IsSetLockDate()
{
return this._lockDate.HasValue;
}
/// <summary>
/// Gets and sets the property Locked.
/// <para>
/// A Boolean value that indicates whether Backup Vault Lock applies to the selected backup
/// vault. If <code>true</code>, Vault Lock prevents delete and update operations on the
/// recovery points in the selected vault.
/// </para>
/// </summary>
public bool Locked
{
get { return this._locked.GetValueOrDefault(); }
set { this._locked = value; }
}
// Check to see if Locked property is set
internal bool IsSetLocked()
{
return this._locked.HasValue;
}
/// <summary>
/// Gets and sets the property MaxRetentionDays.
/// <para>
/// The Backup Vault Lock setting that specifies the maximum retention period that the
/// vault retains its recovery points. If this parameter is not specified, Vault Lock
/// does not enforce a maximum retention period on the recovery points in the vault (allowing
/// indefinite storage).
/// </para>
///
/// <para>
/// If specified, any backup or copy job to the vault must have a lifecycle policy with
/// a retention period equal to or shorter than the maximum retention period. If the job's
/// retention period is longer than that maximum retention period, then the vault fails
/// the backup or copy job, and you should either modify your lifecycle settings or use
/// a different vault. Recovery points already stored in the vault prior to Vault Lock
/// are not affected.
/// </para>
/// </summary>
public long MaxRetentionDays
{
get { return this._maxRetentionDays.GetValueOrDefault(); }
set { this._maxRetentionDays = value; }
}
// Check to see if MaxRetentionDays property is set
internal bool IsSetMaxRetentionDays()
{
return this._maxRetentionDays.HasValue;
}
/// <summary>
/// Gets and sets the property MinRetentionDays.
/// <para>
/// The Backup Vault Lock setting that specifies the minimum retention period that the
/// vault retains its recovery points. If this parameter is not specified, Vault Lock
/// does not enforce a minimum retention period.
/// </para>
///
/// <para>
/// If specified, any backup or copy job to the vault must have a lifecycle policy with
/// a retention period equal to or longer than the minimum retention period. If the job's
/// retention period is shorter than that minimum retention period, then the vault fails
/// the backup or copy job, and you should either modify your lifecycle settings or use
/// a different vault. Recovery points already stored in the vault prior to Vault Lock
/// are not affected.
/// </para>
/// </summary>
public long MinRetentionDays
{
get { return this._minRetentionDays.GetValueOrDefault(); }
set { this._minRetentionDays = value; }
}
// Check to see if MinRetentionDays property is set
internal bool IsSetMinRetentionDays()
{
return this._minRetentionDays.HasValue;
}
/// <summary>
/// Gets and sets the property NumberOfRecoveryPoints.
/// <para>
/// The number of recovery points that are stored in a backup vault.
/// </para>
/// </summary>
public long NumberOfRecoveryPoints
{
get { return this._numberOfRecoveryPoints.GetValueOrDefault(); }
set { this._numberOfRecoveryPoints = value; }
}
// Check to see if NumberOfRecoveryPoints property is set
internal bool IsSetNumberOfRecoveryPoints()
{
return this._numberOfRecoveryPoints.HasValue;
}
}
}
| 285 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Container for the parameters to the CancelLegalHold operation.
/// This action removes the specified legal hold on a recovery point. This action can
/// only be performed by a user with sufficient permissions.
/// </summary>
public partial class CancelLegalHoldRequest : AmazonBackupRequest
{
private string _cancelDescription;
private string _legalHoldId;
private long? _retainRecordInDays;
/// <summary>
/// Gets and sets the property CancelDescription.
/// <para>
/// String describing the reason for removing the legal hold.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string CancelDescription
{
get { return this._cancelDescription; }
set { this._cancelDescription = value; }
}
// Check to see if CancelDescription property is set
internal bool IsSetCancelDescription()
{
return this._cancelDescription != null;
}
/// <summary>
/// Gets and sets the property LegalHoldId.
/// <para>
/// Legal hold ID required to remove the specified legal hold on a recovery point.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string LegalHoldId
{
get { return this._legalHoldId; }
set { this._legalHoldId = value; }
}
// Check to see if LegalHoldId property is set
internal bool IsSetLegalHoldId()
{
return this._legalHoldId != null;
}
/// <summary>
/// Gets and sets the property RetainRecordInDays.
/// <para>
/// The integer amount in days specifying amount of days after this API operation to remove
/// legal hold.
/// </para>
/// </summary>
public long RetainRecordInDays
{
get { return this._retainRecordInDays.GetValueOrDefault(); }
set { this._retainRecordInDays = value; }
}
// Check to see if RetainRecordInDays property is set
internal bool IsSetRetainRecordInDays()
{
return this._retainRecordInDays.HasValue;
}
}
}
| 100 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// This is the response object from the CancelLegalHold operation.
/// </summary>
public partial class CancelLegalHoldResponse : AmazonWebServiceResponse
{
}
}
| 38 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Contains an array of triplets made up of a condition type (such as <code>StringEquals</code>),
/// a key, and a value. Used to filter resources using their tags and assign them to a
/// backup plan. Case sensitive.
/// </summary>
public partial class Condition
{
private string _conditionKey;
private ConditionType _conditionType;
private string _conditionValue;
/// <summary>
/// Gets and sets the property ConditionKey.
/// <para>
/// The key in a key-value pair. For example, in the tag <code>Department: Accounting</code>,
/// <code>Department</code> is the key.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ConditionKey
{
get { return this._conditionKey; }
set { this._conditionKey = value; }
}
// Check to see if ConditionKey property is set
internal bool IsSetConditionKey()
{
return this._conditionKey != null;
}
/// <summary>
/// Gets and sets the property ConditionType.
/// <para>
/// An operation applied to a key-value pair used to assign resources to your backup plan.
/// Condition only supports <code>StringEquals</code>. For more flexible assignment options,
/// including <code>StringLike</code> and the ability to exclude resources from your backup
/// plan, use <code>Conditions</code> (with an "s" on the end) for your <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/API_BackupSelection.html">
/// <code>BackupSelection</code> </a>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public ConditionType ConditionType
{
get { return this._conditionType; }
set { this._conditionType = value; }
}
// Check to see if ConditionType property is set
internal bool IsSetConditionType()
{
return this._conditionType != null;
}
/// <summary>
/// Gets and sets the property ConditionValue.
/// <para>
/// The value in a key-value pair. For example, in the tag <code>Department: Accounting</code>,
/// <code>Accounting</code> is the value.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string ConditionValue
{
get { return this._conditionValue; }
set { this._conditionValue = value; }
}
// Check to see if ConditionValue property is set
internal bool IsSetConditionValue()
{
return this._conditionValue != null;
}
}
}
| 106 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Includes information about tags you define to assign tagged resources to a backup
/// plan.
/// </summary>
public partial class ConditionParameter
{
private string _conditionKey;
private string _conditionValue;
/// <summary>
/// Gets and sets the property ConditionKey.
/// <para>
/// The key in a key-value pair. For example, in the tag <code>Department: Accounting</code>,
/// <code>Department</code> is the key.
/// </para>
/// </summary>
public string ConditionKey
{
get { return this._conditionKey; }
set { this._conditionKey = value; }
}
// Check to see if ConditionKey property is set
internal bool IsSetConditionKey()
{
return this._conditionKey != null;
}
/// <summary>
/// Gets and sets the property ConditionValue.
/// <para>
/// The value in a key-value pair. For example, in the tag <code>Department: Accounting</code>,
/// <code>Accounting</code> is the value.
/// </para>
/// </summary>
public string ConditionValue
{
get { return this._conditionValue; }
set { this._conditionValue = value; }
}
// Check to see if ConditionValue property is set
internal bool IsSetConditionValue()
{
return this._conditionValue != null;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Contains information about which resources to include or exclude from a backup plan
/// using their tags. Conditions are case sensitive.
/// </summary>
public partial class Conditions
{
private List<ConditionParameter> _stringEquals = new List<ConditionParameter>();
private List<ConditionParameter> _stringLike = new List<ConditionParameter>();
private List<ConditionParameter> _stringNotEquals = new List<ConditionParameter>();
private List<ConditionParameter> _stringNotLike = new List<ConditionParameter>();
/// <summary>
/// Gets and sets the property StringEquals.
/// <para>
/// Filters the values of your tagged resources for only those resources that you tagged
/// with the same value. Also called "exact matching."
/// </para>
/// </summary>
public List<ConditionParameter> StringEquals
{
get { return this._stringEquals; }
set { this._stringEquals = value; }
}
// Check to see if StringEquals property is set
internal bool IsSetStringEquals()
{
return this._stringEquals != null && this._stringEquals.Count > 0;
}
/// <summary>
/// Gets and sets the property StringLike.
/// <para>
/// Filters the values of your tagged resources for matching tag values with the use of
/// a wildcard character (*) anywhere in the string. For example, "prod*" or "*rod*" matches
/// the tag value "production".
/// </para>
/// </summary>
public List<ConditionParameter> StringLike
{
get { return this._stringLike; }
set { this._stringLike = value; }
}
// Check to see if StringLike property is set
internal bool IsSetStringLike()
{
return this._stringLike != null && this._stringLike.Count > 0;
}
/// <summary>
/// Gets and sets the property StringNotEquals.
/// <para>
/// Filters the values of your tagged resources for only those resources that you tagged
/// that do not have the same value. Also called "negated matching."
/// </para>
/// </summary>
public List<ConditionParameter> StringNotEquals
{
get { return this._stringNotEquals; }
set { this._stringNotEquals = value; }
}
// Check to see if StringNotEquals property is set
internal bool IsSetStringNotEquals()
{
return this._stringNotEquals != null && this._stringNotEquals.Count > 0;
}
/// <summary>
/// Gets and sets the property StringNotLike.
/// <para>
/// Filters the values of your tagged resources for non-matching tag values with the use
/// of a wildcard character (*) anywhere in the string.
/// </para>
/// </summary>
public List<ConditionParameter> StringNotLike
{
get { return this._stringNotLike; }
set { this._stringNotLike = value; }
}
// Check to see if StringNotLike property is set
internal bool IsSetStringNotLike()
{
return this._stringNotLike != null && this._stringNotLike.Count > 0;
}
}
}
| 120 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Backup can't perform the action that you requested until it finishes performing a
/// previous action. Try again later.
/// </summary>
#if !NETSTANDARD
[Serializable]
#endif
public partial class ConflictException : AmazonBackupException
{
private string _code;
private string _context;
private string _type;
/// <summary>
/// Constructs a new ConflictException with the specified error
/// message.
/// </summary>
/// <param name="message">
/// Describes the error encountered.
/// </param>
public ConflictException(string message)
: base(message) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
public ConflictException(string message, Exception innerException)
: base(message, innerException) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="innerException"></param>
public ConflictException(Exception innerException)
: base(innerException) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="innerException"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ConflictException(string message, Exception innerException, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, innerException, errorType, errorCode, requestId, statusCode) {}
/// <summary>
/// Construct instance of ConflictException
/// </summary>
/// <param name="message"></param>
/// <param name="errorType"></param>
/// <param name="errorCode"></param>
/// <param name="requestId"></param>
/// <param name="statusCode"></param>
public ConflictException(string message, ErrorType errorType, string errorCode, string requestId, HttpStatusCode statusCode)
: base(message, errorType, errorCode, requestId, statusCode) {}
#if !NETSTANDARD
/// <summary>
/// Constructs a new instance of the ConflictException class with serialized data.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is null. </exception>
/// <exception cref="T:System.Runtime.Serialization.SerializationException">The class name is null or <see cref="P:System.Exception.HResult" /> is zero (0). </exception>
protected ConflictException(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
: base(info, context)
{
this.Code = (string)info.GetValue("Code", typeof(string));
this.Context = (string)info.GetValue("Context", typeof(string));
this.Type = (string)info.GetValue("Type", typeof(string));
}
/// <summary>
/// Sets the <see cref="T:System.Runtime.Serialization.SerializationInfo" /> with information about the exception.
/// </summary>
/// <param name="info">The <see cref="T:System.Runtime.Serialization.SerializationInfo" /> that holds the serialized object data about the exception being thrown.</param>
/// <param name="context">The <see cref="T:System.Runtime.Serialization.StreamingContext" /> that contains contextual information about the source or destination.</param>
/// <exception cref="T:System.ArgumentNullException">The <paramref name="info" /> parameter is a null reference (Nothing in Visual Basic). </exception>
#if BCL35
[System.Security.Permissions.SecurityPermission(
System.Security.Permissions.SecurityAction.LinkDemand,
Flags = System.Security.Permissions.SecurityPermissionFlag.SerializationFormatter)]
#endif
[System.Security.SecurityCritical]
// These FxCop rules are giving false-positives for this method
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2123:OverrideLinkDemandsShouldBeIdenticalToBase")]
[System.Diagnostics.CodeAnalysis.SuppressMessage("Microsoft.Security", "CA2134:MethodsMustOverrideWithConsistentTransparencyFxCopRule")]
public override void GetObjectData(System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context)
{
base.GetObjectData(info, context);
info.AddValue("Code", this.Code);
info.AddValue("Context", this.Context);
info.AddValue("Type", this.Type);
}
#endif
/// <summary>
/// Gets and sets the property Code.
/// </summary>
public string Code
{
get { return this._code; }
set { this._code = value; }
}
// Check to see if Code property is set
internal bool IsSetCode()
{
return this._code != null;
}
/// <summary>
/// Gets and sets the property Context.
/// </summary>
public string Context
{
get { return this._context; }
set { this._context = value; }
}
// Check to see if Context property is set
internal bool IsSetContext()
{
return this._context != null;
}
/// <summary>
/// Gets and sets the property Type.
/// </summary>
public string Type
{
get { return this._type; }
set { this._type = value; }
}
// Check to see if Type property is set
internal bool IsSetType()
{
return this._type != null;
}
}
}
| 179 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// A list of parameters for a control. A control can have zero, one, or more than one
/// parameter. An example of a control with two parameters is: "backup plan frequency
/// is at least <code>daily</code> and the retention period is at least <code>1 year</code>".
/// The first parameter is <code>daily</code>. The second parameter is <code>1 year</code>.
/// </summary>
public partial class ControlInputParameter
{
private string _parameterName;
private string _parameterValue;
/// <summary>
/// Gets and sets the property ParameterName.
/// <para>
/// The name of a parameter, for example, <code>BackupPlanFrequency</code>.
/// </para>
/// </summary>
public string ParameterName
{
get { return this._parameterName; }
set { this._parameterName = value; }
}
// Check to see if ParameterName property is set
internal bool IsSetParameterName()
{
return this._parameterName != null;
}
/// <summary>
/// Gets and sets the property ParameterValue.
/// <para>
/// The value of parameter, for example, <code>hourly</code>.
/// </para>
/// </summary>
public string ParameterValue
{
get { return this._parameterValue; }
set { this._parameterValue = value; }
}
// Check to see if ParameterValue property is set
internal bool IsSetParameterValue()
{
return this._parameterValue != null;
}
}
}
| 79 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// A framework consists of one or more controls. Each control has its own control scope.
/// The control scope can include one or more resource types, a combination of a tag key
/// and value, or a combination of one resource type and one resource ID. If no scope
/// is specified, evaluations for the rule are triggered when any resource in your recording
/// group changes in configuration.
///
/// <note>
/// <para>
/// To set a control scope that includes all of a particular resource, leave the <code>ControlScope</code>
/// empty or do not pass it when calling <code>CreateFramework</code>.
/// </para>
/// </note>
/// </summary>
public partial class ControlScope
{
private List<string> _complianceResourceIds = new List<string>();
private List<string> _complianceResourceTypes = new List<string>();
private Dictionary<string, string> _tags = new Dictionary<string, string>();
/// <summary>
/// Gets and sets the property ComplianceResourceIds.
/// <para>
/// The ID of the only Amazon Web Services resource that you want your control scope to
/// contain.
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=100)]
public List<string> ComplianceResourceIds
{
get { return this._complianceResourceIds; }
set { this._complianceResourceIds = value; }
}
// Check to see if ComplianceResourceIds property is set
internal bool IsSetComplianceResourceIds()
{
return this._complianceResourceIds != null && this._complianceResourceIds.Count > 0;
}
/// <summary>
/// Gets and sets the property ComplianceResourceTypes.
/// <para>
/// Describes whether the control scope includes one or more types of resources, such
/// as <code>EFS</code> or <code>RDS</code>.
/// </para>
/// </summary>
public List<string> ComplianceResourceTypes
{
get { return this._complianceResourceTypes; }
set { this._complianceResourceTypes = value; }
}
// Check to see if ComplianceResourceTypes property is set
internal bool IsSetComplianceResourceTypes()
{
return this._complianceResourceTypes != null && this._complianceResourceTypes.Count > 0;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// The tag key-value pair applied to those Amazon Web Services resources that you want
/// to trigger an evaluation for a rule. A maximum of one key-value pair can be provided.
/// The tag value is optional, but it cannot be an empty string. The structure to assign
/// a tag is: <code>[{"Key":"string","Value":"string"}]</code>.
/// </para>
/// </summary>
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
}
}
| 112 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// The details of the copy operation.
/// </summary>
public partial class CopyAction
{
private string _destinationBackupVaultArn;
private Lifecycle _lifecycle;
/// <summary>
/// Gets and sets the property DestinationBackupVaultArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies the destination backup vault
/// for the copied backup. For example, <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string DestinationBackupVaultArn
{
get { return this._destinationBackupVaultArn; }
set { this._destinationBackupVaultArn = value; }
}
// Check to see if DestinationBackupVaultArn property is set
internal bool IsSetDestinationBackupVaultArn()
{
return this._destinationBackupVaultArn != null;
}
/// <summary>
/// Gets and sets the property Lifecycle.
/// </summary>
public Lifecycle Lifecycle
{
get { return this._lifecycle; }
set { this._lifecycle = value; }
}
// Check to see if Lifecycle property is set
internal bool IsSetLifecycle()
{
return this._lifecycle != null;
}
}
}
| 75 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Contains detailed information about a copy job.
/// </summary>
public partial class CopyJob
{
private string _accountId;
private long? _backupSizeInBytes;
private Dictionary<string, long> _childJobsInState = new Dictionary<string, long>();
private DateTime? _completionDate;
private string _compositeMemberIdentifier;
private string _copyJobId;
private RecoveryPointCreator _createdBy;
private DateTime? _creationDate;
private string _destinationBackupVaultArn;
private string _destinationRecoveryPointArn;
private string _iamRoleArn;
private bool? _isParent;
private long? _numberOfChildJobs;
private string _parentJobId;
private string _resourceArn;
private string _resourceName;
private string _resourceType;
private string _sourceBackupVaultArn;
private string _sourceRecoveryPointArn;
private CopyJobState _state;
private string _statusMessage;
/// <summary>
/// Gets and sets the property AccountId.
/// <para>
/// The account ID that owns the copy job.
/// </para>
/// </summary>
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;
}
/// <summary>
/// Gets and sets the property BackupSizeInBytes.
/// <para>
/// The size, in bytes, of a copy job.
/// </para>
/// </summary>
public long BackupSizeInBytes
{
get { return this._backupSizeInBytes.GetValueOrDefault(); }
set { this._backupSizeInBytes = value; }
}
// Check to see if BackupSizeInBytes property is set
internal bool IsSetBackupSizeInBytes()
{
return this._backupSizeInBytes.HasValue;
}
/// <summary>
/// Gets and sets the property ChildJobsInState.
/// <para>
/// This returns the statistics of the included child (nested) copy jobs.
/// </para>
/// </summary>
public Dictionary<string, long> ChildJobsInState
{
get { return this._childJobsInState; }
set { this._childJobsInState = value; }
}
// Check to see if ChildJobsInState property is set
internal bool IsSetChildJobsInState()
{
return this._childJobsInState != null && this._childJobsInState.Count > 0;
}
/// <summary>
/// Gets and sets the property CompletionDate.
/// <para>
/// The date and time a copy job is completed, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CompletionDate</code> is accurate to milliseconds.
/// For example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CompletionDate
{
get { return this._completionDate.GetValueOrDefault(); }
set { this._completionDate = value; }
}
// Check to see if CompletionDate property is set
internal bool IsSetCompletionDate()
{
return this._completionDate.HasValue;
}
/// <summary>
/// Gets and sets the property CompositeMemberIdentifier.
/// <para>
/// This is the identifier of a resource within a composite group, such as nested (child)
/// recovery point belonging to a composite (parent) stack. The ID is transferred from
/// the <a href="https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/resources-section-structure.html#resources-section-structure-syntax">
/// logical ID</a> within a stack.
/// </para>
/// </summary>
public string CompositeMemberIdentifier
{
get { return this._compositeMemberIdentifier; }
set { this._compositeMemberIdentifier = value; }
}
// Check to see if CompositeMemberIdentifier property is set
internal bool IsSetCompositeMemberIdentifier()
{
return this._compositeMemberIdentifier != null;
}
/// <summary>
/// Gets and sets the property CopyJobId.
/// <para>
/// Uniquely identifies a copy job.
/// </para>
/// </summary>
public string CopyJobId
{
get { return this._copyJobId; }
set { this._copyJobId = value; }
}
// Check to see if CopyJobId property is set
internal bool IsSetCopyJobId()
{
return this._copyJobId != null;
}
/// <summary>
/// Gets and sets the property CreatedBy.
/// </summary>
public RecoveryPointCreator CreatedBy
{
get { return this._createdBy; }
set { this._createdBy = value; }
}
// Check to see if CreatedBy property is set
internal bool IsSetCreatedBy()
{
return this._createdBy != null;
}
/// <summary>
/// Gets and sets the property CreationDate.
/// <para>
/// The date and time a copy job is created, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For
/// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
/// <summary>
/// Gets and sets the property DestinationBackupVaultArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a destination copy vault; for
/// example, <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.
/// </para>
/// </summary>
public string DestinationBackupVaultArn
{
get { return this._destinationBackupVaultArn; }
set { this._destinationBackupVaultArn = value; }
}
// Check to see if DestinationBackupVaultArn property is set
internal bool IsSetDestinationBackupVaultArn()
{
return this._destinationBackupVaultArn != null;
}
/// <summary>
/// Gets and sets the property DestinationRecoveryPointArn.
/// <para>
/// An ARN that uniquely identifies a destination recovery point; for example, <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.
/// </para>
/// </summary>
public string DestinationRecoveryPointArn
{
get { return this._destinationRecoveryPointArn; }
set { this._destinationRecoveryPointArn = value; }
}
// Check to see if DestinationRecoveryPointArn property is set
internal bool IsSetDestinationRecoveryPointArn()
{
return this._destinationRecoveryPointArn != null;
}
/// <summary>
/// Gets and sets the property IamRoleArn.
/// <para>
/// Specifies the IAM role ARN used to copy the target recovery point; for example, <code>arn:aws:iam::123456789012:role/S3Access</code>.
/// </para>
/// </summary>
public string IamRoleArn
{
get { return this._iamRoleArn; }
set { this._iamRoleArn = value; }
}
// Check to see if IamRoleArn property is set
internal bool IsSetIamRoleArn()
{
return this._iamRoleArn != null;
}
/// <summary>
/// Gets and sets the property IsParent.
/// <para>
/// This is a boolean value indicating this is a parent (composite) copy job.
/// </para>
/// </summary>
public bool IsParent
{
get { return this._isParent.GetValueOrDefault(); }
set { this._isParent = value; }
}
// Check to see if IsParent property is set
internal bool IsSetIsParent()
{
return this._isParent.HasValue;
}
/// <summary>
/// Gets and sets the property NumberOfChildJobs.
/// <para>
/// This is the number of child (nested) copy jobs.
/// </para>
/// </summary>
public long NumberOfChildJobs
{
get { return this._numberOfChildJobs.GetValueOrDefault(); }
set { this._numberOfChildJobs = value; }
}
// Check to see if NumberOfChildJobs property is set
internal bool IsSetNumberOfChildJobs()
{
return this._numberOfChildJobs.HasValue;
}
/// <summary>
/// Gets and sets the property ParentJobId.
/// <para>
/// This uniquely identifies a request to Backup to copy a resource. The return will be
/// the parent (composite) job ID.
/// </para>
/// </summary>
public string ParentJobId
{
get { return this._parentJobId; }
set { this._parentJobId = value; }
}
// Check to see if ParentJobId property is set
internal bool IsSetParentJobId()
{
return this._parentJobId != null;
}
/// <summary>
/// Gets and sets the property ResourceArn.
/// <para>
/// The Amazon Web Services resource to be copied; for example, an Amazon Elastic Block
/// Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS) database.
/// </para>
/// </summary>
public string ResourceArn
{
get { return this._resourceArn; }
set { this._resourceArn = value; }
}
// Check to see if ResourceArn property is set
internal bool IsSetResourceArn()
{
return this._resourceArn != null;
}
/// <summary>
/// Gets and sets the property ResourceName.
/// <para>
/// This is the non-unique name of the resource that belongs to the specified backup.
/// </para>
/// </summary>
public string ResourceName
{
get { return this._resourceName; }
set { this._resourceName = value; }
}
// Check to see if ResourceName property is set
internal bool IsSetResourceName()
{
return this._resourceName != null;
}
/// <summary>
/// Gets and sets the property ResourceType.
/// <para>
/// The type of Amazon Web Services resource to be copied; for example, an Amazon Elastic
/// Block Store (Amazon EBS) volume or an Amazon Relational Database Service (Amazon RDS)
/// database.
/// </para>
/// </summary>
public string ResourceType
{
get { return this._resourceType; }
set { this._resourceType = value; }
}
// Check to see if ResourceType property is set
internal bool IsSetResourceType()
{
return this._resourceType != null;
}
/// <summary>
/// Gets and sets the property SourceBackupVaultArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a source copy vault; for example,
/// <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.
/// </para>
/// </summary>
public string SourceBackupVaultArn
{
get { return this._sourceBackupVaultArn; }
set { this._sourceBackupVaultArn = value; }
}
// Check to see if SourceBackupVaultArn property is set
internal bool IsSetSourceBackupVaultArn()
{
return this._sourceBackupVaultArn != null;
}
/// <summary>
/// Gets and sets the property SourceRecoveryPointArn.
/// <para>
/// An ARN that uniquely identifies a source recovery point; for example, <code>arn:aws:backup:us-east-1:123456789012:recovery-point:1EB3B5E7-9EB0-435A-A80B-108B488B0D45</code>.
/// </para>
/// </summary>
public string SourceRecoveryPointArn
{
get { return this._sourceRecoveryPointArn; }
set { this._sourceRecoveryPointArn = value; }
}
// Check to see if SourceRecoveryPointArn property is set
internal bool IsSetSourceRecoveryPointArn()
{
return this._sourceRecoveryPointArn != null;
}
/// <summary>
/// Gets and sets the property State.
/// <para>
/// The current state of a copy job.
/// </para>
/// </summary>
public CopyJobState State
{
get { return this._state; }
set { this._state = value; }
}
// Check to see if State property is set
internal bool IsSetState()
{
return this._state != null;
}
/// <summary>
/// Gets and sets the property StatusMessage.
/// <para>
/// A detailed message explaining the status of the job to copy a resource.
/// </para>
/// </summary>
public string StatusMessage
{
get { return this._statusMessage; }
set { this._statusMessage = value; }
}
// Check to see if StatusMessage property is set
internal bool IsSetStatusMessage()
{
return this._statusMessage != null;
}
}
}
| 449 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Container for the parameters to the CreateBackupPlan operation.
/// Creates a backup plan using a backup plan name and backup rules. A backup plan is
/// a document that contains information that Backup uses to schedule tasks that create
/// recovery points for resources.
///
///
/// <para>
/// If you call <code>CreateBackupPlan</code> with a plan that already exists, you receive
/// an <code>AlreadyExistsException</code> exception.
/// </para>
/// </summary>
public partial class CreateBackupPlanRequest : AmazonBackupRequest
{
private BackupPlanInput _backupPlan;
private Dictionary<string, string> _backupPlanTags = new Dictionary<string, string>();
private string _creatorRequestId;
/// <summary>
/// Gets and sets the property BackupPlan.
/// <para>
/// Specifies the body of a backup plan. Includes a <code>BackupPlanName</code> and one
/// or more sets of <code>Rules</code>.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public BackupPlanInput BackupPlan
{
get { return this._backupPlan; }
set { this._backupPlan = value; }
}
// Check to see if BackupPlan property is set
internal bool IsSetBackupPlan()
{
return this._backupPlan != null;
}
/// <summary>
/// Gets and sets the property BackupPlanTags.
/// <para>
/// To help organize your resources, you can assign your own metadata to the resources
/// that you create. Each tag is a key-value pair. The specified tags are assigned to
/// all backups created with this plan.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true)]
public Dictionary<string, string> BackupPlanTags
{
get { return this._backupPlanTags; }
set { this._backupPlanTags = value; }
}
// Check to see if BackupPlanTags property is set
internal bool IsSetBackupPlanTags()
{
return this._backupPlanTags != null && this._backupPlanTags.Count > 0;
}
/// <summary>
/// Gets and sets the property CreatorRequestId.
/// <para>
/// Identifies the request and allows failed requests to be retried without the risk of
/// running the operation twice. If the request includes a <code>CreatorRequestId</code>
/// that matches an existing backup plan, that plan is returned. This parameter is optional.
/// </para>
///
/// <para>
/// If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
/// </para>
/// </summary>
public string CreatorRequestId
{
get { return this._creatorRequestId; }
set { this._creatorRequestId = value; }
}
// Check to see if CreatorRequestId property is set
internal bool IsSetCreatorRequestId()
{
return this._creatorRequestId != null;
}
}
}
| 115 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// This is the response object from the CreateBackupPlan operation.
/// </summary>
public partial class CreateBackupPlanResponse : AmazonWebServiceResponse
{
private List<AdvancedBackupSetting> _advancedBackupSettings = new List<AdvancedBackupSetting>();
private string _backupPlanArn;
private string _backupPlanId;
private DateTime? _creationDate;
private string _versionId;
/// <summary>
/// Gets and sets the property AdvancedBackupSettings.
/// <para>
/// A list of <code>BackupOptions</code> settings for a resource type. This option is
/// only available for Windows Volume Shadow Copy Service (VSS) backup jobs.
/// </para>
/// </summary>
public List<AdvancedBackupSetting> AdvancedBackupSettings
{
get { return this._advancedBackupSettings; }
set { this._advancedBackupSettings = value; }
}
// Check to see if AdvancedBackupSettings property is set
internal bool IsSetAdvancedBackupSettings()
{
return this._advancedBackupSettings != null && this._advancedBackupSettings.Count > 0;
}
/// <summary>
/// Gets and sets the property BackupPlanArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a backup plan; for example,
/// <code>arn:aws:backup:us-east-1:123456789012:plan:8F81F553-3A74-4A3F-B93D-B3360DC80C50</code>.
/// </para>
/// </summary>
public string BackupPlanArn
{
get { return this._backupPlanArn; }
set { this._backupPlanArn = value; }
}
// Check to see if BackupPlanArn property is set
internal bool IsSetBackupPlanArn()
{
return this._backupPlanArn != null;
}
/// <summary>
/// Gets and sets the property BackupPlanId.
/// <para>
/// Uniquely identifies a backup plan.
/// </para>
/// </summary>
public string BackupPlanId
{
get { return this._backupPlanId; }
set { this._backupPlanId = value; }
}
// Check to see if BackupPlanId property is set
internal bool IsSetBackupPlanId()
{
return this._backupPlanId != null;
}
/// <summary>
/// Gets and sets the property CreationDate.
/// <para>
/// The date and time that a backup plan is created, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For
/// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
/// <summary>
/// Gets and sets the property VersionId.
/// <para>
/// Unique, randomly generated, Unicode, UTF-8 encoded strings that are at most 1,024
/// bytes long. They cannot be edited.
/// </para>
/// </summary>
public string VersionId
{
get { return this._versionId; }
set { this._versionId = value; }
}
// Check to see if VersionId property is set
internal bool IsSetVersionId()
{
return this._versionId != null;
}
}
}
| 139 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Container for the parameters to the CreateBackupSelection operation.
/// Creates a JSON document that specifies a set of resources to assign to a backup plan.
/// For examples, see <a href="https://docs.aws.amazon.com/aws-backup/latest/devguide/assigning-resources.html#assigning-resources-json">Assigning
/// resources programmatically</a>.
/// </summary>
public partial class CreateBackupSelectionRequest : AmazonBackupRequest
{
private string _backupPlanId;
private BackupSelection _backupSelection;
private string _creatorRequestId;
/// <summary>
/// Gets and sets the property BackupPlanId.
/// <para>
/// Uniquely identifies the backup plan to be associated with the selection of resources.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string BackupPlanId
{
get { return this._backupPlanId; }
set { this._backupPlanId = value; }
}
// Check to see if BackupPlanId property is set
internal bool IsSetBackupPlanId()
{
return this._backupPlanId != null;
}
/// <summary>
/// Gets and sets the property BackupSelection.
/// <para>
/// Specifies the body of a request to assign a set of resources to a backup plan.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public BackupSelection BackupSelection
{
get { return this._backupSelection; }
set { this._backupSelection = value; }
}
// Check to see if BackupSelection property is set
internal bool IsSetBackupSelection()
{
return this._backupSelection != null;
}
/// <summary>
/// Gets and sets the property CreatorRequestId.
/// <para>
/// A unique string that identifies the request and allows failed requests to be retried
/// without the risk of running the operation twice. This parameter is optional.
/// </para>
///
/// <para>
/// If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
/// </para>
/// </summary>
public string CreatorRequestId
{
get { return this._creatorRequestId; }
set { this._creatorRequestId = value; }
}
// Check to see if CreatorRequestId property is set
internal bool IsSetCreatorRequestId()
{
return this._creatorRequestId != null;
}
}
}
| 105 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// This is the response object from the CreateBackupSelection operation.
/// </summary>
public partial class CreateBackupSelectionResponse : AmazonWebServiceResponse
{
private string _backupPlanId;
private DateTime? _creationDate;
private string _selectionId;
/// <summary>
/// Gets and sets the property BackupPlanId.
/// <para>
/// Uniquely identifies a backup plan.
/// </para>
/// </summary>
public string BackupPlanId
{
get { return this._backupPlanId; }
set { this._backupPlanId = value; }
}
// Check to see if BackupPlanId property is set
internal bool IsSetBackupPlanId()
{
return this._backupPlanId != null;
}
/// <summary>
/// Gets and sets the property CreationDate.
/// <para>
/// The date and time a backup selection is created, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For
/// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
/// <summary>
/// Gets and sets the property SelectionId.
/// <para>
/// Uniquely identifies the body of a request to assign a set of resources to a backup
/// plan.
/// </para>
/// </summary>
public string SelectionId
{
get { return this._selectionId; }
set { this._selectionId = value; }
}
// Check to see if SelectionId property is set
internal bool IsSetSelectionId()
{
return this._selectionId != null;
}
}
}
| 99 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Container for the parameters to the CreateBackupVault operation.
/// Creates a logical container where backups are stored. A <code>CreateBackupVault</code>
/// request includes a name, optionally one or more resource tags, an encryption key,
/// and a request ID.
///
/// <note>
/// <para>
/// Do not include sensitive data, such as passport numbers, in the name of a backup vault.
/// </para>
/// </note>
/// </summary>
public partial class CreateBackupVaultRequest : AmazonBackupRequest
{
private string _backupVaultName;
private Dictionary<string, string> _backupVaultTags = new Dictionary<string, string>();
private string _creatorRequestId;
private string _encryptionKeyArn;
/// <summary>
/// Gets and sets the property BackupVaultName.
/// <para>
/// The name of a logical container where backups are stored. Backup vaults are identified
/// by names that are unique to the account used to create them and the Amazon Web Services
/// Region where they are created. They consist of letters, numbers, and hyphens.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string BackupVaultName
{
get { return this._backupVaultName; }
set { this._backupVaultName = value; }
}
// Check to see if BackupVaultName property is set
internal bool IsSetBackupVaultName()
{
return this._backupVaultName != null;
}
/// <summary>
/// Gets and sets the property BackupVaultTags.
/// <para>
/// Metadata that you can assign to help organize the resources that you create. Each
/// tag is a key-value pair.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true)]
public Dictionary<string, string> BackupVaultTags
{
get { return this._backupVaultTags; }
set { this._backupVaultTags = value; }
}
// Check to see if BackupVaultTags property is set
internal bool IsSetBackupVaultTags()
{
return this._backupVaultTags != null && this._backupVaultTags.Count > 0;
}
/// <summary>
/// Gets and sets the property CreatorRequestId.
/// <para>
/// A unique string that identifies the request and allows failed requests to be retried
/// without the risk of running the operation twice. This parameter is optional.
/// </para>
///
/// <para>
/// If used, this parameter must contain 1 to 50 alphanumeric or '-_.' characters.
/// </para>
/// </summary>
public string CreatorRequestId
{
get { return this._creatorRequestId; }
set { this._creatorRequestId = value; }
}
// Check to see if CreatorRequestId property is set
internal bool IsSetCreatorRequestId()
{
return this._creatorRequestId != null;
}
/// <summary>
/// Gets and sets the property EncryptionKeyArn.
/// <para>
/// The server-side encryption key that is used to protect your backups; for example,
/// <code>arn:aws:kms:us-west-2:111122223333:key/1234abcd-12ab-34cd-56ef-1234567890ab</code>.
/// </para>
/// </summary>
public string EncryptionKeyArn
{
get { return this._encryptionKeyArn; }
set { this._encryptionKeyArn = value; }
}
// Check to see if EncryptionKeyArn property is set
internal bool IsSetEncryptionKeyArn()
{
return this._encryptionKeyArn != null;
}
}
}
| 134 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// This is the response object from the CreateBackupVault operation.
/// </summary>
public partial class CreateBackupVaultResponse : AmazonWebServiceResponse
{
private string _backupVaultArn;
private string _backupVaultName;
private DateTime? _creationDate;
/// <summary>
/// Gets and sets the property BackupVaultArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a backup vault; for example,
/// <code>arn:aws:backup:us-east-1:123456789012:vault:aBackupVault</code>.
/// </para>
/// </summary>
public string BackupVaultArn
{
get { return this._backupVaultArn; }
set { this._backupVaultArn = value; }
}
// Check to see if BackupVaultArn property is set
internal bool IsSetBackupVaultArn()
{
return this._backupVaultArn != null;
}
/// <summary>
/// Gets and sets the property BackupVaultName.
/// <para>
/// The name of a logical container where backups are stored. Backup vaults are identified
/// by names that are unique to the account used to create them and the Region where they
/// are created. They consist of lowercase letters, numbers, and hyphens.
/// </para>
/// </summary>
public string BackupVaultName
{
get { return this._backupVaultName; }
set { this._backupVaultName = value; }
}
// Check to see if BackupVaultName property is set
internal bool IsSetBackupVaultName()
{
return this._backupVaultName != null;
}
/// <summary>
/// Gets and sets the property CreationDate.
/// <para>
/// The date and time a backup vault is created, in Unix format and Coordinated Universal
/// Time (UTC). The value of <code>CreationDate</code> is accurate to milliseconds. For
/// example, the value 1516925490.087 represents Friday, January 26, 2018 12:11:30.087
/// AM.
/// </para>
/// </summary>
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
}
}
| 101 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Container for the parameters to the CreateFramework operation.
/// Creates a framework with one or more controls. A framework is a collection of controls
/// that you can use to evaluate your backup practices. By using pre-built customizable
/// controls to define your policies, you can evaluate whether your backup practices comply
/// with your policies and which resources are not yet in compliance.
/// </summary>
public partial class CreateFrameworkRequest : AmazonBackupRequest
{
private List<FrameworkControl> _frameworkControls = new List<FrameworkControl>();
private string _frameworkDescription;
private string _frameworkName;
private Dictionary<string, string> _frameworkTags = new Dictionary<string, string>();
private string _idempotencyToken;
/// <summary>
/// Gets and sets the property FrameworkControls.
/// <para>
/// A list of the controls that make up the framework. Each control in the list has a
/// name, input parameters, and scope.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public List<FrameworkControl> FrameworkControls
{
get { return this._frameworkControls; }
set { this._frameworkControls = value; }
}
// Check to see if FrameworkControls property is set
internal bool IsSetFrameworkControls()
{
return this._frameworkControls != null && this._frameworkControls.Count > 0;
}
/// <summary>
/// Gets and sets the property FrameworkDescription.
/// <para>
/// An optional description of the framework with a maximum of 1,024 characters.
/// </para>
/// </summary>
[AWSProperty(Min=0, Max=1024)]
public string FrameworkDescription
{
get { return this._frameworkDescription; }
set { this._frameworkDescription = value; }
}
// Check to see if FrameworkDescription property is set
internal bool IsSetFrameworkDescription()
{
return this._frameworkDescription != null;
}
/// <summary>
/// Gets and sets the property FrameworkName.
/// <para>
/// The unique name of the framework. The name must be between 1 and 256 characters, starting
/// with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores
/// (_).
/// </para>
/// </summary>
[AWSProperty(Required=true, Min=1, Max=256)]
public string FrameworkName
{
get { return this._frameworkName; }
set { this._frameworkName = value; }
}
// Check to see if FrameworkName property is set
internal bool IsSetFrameworkName()
{
return this._frameworkName != null;
}
/// <summary>
/// Gets and sets the property FrameworkTags.
/// <para>
/// Metadata that you can assign to help organize the frameworks that you create. Each
/// tag is a key-value pair.
/// </para>
/// </summary>
public Dictionary<string, string> FrameworkTags
{
get { return this._frameworkTags; }
set { this._frameworkTags = value; }
}
// Check to see if FrameworkTags property is set
internal bool IsSetFrameworkTags()
{
return this._frameworkTags != null && this._frameworkTags.Count > 0;
}
/// <summary>
/// Gets and sets the property IdempotencyToken.
/// <para>
/// A customer-chosen string that you can use to distinguish between otherwise identical
/// calls to <code>CreateFrameworkInput</code>. Retrying a successful request with the
/// same idempotency token results in a success message with no action taken.
/// </para>
/// </summary>
public string IdempotencyToken
{
get { return this._idempotencyToken; }
set { this._idempotencyToken = value; }
}
// Check to see if IdempotencyToken property is set
internal bool IsSetIdempotencyToken()
{
return this._idempotencyToken != null;
}
}
}
| 146 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// This is the response object from the CreateFramework operation.
/// </summary>
public partial class CreateFrameworkResponse : AmazonWebServiceResponse
{
private string _frameworkArn;
private string _frameworkName;
/// <summary>
/// Gets and sets the property FrameworkArn.
/// <para>
/// An Amazon Resource Name (ARN) that uniquely identifies a resource. The format of the
/// ARN depends on the resource type.
/// </para>
/// </summary>
public string FrameworkArn
{
get { return this._frameworkArn; }
set { this._frameworkArn = value; }
}
// Check to see if FrameworkArn property is set
internal bool IsSetFrameworkArn()
{
return this._frameworkArn != null;
}
/// <summary>
/// Gets and sets the property FrameworkName.
/// <para>
/// The unique name of the framework. The name must be between 1 and 256 characters, starting
/// with a letter, and consisting of letters (a-z, A-Z), numbers (0-9), and underscores
/// (_).
/// </para>
/// </summary>
[AWSProperty(Min=1, Max=256)]
public string FrameworkName
{
get { return this._frameworkName; }
set { this._frameworkName = value; }
}
// Check to see if FrameworkName property is set
internal bool IsSetFrameworkName()
{
return this._frameworkName != null;
}
}
}
| 80 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// Container for the parameters to the CreateLegalHold operation.
/// This action creates a legal hold on a recovery point (backup). A legal hold is a restraint
/// on altering or deleting a backup until an authorized user cancels the legal hold.
/// Any actions to delete or disassociate a recovery point will fail with an error if
/// one or more active legal holds are on the recovery point.
/// </summary>
public partial class CreateLegalHoldRequest : AmazonBackupRequest
{
private string _description;
private string _idempotencyToken;
private RecoveryPointSelection _recoveryPointSelection;
private Dictionary<string, string> _tags = new Dictionary<string, string>();
private string _title;
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// This is the string description of the legal hold.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property IdempotencyToken.
/// <para>
/// This is a user-chosen string used to distinguish between otherwise identical calls.
/// Retrying a successful request with the same idempotency token results in a success
/// message with no action taken.
/// </para>
/// </summary>
public string IdempotencyToken
{
get { return this._idempotencyToken; }
set { this._idempotencyToken = value; }
}
// Check to see if IdempotencyToken property is set
internal bool IsSetIdempotencyToken()
{
return this._idempotencyToken != null;
}
/// <summary>
/// Gets and sets the property RecoveryPointSelection.
/// <para>
/// This specifies criteria to assign a set of resources, such as resource types or backup
/// vaults.
/// </para>
/// </summary>
public RecoveryPointSelection RecoveryPointSelection
{
get { return this._recoveryPointSelection; }
set { this._recoveryPointSelection = value; }
}
// Check to see if RecoveryPointSelection property is set
internal bool IsSetRecoveryPointSelection()
{
return this._recoveryPointSelection != null;
}
/// <summary>
/// Gets and sets the property Tags.
/// <para>
/// Optional tags to include. A tag is a key-value pair you can use to manage, filter,
/// and search for your resources. Allowed characters include UTF-8 letters, numbers,
/// spaces, and the following characters: + - = . _ : /.
/// </para>
/// </summary>
[AWSProperty(Sensitive=true)]
public Dictionary<string, string> Tags
{
get { return this._tags; }
set { this._tags = value; }
}
// Check to see if Tags property is set
internal bool IsSetTags()
{
return this._tags != null && this._tags.Count > 0;
}
/// <summary>
/// Gets and sets the property Title.
/// <para>
/// This is the string title of the legal hold.
/// </para>
/// </summary>
[AWSProperty(Required=true)]
public string Title
{
get { return this._title; }
set { this._title = value; }
}
// Check to see if Title property is set
internal bool IsSetTitle()
{
return this._title != null;
}
}
}
| 145 |
aws-sdk-net
|
aws
|
C#
|
/*
* 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 backup-2018-11-15.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.Backup.Model
{
/// <summary>
/// This is the response object from the CreateLegalHold operation.
/// </summary>
public partial class CreateLegalHoldResponse : AmazonWebServiceResponse
{
private DateTime? _creationDate;
private string _description;
private string _legalHoldArn;
private string _legalHoldId;
private RecoveryPointSelection _recoveryPointSelection;
private LegalHoldStatus _status;
private string _title;
/// <summary>
/// Gets and sets the property CreationDate.
/// <para>
/// Time in number format when legal hold was created.
/// </para>
/// </summary>
public DateTime CreationDate
{
get { return this._creationDate.GetValueOrDefault(); }
set { this._creationDate = value; }
}
// Check to see if CreationDate property is set
internal bool IsSetCreationDate()
{
return this._creationDate.HasValue;
}
/// <summary>
/// Gets and sets the property Description.
/// <para>
/// This is the returned string description of the legal hold.
/// </para>
/// </summary>
public string Description
{
get { return this._description; }
set { this._description = value; }
}
// Check to see if Description property is set
internal bool IsSetDescription()
{
return this._description != null;
}
/// <summary>
/// Gets and sets the property LegalHoldArn.
/// <para>
/// This is the ARN (Amazon Resource Number) of the created legal hold.
/// </para>
/// </summary>
public string LegalHoldArn
{
get { return this._legalHoldArn; }
set { this._legalHoldArn = value; }
}
// Check to see if LegalHoldArn property is set
internal bool IsSetLegalHoldArn()
{
return this._legalHoldArn != null;
}
/// <summary>
/// Gets and sets the property LegalHoldId.
/// <para>
/// Legal hold ID returned for the specified legal hold on a recovery point.
/// </para>
/// </summary>
public string LegalHoldId
{
get { return this._legalHoldId; }
set { this._legalHoldId = value; }
}
// Check to see if LegalHoldId property is set
internal bool IsSetLegalHoldId()
{
return this._legalHoldId != null;
}
/// <summary>
/// Gets and sets the property RecoveryPointSelection.
/// <para>
/// This specifies criteria to assign a set of resources, such as resource types or backup
/// vaults.
/// </para>
/// </summary>
public RecoveryPointSelection RecoveryPointSelection
{
get { return this._recoveryPointSelection; }
set { this._recoveryPointSelection = value; }
}
// Check to see if RecoveryPointSelection property is set
internal bool IsSetRecoveryPointSelection()
{
return this._recoveryPointSelection != null;
}
/// <summary>
/// Gets and sets the property Status.
/// <para>
/// This displays the status of the legal hold returned after creating the legal hold.
/// Statuses can be <code>ACTIVE</code>, <code>PENDING</code>, <code>CANCELED</code>,
/// <code>CANCELING</code>, or <code>FAILED</code>.
/// </para>
/// </summary>
public LegalHoldStatus Status
{
get { return this._status; }
set { this._status = value; }
}
// Check to see if Status property is set
internal bool IsSetStatus()
{
return this._status != null;
}
/// <summary>
/// Gets and sets the property Title.
/// <para>
/// This is the string title of the legal hold returned after creating the legal hold.
/// </para>
/// </summary>
public string Title
{
get { return this._title; }
set { this._title = value; }
}
// Check to see if Title property is set
internal bool IsSetTitle()
{
return this._title != null;
}
}
}
| 174 |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.