1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2
3package braket
4
5import (
6	"fmt"
7	"time"
8
9	"github.com/aws/aws-sdk-go/aws"
10	"github.com/aws/aws-sdk-go/aws/awsutil"
11	"github.com/aws/aws-sdk-go/aws/request"
12	"github.com/aws/aws-sdk-go/private/protocol"
13	"github.com/aws/aws-sdk-go/private/protocol/restjson"
14)
15
16const opCancelQuantumTask = "CancelQuantumTask"
17
18// CancelQuantumTaskRequest generates a "aws/request.Request" representing the
19// client's request for the CancelQuantumTask operation. The "output" return
20// value will be populated with the request's response once the request completes
21// successfully.
22//
23// Use "Send" method on the returned Request to send the API call to the service.
24// the "output" return value is not valid until after Send returns without error.
25//
26// See CancelQuantumTask for more information on using the CancelQuantumTask
27// API call, and error handling.
28//
29// This method is useful when you want to inject custom logic or configuration
30// into the SDK's request lifecycle. Such as custom headers, or retry logic.
31//
32//
33//    // Example sending a request using the CancelQuantumTaskRequest method.
34//    req, resp := client.CancelQuantumTaskRequest(params)
35//
36//    err := req.Send()
37//    if err == nil { // resp is now filled
38//        fmt.Println(resp)
39//    }
40//
41// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask
42func (c *Braket) CancelQuantumTaskRequest(input *CancelQuantumTaskInput) (req *request.Request, output *CancelQuantumTaskOutput) {
43	op := &request.Operation{
44		Name:       opCancelQuantumTask,
45		HTTPMethod: "PUT",
46		HTTPPath:   "/quantum-task/{quantumTaskArn}/cancel",
47	}
48
49	if input == nil {
50		input = &CancelQuantumTaskInput{}
51	}
52
53	output = &CancelQuantumTaskOutput{}
54	req = c.newRequest(op, input, output)
55	return
56}
57
58// CancelQuantumTask API operation for Braket.
59//
60// Cancels the specified task.
61//
62// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
63// with awserr.Error's Code and Message methods to get detailed information about
64// the error.
65//
66// See the AWS API reference guide for Braket's
67// API operation CancelQuantumTask for usage and error information.
68//
69// Returned Error Types:
70//   * ResourceNotFoundException
71//   The specified resource was not found.
72//
73//   * AccessDeniedException
74//   You do not have sufficient access to perform this action.
75//
76//   * ConflictException
77//   An error occurred due to a conflict.
78//
79//   * ThrottlingException
80//   The throttling rate limit is met.
81//
82//   * InternalServiceException
83//   The request processing has failed because of an unknown error, exception,
84//   or failure.
85//
86//   * ValidationException
87//   The input fails to satisfy the constraints specified by an AWS service.
88//
89// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CancelQuantumTask
90func (c *Braket) CancelQuantumTask(input *CancelQuantumTaskInput) (*CancelQuantumTaskOutput, error) {
91	req, out := c.CancelQuantumTaskRequest(input)
92	return out, req.Send()
93}
94
95// CancelQuantumTaskWithContext is the same as CancelQuantumTask with the addition of
96// the ability to pass a context and additional request options.
97//
98// See CancelQuantumTask for details on how to use this API operation.
99//
100// The context must be non-nil and will be used for request cancellation. If
101// the context is nil a panic will occur. In the future the SDK may create
102// sub-contexts for http.Requests. See https://golang.org/pkg/context/
103// for more information on using Contexts.
104func (c *Braket) CancelQuantumTaskWithContext(ctx aws.Context, input *CancelQuantumTaskInput, opts ...request.Option) (*CancelQuantumTaskOutput, error) {
105	req, out := c.CancelQuantumTaskRequest(input)
106	req.SetContext(ctx)
107	req.ApplyOptions(opts...)
108	return out, req.Send()
109}
110
111const opCreateQuantumTask = "CreateQuantumTask"
112
113// CreateQuantumTaskRequest generates a "aws/request.Request" representing the
114// client's request for the CreateQuantumTask operation. The "output" return
115// value will be populated with the request's response once the request completes
116// successfully.
117//
118// Use "Send" method on the returned Request to send the API call to the service.
119// the "output" return value is not valid until after Send returns without error.
120//
121// See CreateQuantumTask for more information on using the CreateQuantumTask
122// API call, and error handling.
123//
124// This method is useful when you want to inject custom logic or configuration
125// into the SDK's request lifecycle. Such as custom headers, or retry logic.
126//
127//
128//    // Example sending a request using the CreateQuantumTaskRequest method.
129//    req, resp := client.CreateQuantumTaskRequest(params)
130//
131//    err := req.Send()
132//    if err == nil { // resp is now filled
133//        fmt.Println(resp)
134//    }
135//
136// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTask
137func (c *Braket) CreateQuantumTaskRequest(input *CreateQuantumTaskInput) (req *request.Request, output *CreateQuantumTaskOutput) {
138	op := &request.Operation{
139		Name:       opCreateQuantumTask,
140		HTTPMethod: "POST",
141		HTTPPath:   "/quantum-task",
142	}
143
144	if input == nil {
145		input = &CreateQuantumTaskInput{}
146	}
147
148	output = &CreateQuantumTaskOutput{}
149	req = c.newRequest(op, input, output)
150	return
151}
152
153// CreateQuantumTask API operation for Braket.
154//
155// Creates a quantum task.
156//
157// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
158// with awserr.Error's Code and Message methods to get detailed information about
159// the error.
160//
161// See the AWS API reference guide for Braket's
162// API operation CreateQuantumTask for usage and error information.
163//
164// Returned Error Types:
165//   * AccessDeniedException
166//   You do not have sufficient access to perform this action.
167//
168//   * ThrottlingException
169//   The throttling rate limit is met.
170//
171//   * DeviceOfflineException
172//   The specified device is currently offline.
173//
174//   * InternalServiceException
175//   The request processing has failed because of an unknown error, exception,
176//   or failure.
177//
178//   * ServiceQuotaExceededException
179//   The request failed because a service quota is exceeded.
180//
181//   * ValidationException
182//   The input fails to satisfy the constraints specified by an AWS service.
183//
184// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/CreateQuantumTask
185func (c *Braket) CreateQuantumTask(input *CreateQuantumTaskInput) (*CreateQuantumTaskOutput, error) {
186	req, out := c.CreateQuantumTaskRequest(input)
187	return out, req.Send()
188}
189
190// CreateQuantumTaskWithContext is the same as CreateQuantumTask with the addition of
191// the ability to pass a context and additional request options.
192//
193// See CreateQuantumTask for details on how to use this API operation.
194//
195// The context must be non-nil and will be used for request cancellation. If
196// the context is nil a panic will occur. In the future the SDK may create
197// sub-contexts for http.Requests. See https://golang.org/pkg/context/
198// for more information on using Contexts.
199func (c *Braket) CreateQuantumTaskWithContext(ctx aws.Context, input *CreateQuantumTaskInput, opts ...request.Option) (*CreateQuantumTaskOutput, error) {
200	req, out := c.CreateQuantumTaskRequest(input)
201	req.SetContext(ctx)
202	req.ApplyOptions(opts...)
203	return out, req.Send()
204}
205
206const opGetDevice = "GetDevice"
207
208// GetDeviceRequest generates a "aws/request.Request" representing the
209// client's request for the GetDevice operation. The "output" return
210// value will be populated with the request's response once the request completes
211// successfully.
212//
213// Use "Send" method on the returned Request to send the API call to the service.
214// the "output" return value is not valid until after Send returns without error.
215//
216// See GetDevice for more information on using the GetDevice
217// API call, and error handling.
218//
219// This method is useful when you want to inject custom logic or configuration
220// into the SDK's request lifecycle. Such as custom headers, or retry logic.
221//
222//
223//    // Example sending a request using the GetDeviceRequest method.
224//    req, resp := client.GetDeviceRequest(params)
225//
226//    err := req.Send()
227//    if err == nil { // resp is now filled
228//        fmt.Println(resp)
229//    }
230//
231// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetDevice
232func (c *Braket) GetDeviceRequest(input *GetDeviceInput) (req *request.Request, output *GetDeviceOutput) {
233	op := &request.Operation{
234		Name:       opGetDevice,
235		HTTPMethod: "GET",
236		HTTPPath:   "/device/{deviceArn}",
237	}
238
239	if input == nil {
240		input = &GetDeviceInput{}
241	}
242
243	output = &GetDeviceOutput{}
244	req = c.newRequest(op, input, output)
245	return
246}
247
248// GetDevice API operation for Braket.
249//
250// Retrieves the devices available in Amazon Braket.
251//
252// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
253// with awserr.Error's Code and Message methods to get detailed information about
254// the error.
255//
256// See the AWS API reference guide for Braket's
257// API operation GetDevice for usage and error information.
258//
259// Returned Error Types:
260//   * ResourceNotFoundException
261//   The specified resource was not found.
262//
263//   * AccessDeniedException
264//   You do not have sufficient access to perform this action.
265//
266//   * ThrottlingException
267//   The throttling rate limit is met.
268//
269//   * DeviceOfflineException
270//   The specified device is currently offline.
271//
272//   * DeviceRetiredException
273//   The specified device has been retired.
274//
275//   * InternalServiceException
276//   The request processing has failed because of an unknown error, exception,
277//   or failure.
278//
279//   * ValidationException
280//   The input fails to satisfy the constraints specified by an AWS service.
281//
282// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetDevice
283func (c *Braket) GetDevice(input *GetDeviceInput) (*GetDeviceOutput, error) {
284	req, out := c.GetDeviceRequest(input)
285	return out, req.Send()
286}
287
288// GetDeviceWithContext is the same as GetDevice with the addition of
289// the ability to pass a context and additional request options.
290//
291// See GetDevice for details on how to use this API operation.
292//
293// The context must be non-nil and will be used for request cancellation. If
294// the context is nil a panic will occur. In the future the SDK may create
295// sub-contexts for http.Requests. See https://golang.org/pkg/context/
296// for more information on using Contexts.
297func (c *Braket) GetDeviceWithContext(ctx aws.Context, input *GetDeviceInput, opts ...request.Option) (*GetDeviceOutput, error) {
298	req, out := c.GetDeviceRequest(input)
299	req.SetContext(ctx)
300	req.ApplyOptions(opts...)
301	return out, req.Send()
302}
303
304const opGetQuantumTask = "GetQuantumTask"
305
306// GetQuantumTaskRequest generates a "aws/request.Request" representing the
307// client's request for the GetQuantumTask operation. The "output" return
308// value will be populated with the request's response once the request completes
309// successfully.
310//
311// Use "Send" method on the returned Request to send the API call to the service.
312// the "output" return value is not valid until after Send returns without error.
313//
314// See GetQuantumTask for more information on using the GetQuantumTask
315// API call, and error handling.
316//
317// This method is useful when you want to inject custom logic or configuration
318// into the SDK's request lifecycle. Such as custom headers, or retry logic.
319//
320//
321//    // Example sending a request using the GetQuantumTaskRequest method.
322//    req, resp := client.GetQuantumTaskRequest(params)
323//
324//    err := req.Send()
325//    if err == nil { // resp is now filled
326//        fmt.Println(resp)
327//    }
328//
329// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask
330func (c *Braket) GetQuantumTaskRequest(input *GetQuantumTaskInput) (req *request.Request, output *GetQuantumTaskOutput) {
331	op := &request.Operation{
332		Name:       opGetQuantumTask,
333		HTTPMethod: "GET",
334		HTTPPath:   "/quantum-task/{quantumTaskArn}",
335	}
336
337	if input == nil {
338		input = &GetQuantumTaskInput{}
339	}
340
341	output = &GetQuantumTaskOutput{}
342	req = c.newRequest(op, input, output)
343	return
344}
345
346// GetQuantumTask API operation for Braket.
347//
348// Retrieves the specified quantum task.
349//
350// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
351// with awserr.Error's Code and Message methods to get detailed information about
352// the error.
353//
354// See the AWS API reference guide for Braket's
355// API operation GetQuantumTask for usage and error information.
356//
357// Returned Error Types:
358//   * ResourceNotFoundException
359//   The specified resource was not found.
360//
361//   * AccessDeniedException
362//   You do not have sufficient access to perform this action.
363//
364//   * ThrottlingException
365//   The throttling rate limit is met.
366//
367//   * InternalServiceException
368//   The request processing has failed because of an unknown error, exception,
369//   or failure.
370//
371//   * ValidationException
372//   The input fails to satisfy the constraints specified by an AWS service.
373//
374// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/GetQuantumTask
375func (c *Braket) GetQuantumTask(input *GetQuantumTaskInput) (*GetQuantumTaskOutput, error) {
376	req, out := c.GetQuantumTaskRequest(input)
377	return out, req.Send()
378}
379
380// GetQuantumTaskWithContext is the same as GetQuantumTask with the addition of
381// the ability to pass a context and additional request options.
382//
383// See GetQuantumTask for details on how to use this API operation.
384//
385// The context must be non-nil and will be used for request cancellation. If
386// the context is nil a panic will occur. In the future the SDK may create
387// sub-contexts for http.Requests. See https://golang.org/pkg/context/
388// for more information on using Contexts.
389func (c *Braket) GetQuantumTaskWithContext(ctx aws.Context, input *GetQuantumTaskInput, opts ...request.Option) (*GetQuantumTaskOutput, error) {
390	req, out := c.GetQuantumTaskRequest(input)
391	req.SetContext(ctx)
392	req.ApplyOptions(opts...)
393	return out, req.Send()
394}
395
396const opListTagsForResource = "ListTagsForResource"
397
398// ListTagsForResourceRequest generates a "aws/request.Request" representing the
399// client's request for the ListTagsForResource operation. The "output" return
400// value will be populated with the request's response once the request completes
401// successfully.
402//
403// Use "Send" method on the returned Request to send the API call to the service.
404// the "output" return value is not valid until after Send returns without error.
405//
406// See ListTagsForResource for more information on using the ListTagsForResource
407// API call, and error handling.
408//
409// This method is useful when you want to inject custom logic or configuration
410// into the SDK's request lifecycle. Such as custom headers, or retry logic.
411//
412//
413//    // Example sending a request using the ListTagsForResourceRequest method.
414//    req, resp := client.ListTagsForResourceRequest(params)
415//
416//    err := req.Send()
417//    if err == nil { // resp is now filled
418//        fmt.Println(resp)
419//    }
420//
421// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource
422func (c *Braket) ListTagsForResourceRequest(input *ListTagsForResourceInput) (req *request.Request, output *ListTagsForResourceOutput) {
423	op := &request.Operation{
424		Name:       opListTagsForResource,
425		HTTPMethod: "GET",
426		HTTPPath:   "/tags/{resourceArn}",
427	}
428
429	if input == nil {
430		input = &ListTagsForResourceInput{}
431	}
432
433	output = &ListTagsForResourceOutput{}
434	req = c.newRequest(op, input, output)
435	return
436}
437
438// ListTagsForResource API operation for Braket.
439//
440// Shows the tags associated with this resource.
441//
442// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
443// with awserr.Error's Code and Message methods to get detailed information about
444// the error.
445//
446// See the AWS API reference guide for Braket's
447// API operation ListTagsForResource for usage and error information.
448//
449// Returned Error Types:
450//   * ResourceNotFoundException
451//   The specified resource was not found.
452//
453//   * InternalServiceException
454//   The request processing has failed because of an unknown error, exception,
455//   or failure.
456//
457//   * ValidationException
458//   The input fails to satisfy the constraints specified by an AWS service.
459//
460// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/ListTagsForResource
461func (c *Braket) ListTagsForResource(input *ListTagsForResourceInput) (*ListTagsForResourceOutput, error) {
462	req, out := c.ListTagsForResourceRequest(input)
463	return out, req.Send()
464}
465
466// ListTagsForResourceWithContext is the same as ListTagsForResource with the addition of
467// the ability to pass a context and additional request options.
468//
469// See ListTagsForResource for details on how to use this API operation.
470//
471// The context must be non-nil and will be used for request cancellation. If
472// the context is nil a panic will occur. In the future the SDK may create
473// sub-contexts for http.Requests. See https://golang.org/pkg/context/
474// for more information on using Contexts.
475func (c *Braket) ListTagsForResourceWithContext(ctx aws.Context, input *ListTagsForResourceInput, opts ...request.Option) (*ListTagsForResourceOutput, error) {
476	req, out := c.ListTagsForResourceRequest(input)
477	req.SetContext(ctx)
478	req.ApplyOptions(opts...)
479	return out, req.Send()
480}
481
482const opSearchDevices = "SearchDevices"
483
484// SearchDevicesRequest generates a "aws/request.Request" representing the
485// client's request for the SearchDevices operation. The "output" return
486// value will be populated with the request's response once the request completes
487// successfully.
488//
489// Use "Send" method on the returned Request to send the API call to the service.
490// the "output" return value is not valid until after Send returns without error.
491//
492// See SearchDevices for more information on using the SearchDevices
493// API call, and error handling.
494//
495// This method is useful when you want to inject custom logic or configuration
496// into the SDK's request lifecycle. Such as custom headers, or retry logic.
497//
498//
499//    // Example sending a request using the SearchDevicesRequest method.
500//    req, resp := client.SearchDevicesRequest(params)
501//
502//    err := req.Send()
503//    if err == nil { // resp is now filled
504//        fmt.Println(resp)
505//    }
506//
507// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchDevices
508func (c *Braket) SearchDevicesRequest(input *SearchDevicesInput) (req *request.Request, output *SearchDevicesOutput) {
509	op := &request.Operation{
510		Name:       opSearchDevices,
511		HTTPMethod: "POST",
512		HTTPPath:   "/devices",
513		Paginator: &request.Paginator{
514			InputTokens:     []string{"nextToken"},
515			OutputTokens:    []string{"nextToken"},
516			LimitToken:      "maxResults",
517			TruncationToken: "",
518		},
519	}
520
521	if input == nil {
522		input = &SearchDevicesInput{}
523	}
524
525	output = &SearchDevicesOutput{}
526	req = c.newRequest(op, input, output)
527	return
528}
529
530// SearchDevices API operation for Braket.
531//
532// Searches for devices using the specified filters.
533//
534// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
535// with awserr.Error's Code and Message methods to get detailed information about
536// the error.
537//
538// See the AWS API reference guide for Braket's
539// API operation SearchDevices for usage and error information.
540//
541// Returned Error Types:
542//   * AccessDeniedException
543//   You do not have sufficient access to perform this action.
544//
545//   * ThrottlingException
546//   The throttling rate limit is met.
547//
548//   * InternalServiceException
549//   The request processing has failed because of an unknown error, exception,
550//   or failure.
551//
552//   * ValidationException
553//   The input fails to satisfy the constraints specified by an AWS service.
554//
555// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchDevices
556func (c *Braket) SearchDevices(input *SearchDevicesInput) (*SearchDevicesOutput, error) {
557	req, out := c.SearchDevicesRequest(input)
558	return out, req.Send()
559}
560
561// SearchDevicesWithContext is the same as SearchDevices with the addition of
562// the ability to pass a context and additional request options.
563//
564// See SearchDevices for details on how to use this API operation.
565//
566// The context must be non-nil and will be used for request cancellation. If
567// the context is nil a panic will occur. In the future the SDK may create
568// sub-contexts for http.Requests. See https://golang.org/pkg/context/
569// for more information on using Contexts.
570func (c *Braket) SearchDevicesWithContext(ctx aws.Context, input *SearchDevicesInput, opts ...request.Option) (*SearchDevicesOutput, error) {
571	req, out := c.SearchDevicesRequest(input)
572	req.SetContext(ctx)
573	req.ApplyOptions(opts...)
574	return out, req.Send()
575}
576
577// SearchDevicesPages iterates over the pages of a SearchDevices operation,
578// calling the "fn" function with the response data for each page. To stop
579// iterating, return false from the fn function.
580//
581// See SearchDevices method for more information on how to use this operation.
582//
583// Note: This operation can generate multiple requests to a service.
584//
585//    // Example iterating over at most 3 pages of a SearchDevices operation.
586//    pageNum := 0
587//    err := client.SearchDevicesPages(params,
588//        func(page *braket.SearchDevicesOutput, lastPage bool) bool {
589//            pageNum++
590//            fmt.Println(page)
591//            return pageNum <= 3
592//        })
593//
594func (c *Braket) SearchDevicesPages(input *SearchDevicesInput, fn func(*SearchDevicesOutput, bool) bool) error {
595	return c.SearchDevicesPagesWithContext(aws.BackgroundContext(), input, fn)
596}
597
598// SearchDevicesPagesWithContext same as SearchDevicesPages except
599// it takes a Context and allows setting request options on the pages.
600//
601// The context must be non-nil and will be used for request cancellation. If
602// the context is nil a panic will occur. In the future the SDK may create
603// sub-contexts for http.Requests. See https://golang.org/pkg/context/
604// for more information on using Contexts.
605func (c *Braket) SearchDevicesPagesWithContext(ctx aws.Context, input *SearchDevicesInput, fn func(*SearchDevicesOutput, bool) bool, opts ...request.Option) error {
606	p := request.Pagination{
607		NewRequest: func() (*request.Request, error) {
608			var inCpy *SearchDevicesInput
609			if input != nil {
610				tmp := *input
611				inCpy = &tmp
612			}
613			req, _ := c.SearchDevicesRequest(inCpy)
614			req.SetContext(ctx)
615			req.ApplyOptions(opts...)
616			return req, nil
617		},
618	}
619
620	for p.Next() {
621		if !fn(p.Page().(*SearchDevicesOutput), !p.HasNextPage()) {
622			break
623		}
624	}
625
626	return p.Err()
627}
628
629const opSearchQuantumTasks = "SearchQuantumTasks"
630
631// SearchQuantumTasksRequest generates a "aws/request.Request" representing the
632// client's request for the SearchQuantumTasks operation. The "output" return
633// value will be populated with the request's response once the request completes
634// successfully.
635//
636// Use "Send" method on the returned Request to send the API call to the service.
637// the "output" return value is not valid until after Send returns without error.
638//
639// See SearchQuantumTasks for more information on using the SearchQuantumTasks
640// API call, and error handling.
641//
642// This method is useful when you want to inject custom logic or configuration
643// into the SDK's request lifecycle. Such as custom headers, or retry logic.
644//
645//
646//    // Example sending a request using the SearchQuantumTasksRequest method.
647//    req, resp := client.SearchQuantumTasksRequest(params)
648//
649//    err := req.Send()
650//    if err == nil { // resp is now filled
651//        fmt.Println(resp)
652//    }
653//
654// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks
655func (c *Braket) SearchQuantumTasksRequest(input *SearchQuantumTasksInput) (req *request.Request, output *SearchQuantumTasksOutput) {
656	op := &request.Operation{
657		Name:       opSearchQuantumTasks,
658		HTTPMethod: "POST",
659		HTTPPath:   "/quantum-tasks",
660		Paginator: &request.Paginator{
661			InputTokens:     []string{"nextToken"},
662			OutputTokens:    []string{"nextToken"},
663			LimitToken:      "maxResults",
664			TruncationToken: "",
665		},
666	}
667
668	if input == nil {
669		input = &SearchQuantumTasksInput{}
670	}
671
672	output = &SearchQuantumTasksOutput{}
673	req = c.newRequest(op, input, output)
674	return
675}
676
677// SearchQuantumTasks API operation for Braket.
678//
679// Searches for tasks that match the specified filter values.
680//
681// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
682// with awserr.Error's Code and Message methods to get detailed information about
683// the error.
684//
685// See the AWS API reference guide for Braket's
686// API operation SearchQuantumTasks for usage and error information.
687//
688// Returned Error Types:
689//   * AccessDeniedException
690//   You do not have sufficient access to perform this action.
691//
692//   * ThrottlingException
693//   The throttling rate limit is met.
694//
695//   * InternalServiceException
696//   The request processing has failed because of an unknown error, exception,
697//   or failure.
698//
699//   * ValidationException
700//   The input fails to satisfy the constraints specified by an AWS service.
701//
702// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/SearchQuantumTasks
703func (c *Braket) SearchQuantumTasks(input *SearchQuantumTasksInput) (*SearchQuantumTasksOutput, error) {
704	req, out := c.SearchQuantumTasksRequest(input)
705	return out, req.Send()
706}
707
708// SearchQuantumTasksWithContext is the same as SearchQuantumTasks with the addition of
709// the ability to pass a context and additional request options.
710//
711// See SearchQuantumTasks for details on how to use this API operation.
712//
713// The context must be non-nil and will be used for request cancellation. If
714// the context is nil a panic will occur. In the future the SDK may create
715// sub-contexts for http.Requests. See https://golang.org/pkg/context/
716// for more information on using Contexts.
717func (c *Braket) SearchQuantumTasksWithContext(ctx aws.Context, input *SearchQuantumTasksInput, opts ...request.Option) (*SearchQuantumTasksOutput, error) {
718	req, out := c.SearchQuantumTasksRequest(input)
719	req.SetContext(ctx)
720	req.ApplyOptions(opts...)
721	return out, req.Send()
722}
723
724// SearchQuantumTasksPages iterates over the pages of a SearchQuantumTasks operation,
725// calling the "fn" function with the response data for each page. To stop
726// iterating, return false from the fn function.
727//
728// See SearchQuantumTasks method for more information on how to use this operation.
729//
730// Note: This operation can generate multiple requests to a service.
731//
732//    // Example iterating over at most 3 pages of a SearchQuantumTasks operation.
733//    pageNum := 0
734//    err := client.SearchQuantumTasksPages(params,
735//        func(page *braket.SearchQuantumTasksOutput, lastPage bool) bool {
736//            pageNum++
737//            fmt.Println(page)
738//            return pageNum <= 3
739//        })
740//
741func (c *Braket) SearchQuantumTasksPages(input *SearchQuantumTasksInput, fn func(*SearchQuantumTasksOutput, bool) bool) error {
742	return c.SearchQuantumTasksPagesWithContext(aws.BackgroundContext(), input, fn)
743}
744
745// SearchQuantumTasksPagesWithContext same as SearchQuantumTasksPages except
746// it takes a Context and allows setting request options on the pages.
747//
748// The context must be non-nil and will be used for request cancellation. If
749// the context is nil a panic will occur. In the future the SDK may create
750// sub-contexts for http.Requests. See https://golang.org/pkg/context/
751// for more information on using Contexts.
752func (c *Braket) SearchQuantumTasksPagesWithContext(ctx aws.Context, input *SearchQuantumTasksInput, fn func(*SearchQuantumTasksOutput, bool) bool, opts ...request.Option) error {
753	p := request.Pagination{
754		NewRequest: func() (*request.Request, error) {
755			var inCpy *SearchQuantumTasksInput
756			if input != nil {
757				tmp := *input
758				inCpy = &tmp
759			}
760			req, _ := c.SearchQuantumTasksRequest(inCpy)
761			req.SetContext(ctx)
762			req.ApplyOptions(opts...)
763			return req, nil
764		},
765	}
766
767	for p.Next() {
768		if !fn(p.Page().(*SearchQuantumTasksOutput), !p.HasNextPage()) {
769			break
770		}
771	}
772
773	return p.Err()
774}
775
776const opTagResource = "TagResource"
777
778// TagResourceRequest generates a "aws/request.Request" representing the
779// client's request for the TagResource operation. The "output" return
780// value will be populated with the request's response once the request completes
781// successfully.
782//
783// Use "Send" method on the returned Request to send the API call to the service.
784// the "output" return value is not valid until after Send returns without error.
785//
786// See TagResource for more information on using the TagResource
787// API call, and error handling.
788//
789// This method is useful when you want to inject custom logic or configuration
790// into the SDK's request lifecycle. Such as custom headers, or retry logic.
791//
792//
793//    // Example sending a request using the TagResourceRequest method.
794//    req, resp := client.TagResourceRequest(params)
795//
796//    err := req.Send()
797//    if err == nil { // resp is now filled
798//        fmt.Println(resp)
799//    }
800//
801// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource
802func (c *Braket) TagResourceRequest(input *TagResourceInput) (req *request.Request, output *TagResourceOutput) {
803	op := &request.Operation{
804		Name:       opTagResource,
805		HTTPMethod: "POST",
806		HTTPPath:   "/tags/{resourceArn}",
807	}
808
809	if input == nil {
810		input = &TagResourceInput{}
811	}
812
813	output = &TagResourceOutput{}
814	req = c.newRequest(op, input, output)
815	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
816	return
817}
818
819// TagResource API operation for Braket.
820//
821// Add a tag to the specified resource.
822//
823// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
824// with awserr.Error's Code and Message methods to get detailed information about
825// the error.
826//
827// See the AWS API reference guide for Braket's
828// API operation TagResource for usage and error information.
829//
830// Returned Error Types:
831//   * ResourceNotFoundException
832//   The specified resource was not found.
833//
834//   * InternalServiceException
835//   The request processing has failed because of an unknown error, exception,
836//   or failure.
837//
838//   * ValidationException
839//   The input fails to satisfy the constraints specified by an AWS service.
840//
841// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/TagResource
842func (c *Braket) TagResource(input *TagResourceInput) (*TagResourceOutput, error) {
843	req, out := c.TagResourceRequest(input)
844	return out, req.Send()
845}
846
847// TagResourceWithContext is the same as TagResource with the addition of
848// the ability to pass a context and additional request options.
849//
850// See TagResource for details on how to use this API operation.
851//
852// The context must be non-nil and will be used for request cancellation. If
853// the context is nil a panic will occur. In the future the SDK may create
854// sub-contexts for http.Requests. See https://golang.org/pkg/context/
855// for more information on using Contexts.
856func (c *Braket) TagResourceWithContext(ctx aws.Context, input *TagResourceInput, opts ...request.Option) (*TagResourceOutput, error) {
857	req, out := c.TagResourceRequest(input)
858	req.SetContext(ctx)
859	req.ApplyOptions(opts...)
860	return out, req.Send()
861}
862
863const opUntagResource = "UntagResource"
864
865// UntagResourceRequest generates a "aws/request.Request" representing the
866// client's request for the UntagResource operation. The "output" return
867// value will be populated with the request's response once the request completes
868// successfully.
869//
870// Use "Send" method on the returned Request to send the API call to the service.
871// the "output" return value is not valid until after Send returns without error.
872//
873// See UntagResource for more information on using the UntagResource
874// API call, and error handling.
875//
876// This method is useful when you want to inject custom logic or configuration
877// into the SDK's request lifecycle. Such as custom headers, or retry logic.
878//
879//
880//    // Example sending a request using the UntagResourceRequest method.
881//    req, resp := client.UntagResourceRequest(params)
882//
883//    err := req.Send()
884//    if err == nil { // resp is now filled
885//        fmt.Println(resp)
886//    }
887//
888// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource
889func (c *Braket) UntagResourceRequest(input *UntagResourceInput) (req *request.Request, output *UntagResourceOutput) {
890	op := &request.Operation{
891		Name:       opUntagResource,
892		HTTPMethod: "DELETE",
893		HTTPPath:   "/tags/{resourceArn}",
894	}
895
896	if input == nil {
897		input = &UntagResourceInput{}
898	}
899
900	output = &UntagResourceOutput{}
901	req = c.newRequest(op, input, output)
902	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
903	return
904}
905
906// UntagResource API operation for Braket.
907//
908// Remove tags from a resource.
909//
910// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
911// with awserr.Error's Code and Message methods to get detailed information about
912// the error.
913//
914// See the AWS API reference guide for Braket's
915// API operation UntagResource for usage and error information.
916//
917// Returned Error Types:
918//   * ResourceNotFoundException
919//   The specified resource was not found.
920//
921//   * InternalServiceException
922//   The request processing has failed because of an unknown error, exception,
923//   or failure.
924//
925//   * ValidationException
926//   The input fails to satisfy the constraints specified by an AWS service.
927//
928// See also, https://docs.aws.amazon.com/goto/WebAPI/braket-2019-09-01/UntagResource
929func (c *Braket) UntagResource(input *UntagResourceInput) (*UntagResourceOutput, error) {
930	req, out := c.UntagResourceRequest(input)
931	return out, req.Send()
932}
933
934// UntagResourceWithContext is the same as UntagResource with the addition of
935// the ability to pass a context and additional request options.
936//
937// See UntagResource for details on how to use this API operation.
938//
939// The context must be non-nil and will be used for request cancellation. If
940// the context is nil a panic will occur. In the future the SDK may create
941// sub-contexts for http.Requests. See https://golang.org/pkg/context/
942// for more information on using Contexts.
943func (c *Braket) UntagResourceWithContext(ctx aws.Context, input *UntagResourceInput, opts ...request.Option) (*UntagResourceOutput, error) {
944	req, out := c.UntagResourceRequest(input)
945	req.SetContext(ctx)
946	req.ApplyOptions(opts...)
947	return out, req.Send()
948}
949
950// You do not have sufficient access to perform this action.
951type AccessDeniedException struct {
952	_            struct{}                  `type:"structure"`
953	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
954
955	Message_ *string `locationName:"message" type:"string"`
956}
957
958// String returns the string representation
959func (s AccessDeniedException) String() string {
960	return awsutil.Prettify(s)
961}
962
963// GoString returns the string representation
964func (s AccessDeniedException) GoString() string {
965	return s.String()
966}
967
968func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
969	return &AccessDeniedException{
970		RespMetadata: v,
971	}
972}
973
974// Code returns the exception type name.
975func (s *AccessDeniedException) Code() string {
976	return "AccessDeniedException"
977}
978
979// Message returns the exception's message.
980func (s *AccessDeniedException) Message() string {
981	if s.Message_ != nil {
982		return *s.Message_
983	}
984	return ""
985}
986
987// OrigErr always returns nil, satisfies awserr.Error interface.
988func (s *AccessDeniedException) OrigErr() error {
989	return nil
990}
991
992func (s *AccessDeniedException) Error() string {
993	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
994}
995
996// Status code returns the HTTP status code for the request's response error.
997func (s *AccessDeniedException) StatusCode() int {
998	return s.RespMetadata.StatusCode
999}
1000
1001// RequestID returns the service's response RequestID for request.
1002func (s *AccessDeniedException) RequestID() string {
1003	return s.RespMetadata.RequestID
1004}
1005
1006type CancelQuantumTaskInput struct {
1007	_ struct{} `type:"structure"`
1008
1009	// The client token associated with the request.
1010	ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"`
1011
1012	// The ARN of the task to cancel.
1013	//
1014	// QuantumTaskArn is a required field
1015	QuantumTaskArn *string `location:"uri" locationName:"quantumTaskArn" min:"1" type:"string" required:"true"`
1016}
1017
1018// String returns the string representation
1019func (s CancelQuantumTaskInput) String() string {
1020	return awsutil.Prettify(s)
1021}
1022
1023// GoString returns the string representation
1024func (s CancelQuantumTaskInput) GoString() string {
1025	return s.String()
1026}
1027
1028// Validate inspects the fields of the type to determine if they are valid.
1029func (s *CancelQuantumTaskInput) Validate() error {
1030	invalidParams := request.ErrInvalidParams{Context: "CancelQuantumTaskInput"}
1031	if s.ClientToken != nil && len(*s.ClientToken) < 1 {
1032		invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
1033	}
1034	if s.QuantumTaskArn == nil {
1035		invalidParams.Add(request.NewErrParamRequired("QuantumTaskArn"))
1036	}
1037	if s.QuantumTaskArn != nil && len(*s.QuantumTaskArn) < 1 {
1038		invalidParams.Add(request.NewErrParamMinLen("QuantumTaskArn", 1))
1039	}
1040
1041	if invalidParams.Len() > 0 {
1042		return invalidParams
1043	}
1044	return nil
1045}
1046
1047// SetClientToken sets the ClientToken field's value.
1048func (s *CancelQuantumTaskInput) SetClientToken(v string) *CancelQuantumTaskInput {
1049	s.ClientToken = &v
1050	return s
1051}
1052
1053// SetQuantumTaskArn sets the QuantumTaskArn field's value.
1054func (s *CancelQuantumTaskInput) SetQuantumTaskArn(v string) *CancelQuantumTaskInput {
1055	s.QuantumTaskArn = &v
1056	return s
1057}
1058
1059type CancelQuantumTaskOutput struct {
1060	_ struct{} `type:"structure"`
1061
1062	// The status of the cancellation request.
1063	//
1064	// CancellationStatus is a required field
1065	CancellationStatus *string `locationName:"cancellationStatus" type:"string" required:"true" enum:"CancellationStatus"`
1066
1067	// The ARN of the task.
1068	//
1069	// QuantumTaskArn is a required field
1070	QuantumTaskArn *string `locationName:"quantumTaskArn" min:"1" type:"string" required:"true"`
1071}
1072
1073// String returns the string representation
1074func (s CancelQuantumTaskOutput) String() string {
1075	return awsutil.Prettify(s)
1076}
1077
1078// GoString returns the string representation
1079func (s CancelQuantumTaskOutput) GoString() string {
1080	return s.String()
1081}
1082
1083// SetCancellationStatus sets the CancellationStatus field's value.
1084func (s *CancelQuantumTaskOutput) SetCancellationStatus(v string) *CancelQuantumTaskOutput {
1085	s.CancellationStatus = &v
1086	return s
1087}
1088
1089// SetQuantumTaskArn sets the QuantumTaskArn field's value.
1090func (s *CancelQuantumTaskOutput) SetQuantumTaskArn(v string) *CancelQuantumTaskOutput {
1091	s.QuantumTaskArn = &v
1092	return s
1093}
1094
1095// An error occurred due to a conflict.
1096type ConflictException struct {
1097	_            struct{}                  `type:"structure"`
1098	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
1099
1100	Message_ *string `locationName:"message" type:"string"`
1101}
1102
1103// String returns the string representation
1104func (s ConflictException) String() string {
1105	return awsutil.Prettify(s)
1106}
1107
1108// GoString returns the string representation
1109func (s ConflictException) GoString() string {
1110	return s.String()
1111}
1112
1113func newErrorConflictException(v protocol.ResponseMetadata) error {
1114	return &ConflictException{
1115		RespMetadata: v,
1116	}
1117}
1118
1119// Code returns the exception type name.
1120func (s *ConflictException) Code() string {
1121	return "ConflictException"
1122}
1123
1124// Message returns the exception's message.
1125func (s *ConflictException) Message() string {
1126	if s.Message_ != nil {
1127		return *s.Message_
1128	}
1129	return ""
1130}
1131
1132// OrigErr always returns nil, satisfies awserr.Error interface.
1133func (s *ConflictException) OrigErr() error {
1134	return nil
1135}
1136
1137func (s *ConflictException) Error() string {
1138	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
1139}
1140
1141// Status code returns the HTTP status code for the request's response error.
1142func (s *ConflictException) StatusCode() int {
1143	return s.RespMetadata.StatusCode
1144}
1145
1146// RequestID returns the service's response RequestID for request.
1147func (s *ConflictException) RequestID() string {
1148	return s.RespMetadata.RequestID
1149}
1150
1151type CreateQuantumTaskInput struct {
1152	_ struct{} `type:"structure"`
1153
1154	// The action associated with the task.
1155	//
1156	// Action is a required field
1157	Action aws.JSONValue `locationName:"action" type:"jsonvalue" required:"true"`
1158
1159	// The client token associated with the request.
1160	ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"`
1161
1162	// The ARN of the device to run the task on.
1163	//
1164	// DeviceArn is a required field
1165	DeviceArn *string `locationName:"deviceArn" min:"1" type:"string" required:"true"`
1166
1167	// The parameters for the device to run the task on.
1168	DeviceParameters aws.JSONValue `locationName:"deviceParameters" type:"jsonvalue"`
1169
1170	// The S3 bucket to store task result files in.
1171	//
1172	// OutputS3Bucket is a required field
1173	OutputS3Bucket *string `locationName:"outputS3Bucket" min:"3" type:"string" required:"true"`
1174
1175	// The key prefix for the location in the S3 bucket to store task results in.
1176	//
1177	// OutputS3KeyPrefix is a required field
1178	OutputS3KeyPrefix *string `locationName:"outputS3KeyPrefix" min:"1" type:"string" required:"true"`
1179
1180	// The number of shots to use for the task.
1181	//
1182	// Shots is a required field
1183	Shots *int64 `locationName:"shots" type:"long" required:"true"`
1184
1185	// Tags to be added to the quantum task you're creating.
1186	Tags map[string]*string `locationName:"tags" type:"map"`
1187}
1188
1189// String returns the string representation
1190func (s CreateQuantumTaskInput) String() string {
1191	return awsutil.Prettify(s)
1192}
1193
1194// GoString returns the string representation
1195func (s CreateQuantumTaskInput) GoString() string {
1196	return s.String()
1197}
1198
1199// Validate inspects the fields of the type to determine if they are valid.
1200func (s *CreateQuantumTaskInput) Validate() error {
1201	invalidParams := request.ErrInvalidParams{Context: "CreateQuantumTaskInput"}
1202	if s.Action == nil {
1203		invalidParams.Add(request.NewErrParamRequired("Action"))
1204	}
1205	if s.ClientToken != nil && len(*s.ClientToken) < 1 {
1206		invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
1207	}
1208	if s.DeviceArn == nil {
1209		invalidParams.Add(request.NewErrParamRequired("DeviceArn"))
1210	}
1211	if s.DeviceArn != nil && len(*s.DeviceArn) < 1 {
1212		invalidParams.Add(request.NewErrParamMinLen("DeviceArn", 1))
1213	}
1214	if s.OutputS3Bucket == nil {
1215		invalidParams.Add(request.NewErrParamRequired("OutputS3Bucket"))
1216	}
1217	if s.OutputS3Bucket != nil && len(*s.OutputS3Bucket) < 3 {
1218		invalidParams.Add(request.NewErrParamMinLen("OutputS3Bucket", 3))
1219	}
1220	if s.OutputS3KeyPrefix == nil {
1221		invalidParams.Add(request.NewErrParamRequired("OutputS3KeyPrefix"))
1222	}
1223	if s.OutputS3KeyPrefix != nil && len(*s.OutputS3KeyPrefix) < 1 {
1224		invalidParams.Add(request.NewErrParamMinLen("OutputS3KeyPrefix", 1))
1225	}
1226	if s.Shots == nil {
1227		invalidParams.Add(request.NewErrParamRequired("Shots"))
1228	}
1229
1230	if invalidParams.Len() > 0 {
1231		return invalidParams
1232	}
1233	return nil
1234}
1235
1236// SetAction sets the Action field's value.
1237func (s *CreateQuantumTaskInput) SetAction(v aws.JSONValue) *CreateQuantumTaskInput {
1238	s.Action = v
1239	return s
1240}
1241
1242// SetClientToken sets the ClientToken field's value.
1243func (s *CreateQuantumTaskInput) SetClientToken(v string) *CreateQuantumTaskInput {
1244	s.ClientToken = &v
1245	return s
1246}
1247
1248// SetDeviceArn sets the DeviceArn field's value.
1249func (s *CreateQuantumTaskInput) SetDeviceArn(v string) *CreateQuantumTaskInput {
1250	s.DeviceArn = &v
1251	return s
1252}
1253
1254// SetDeviceParameters sets the DeviceParameters field's value.
1255func (s *CreateQuantumTaskInput) SetDeviceParameters(v aws.JSONValue) *CreateQuantumTaskInput {
1256	s.DeviceParameters = v
1257	return s
1258}
1259
1260// SetOutputS3Bucket sets the OutputS3Bucket field's value.
1261func (s *CreateQuantumTaskInput) SetOutputS3Bucket(v string) *CreateQuantumTaskInput {
1262	s.OutputS3Bucket = &v
1263	return s
1264}
1265
1266// SetOutputS3KeyPrefix sets the OutputS3KeyPrefix field's value.
1267func (s *CreateQuantumTaskInput) SetOutputS3KeyPrefix(v string) *CreateQuantumTaskInput {
1268	s.OutputS3KeyPrefix = &v
1269	return s
1270}
1271
1272// SetShots sets the Shots field's value.
1273func (s *CreateQuantumTaskInput) SetShots(v int64) *CreateQuantumTaskInput {
1274	s.Shots = &v
1275	return s
1276}
1277
1278// SetTags sets the Tags field's value.
1279func (s *CreateQuantumTaskInput) SetTags(v map[string]*string) *CreateQuantumTaskInput {
1280	s.Tags = v
1281	return s
1282}
1283
1284type CreateQuantumTaskOutput struct {
1285	_ struct{} `type:"structure"`
1286
1287	// The ARN of the task created by the request.
1288	//
1289	// QuantumTaskArn is a required field
1290	QuantumTaskArn *string `locationName:"quantumTaskArn" min:"1" type:"string" required:"true"`
1291}
1292
1293// String returns the string representation
1294func (s CreateQuantumTaskOutput) String() string {
1295	return awsutil.Prettify(s)
1296}
1297
1298// GoString returns the string representation
1299func (s CreateQuantumTaskOutput) GoString() string {
1300	return s.String()
1301}
1302
1303// SetQuantumTaskArn sets the QuantumTaskArn field's value.
1304func (s *CreateQuantumTaskOutput) SetQuantumTaskArn(v string) *CreateQuantumTaskOutput {
1305	s.QuantumTaskArn = &v
1306	return s
1307}
1308
1309// The specified device is currently offline.
1310type DeviceOfflineException struct {
1311	_            struct{}                  `type:"structure"`
1312	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
1313
1314	Message_ *string `locationName:"message" type:"string"`
1315}
1316
1317// String returns the string representation
1318func (s DeviceOfflineException) String() string {
1319	return awsutil.Prettify(s)
1320}
1321
1322// GoString returns the string representation
1323func (s DeviceOfflineException) GoString() string {
1324	return s.String()
1325}
1326
1327func newErrorDeviceOfflineException(v protocol.ResponseMetadata) error {
1328	return &DeviceOfflineException{
1329		RespMetadata: v,
1330	}
1331}
1332
1333// Code returns the exception type name.
1334func (s *DeviceOfflineException) Code() string {
1335	return "DeviceOfflineException"
1336}
1337
1338// Message returns the exception's message.
1339func (s *DeviceOfflineException) Message() string {
1340	if s.Message_ != nil {
1341		return *s.Message_
1342	}
1343	return ""
1344}
1345
1346// OrigErr always returns nil, satisfies awserr.Error interface.
1347func (s *DeviceOfflineException) OrigErr() error {
1348	return nil
1349}
1350
1351func (s *DeviceOfflineException) Error() string {
1352	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
1353}
1354
1355// Status code returns the HTTP status code for the request's response error.
1356func (s *DeviceOfflineException) StatusCode() int {
1357	return s.RespMetadata.StatusCode
1358}
1359
1360// RequestID returns the service's response RequestID for request.
1361func (s *DeviceOfflineException) RequestID() string {
1362	return s.RespMetadata.RequestID
1363}
1364
1365// The specified device has been retired.
1366type DeviceRetiredException struct {
1367	_            struct{}                  `type:"structure"`
1368	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
1369
1370	Message_ *string `locationName:"message" type:"string"`
1371}
1372
1373// String returns the string representation
1374func (s DeviceRetiredException) String() string {
1375	return awsutil.Prettify(s)
1376}
1377
1378// GoString returns the string representation
1379func (s DeviceRetiredException) GoString() string {
1380	return s.String()
1381}
1382
1383func newErrorDeviceRetiredException(v protocol.ResponseMetadata) error {
1384	return &DeviceRetiredException{
1385		RespMetadata: v,
1386	}
1387}
1388
1389// Code returns the exception type name.
1390func (s *DeviceRetiredException) Code() string {
1391	return "DeviceRetiredException"
1392}
1393
1394// Message returns the exception's message.
1395func (s *DeviceRetiredException) Message() string {
1396	if s.Message_ != nil {
1397		return *s.Message_
1398	}
1399	return ""
1400}
1401
1402// OrigErr always returns nil, satisfies awserr.Error interface.
1403func (s *DeviceRetiredException) OrigErr() error {
1404	return nil
1405}
1406
1407func (s *DeviceRetiredException) Error() string {
1408	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
1409}
1410
1411// Status code returns the HTTP status code for the request's response error.
1412func (s *DeviceRetiredException) StatusCode() int {
1413	return s.RespMetadata.StatusCode
1414}
1415
1416// RequestID returns the service's response RequestID for request.
1417func (s *DeviceRetiredException) RequestID() string {
1418	return s.RespMetadata.RequestID
1419}
1420
1421// Includes information about the device.
1422type DeviceSummary struct {
1423	_ struct{} `type:"structure"`
1424
1425	// The ARN of the device.
1426	//
1427	// DeviceArn is a required field
1428	DeviceArn *string `locationName:"deviceArn" min:"1" type:"string" required:"true"`
1429
1430	// The name of the device.
1431	//
1432	// DeviceName is a required field
1433	DeviceName *string `locationName:"deviceName" type:"string" required:"true"`
1434
1435	// The status of the device.
1436	//
1437	// DeviceStatus is a required field
1438	DeviceStatus *string `locationName:"deviceStatus" type:"string" required:"true" enum:"DeviceStatus"`
1439
1440	// The type of the device.
1441	//
1442	// DeviceType is a required field
1443	DeviceType *string `locationName:"deviceType" type:"string" required:"true" enum:"DeviceType"`
1444
1445	// The provider of the device.
1446	//
1447	// ProviderName is a required field
1448	ProviderName *string `locationName:"providerName" type:"string" required:"true"`
1449}
1450
1451// String returns the string representation
1452func (s DeviceSummary) String() string {
1453	return awsutil.Prettify(s)
1454}
1455
1456// GoString returns the string representation
1457func (s DeviceSummary) GoString() string {
1458	return s.String()
1459}
1460
1461// SetDeviceArn sets the DeviceArn field's value.
1462func (s *DeviceSummary) SetDeviceArn(v string) *DeviceSummary {
1463	s.DeviceArn = &v
1464	return s
1465}
1466
1467// SetDeviceName sets the DeviceName field's value.
1468func (s *DeviceSummary) SetDeviceName(v string) *DeviceSummary {
1469	s.DeviceName = &v
1470	return s
1471}
1472
1473// SetDeviceStatus sets the DeviceStatus field's value.
1474func (s *DeviceSummary) SetDeviceStatus(v string) *DeviceSummary {
1475	s.DeviceStatus = &v
1476	return s
1477}
1478
1479// SetDeviceType sets the DeviceType field's value.
1480func (s *DeviceSummary) SetDeviceType(v string) *DeviceSummary {
1481	s.DeviceType = &v
1482	return s
1483}
1484
1485// SetProviderName sets the ProviderName field's value.
1486func (s *DeviceSummary) SetProviderName(v string) *DeviceSummary {
1487	s.ProviderName = &v
1488	return s
1489}
1490
1491type GetDeviceInput struct {
1492	_ struct{} `type:"structure"`
1493
1494	// The ARN of the device to retrieve.
1495	//
1496	// DeviceArn is a required field
1497	DeviceArn *string `location:"uri" locationName:"deviceArn" min:"1" type:"string" required:"true"`
1498}
1499
1500// String returns the string representation
1501func (s GetDeviceInput) String() string {
1502	return awsutil.Prettify(s)
1503}
1504
1505// GoString returns the string representation
1506func (s GetDeviceInput) GoString() string {
1507	return s.String()
1508}
1509
1510// Validate inspects the fields of the type to determine if they are valid.
1511func (s *GetDeviceInput) Validate() error {
1512	invalidParams := request.ErrInvalidParams{Context: "GetDeviceInput"}
1513	if s.DeviceArn == nil {
1514		invalidParams.Add(request.NewErrParamRequired("DeviceArn"))
1515	}
1516	if s.DeviceArn != nil && len(*s.DeviceArn) < 1 {
1517		invalidParams.Add(request.NewErrParamMinLen("DeviceArn", 1))
1518	}
1519
1520	if invalidParams.Len() > 0 {
1521		return invalidParams
1522	}
1523	return nil
1524}
1525
1526// SetDeviceArn sets the DeviceArn field's value.
1527func (s *GetDeviceInput) SetDeviceArn(v string) *GetDeviceInput {
1528	s.DeviceArn = &v
1529	return s
1530}
1531
1532type GetDeviceOutput struct {
1533	_ struct{} `type:"structure"`
1534
1535	// The ARN of the device.
1536	//
1537	// DeviceArn is a required field
1538	DeviceArn *string `locationName:"deviceArn" min:"1" type:"string" required:"true"`
1539
1540	// Details about the capabilities of the device.
1541	//
1542	// DeviceCapabilities is a required field
1543	DeviceCapabilities aws.JSONValue `locationName:"deviceCapabilities" type:"jsonvalue" required:"true"`
1544
1545	// The name of the device.
1546	//
1547	// DeviceName is a required field
1548	DeviceName *string `locationName:"deviceName" type:"string" required:"true"`
1549
1550	// The status of the device.
1551	//
1552	// DeviceStatus is a required field
1553	DeviceStatus *string `locationName:"deviceStatus" type:"string" required:"true" enum:"DeviceStatus"`
1554
1555	// The type of the device.
1556	//
1557	// DeviceType is a required field
1558	DeviceType *string `locationName:"deviceType" type:"string" required:"true" enum:"DeviceType"`
1559
1560	// The name of the partner company for the device.
1561	//
1562	// ProviderName is a required field
1563	ProviderName *string `locationName:"providerName" type:"string" required:"true"`
1564}
1565
1566// String returns the string representation
1567func (s GetDeviceOutput) String() string {
1568	return awsutil.Prettify(s)
1569}
1570
1571// GoString returns the string representation
1572func (s GetDeviceOutput) GoString() string {
1573	return s.String()
1574}
1575
1576// SetDeviceArn sets the DeviceArn field's value.
1577func (s *GetDeviceOutput) SetDeviceArn(v string) *GetDeviceOutput {
1578	s.DeviceArn = &v
1579	return s
1580}
1581
1582// SetDeviceCapabilities sets the DeviceCapabilities field's value.
1583func (s *GetDeviceOutput) SetDeviceCapabilities(v aws.JSONValue) *GetDeviceOutput {
1584	s.DeviceCapabilities = v
1585	return s
1586}
1587
1588// SetDeviceName sets the DeviceName field's value.
1589func (s *GetDeviceOutput) SetDeviceName(v string) *GetDeviceOutput {
1590	s.DeviceName = &v
1591	return s
1592}
1593
1594// SetDeviceStatus sets the DeviceStatus field's value.
1595func (s *GetDeviceOutput) SetDeviceStatus(v string) *GetDeviceOutput {
1596	s.DeviceStatus = &v
1597	return s
1598}
1599
1600// SetDeviceType sets the DeviceType field's value.
1601func (s *GetDeviceOutput) SetDeviceType(v string) *GetDeviceOutput {
1602	s.DeviceType = &v
1603	return s
1604}
1605
1606// SetProviderName sets the ProviderName field's value.
1607func (s *GetDeviceOutput) SetProviderName(v string) *GetDeviceOutput {
1608	s.ProviderName = &v
1609	return s
1610}
1611
1612type GetQuantumTaskInput struct {
1613	_ struct{} `type:"structure"`
1614
1615	// the ARN of the task to retrieve.
1616	//
1617	// QuantumTaskArn is a required field
1618	QuantumTaskArn *string `location:"uri" locationName:"quantumTaskArn" min:"1" type:"string" required:"true"`
1619}
1620
1621// String returns the string representation
1622func (s GetQuantumTaskInput) String() string {
1623	return awsutil.Prettify(s)
1624}
1625
1626// GoString returns the string representation
1627func (s GetQuantumTaskInput) GoString() string {
1628	return s.String()
1629}
1630
1631// Validate inspects the fields of the type to determine if they are valid.
1632func (s *GetQuantumTaskInput) Validate() error {
1633	invalidParams := request.ErrInvalidParams{Context: "GetQuantumTaskInput"}
1634	if s.QuantumTaskArn == nil {
1635		invalidParams.Add(request.NewErrParamRequired("QuantumTaskArn"))
1636	}
1637	if s.QuantumTaskArn != nil && len(*s.QuantumTaskArn) < 1 {
1638		invalidParams.Add(request.NewErrParamMinLen("QuantumTaskArn", 1))
1639	}
1640
1641	if invalidParams.Len() > 0 {
1642		return invalidParams
1643	}
1644	return nil
1645}
1646
1647// SetQuantumTaskArn sets the QuantumTaskArn field's value.
1648func (s *GetQuantumTaskInput) SetQuantumTaskArn(v string) *GetQuantumTaskInput {
1649	s.QuantumTaskArn = &v
1650	return s
1651}
1652
1653type GetQuantumTaskOutput struct {
1654	_ struct{} `type:"structure"`
1655
1656	// The time at which the task was created.
1657	//
1658	// CreatedAt is a required field
1659	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
1660
1661	// The ARN of the device the task was run on.
1662	//
1663	// DeviceArn is a required field
1664	DeviceArn *string `locationName:"deviceArn" min:"1" type:"string" required:"true"`
1665
1666	// The parameters for the device on which the task ran.
1667	//
1668	// DeviceParameters is a required field
1669	DeviceParameters aws.JSONValue `locationName:"deviceParameters" type:"jsonvalue" required:"true"`
1670
1671	// The time at which the task ended.
1672	EndedAt *time.Time `locationName:"endedAt" type:"timestamp" timestampFormat:"iso8601"`
1673
1674	// The reason that a task failed.
1675	FailureReason *string `locationName:"failureReason" type:"string"`
1676
1677	// The S3 bucket where task results are stored.
1678	//
1679	// OutputS3Bucket is a required field
1680	OutputS3Bucket *string `locationName:"outputS3Bucket" type:"string" required:"true"`
1681
1682	// The folder in the S3 bucket where task results are stored.
1683	//
1684	// OutputS3Directory is a required field
1685	OutputS3Directory *string `locationName:"outputS3Directory" type:"string" required:"true"`
1686
1687	// The ARN of the task.
1688	//
1689	// QuantumTaskArn is a required field
1690	QuantumTaskArn *string `locationName:"quantumTaskArn" min:"1" type:"string" required:"true"`
1691
1692	// The number of shots used in the task.
1693	//
1694	// Shots is a required field
1695	Shots *int64 `locationName:"shots" type:"long" required:"true"`
1696
1697	// The status of the task.
1698	//
1699	// Status is a required field
1700	Status *string `locationName:"status" type:"string" required:"true" enum:"QuantumTaskStatus"`
1701
1702	// The tags that belong to this task.
1703	Tags map[string]*string `locationName:"tags" type:"map"`
1704}
1705
1706// String returns the string representation
1707func (s GetQuantumTaskOutput) String() string {
1708	return awsutil.Prettify(s)
1709}
1710
1711// GoString returns the string representation
1712func (s GetQuantumTaskOutput) GoString() string {
1713	return s.String()
1714}
1715
1716// SetCreatedAt sets the CreatedAt field's value.
1717func (s *GetQuantumTaskOutput) SetCreatedAt(v time.Time) *GetQuantumTaskOutput {
1718	s.CreatedAt = &v
1719	return s
1720}
1721
1722// SetDeviceArn sets the DeviceArn field's value.
1723func (s *GetQuantumTaskOutput) SetDeviceArn(v string) *GetQuantumTaskOutput {
1724	s.DeviceArn = &v
1725	return s
1726}
1727
1728// SetDeviceParameters sets the DeviceParameters field's value.
1729func (s *GetQuantumTaskOutput) SetDeviceParameters(v aws.JSONValue) *GetQuantumTaskOutput {
1730	s.DeviceParameters = v
1731	return s
1732}
1733
1734// SetEndedAt sets the EndedAt field's value.
1735func (s *GetQuantumTaskOutput) SetEndedAt(v time.Time) *GetQuantumTaskOutput {
1736	s.EndedAt = &v
1737	return s
1738}
1739
1740// SetFailureReason sets the FailureReason field's value.
1741func (s *GetQuantumTaskOutput) SetFailureReason(v string) *GetQuantumTaskOutput {
1742	s.FailureReason = &v
1743	return s
1744}
1745
1746// SetOutputS3Bucket sets the OutputS3Bucket field's value.
1747func (s *GetQuantumTaskOutput) SetOutputS3Bucket(v string) *GetQuantumTaskOutput {
1748	s.OutputS3Bucket = &v
1749	return s
1750}
1751
1752// SetOutputS3Directory sets the OutputS3Directory field's value.
1753func (s *GetQuantumTaskOutput) SetOutputS3Directory(v string) *GetQuantumTaskOutput {
1754	s.OutputS3Directory = &v
1755	return s
1756}
1757
1758// SetQuantumTaskArn sets the QuantumTaskArn field's value.
1759func (s *GetQuantumTaskOutput) SetQuantumTaskArn(v string) *GetQuantumTaskOutput {
1760	s.QuantumTaskArn = &v
1761	return s
1762}
1763
1764// SetShots sets the Shots field's value.
1765func (s *GetQuantumTaskOutput) SetShots(v int64) *GetQuantumTaskOutput {
1766	s.Shots = &v
1767	return s
1768}
1769
1770// SetStatus sets the Status field's value.
1771func (s *GetQuantumTaskOutput) SetStatus(v string) *GetQuantumTaskOutput {
1772	s.Status = &v
1773	return s
1774}
1775
1776// SetTags sets the Tags field's value.
1777func (s *GetQuantumTaskOutput) SetTags(v map[string]*string) *GetQuantumTaskOutput {
1778	s.Tags = v
1779	return s
1780}
1781
1782// The request processing has failed because of an unknown error, exception,
1783// or failure.
1784type InternalServiceException struct {
1785	_            struct{}                  `type:"structure"`
1786	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
1787
1788	Message_ *string `locationName:"message" type:"string"`
1789}
1790
1791// String returns the string representation
1792func (s InternalServiceException) String() string {
1793	return awsutil.Prettify(s)
1794}
1795
1796// GoString returns the string representation
1797func (s InternalServiceException) GoString() string {
1798	return s.String()
1799}
1800
1801func newErrorInternalServiceException(v protocol.ResponseMetadata) error {
1802	return &InternalServiceException{
1803		RespMetadata: v,
1804	}
1805}
1806
1807// Code returns the exception type name.
1808func (s *InternalServiceException) Code() string {
1809	return "InternalServiceException"
1810}
1811
1812// Message returns the exception's message.
1813func (s *InternalServiceException) Message() string {
1814	if s.Message_ != nil {
1815		return *s.Message_
1816	}
1817	return ""
1818}
1819
1820// OrigErr always returns nil, satisfies awserr.Error interface.
1821func (s *InternalServiceException) OrigErr() error {
1822	return nil
1823}
1824
1825func (s *InternalServiceException) Error() string {
1826	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
1827}
1828
1829// Status code returns the HTTP status code for the request's response error.
1830func (s *InternalServiceException) StatusCode() int {
1831	return s.RespMetadata.StatusCode
1832}
1833
1834// RequestID returns the service's response RequestID for request.
1835func (s *InternalServiceException) RequestID() string {
1836	return s.RespMetadata.RequestID
1837}
1838
1839type ListTagsForResourceInput struct {
1840	_ struct{} `type:"structure"`
1841
1842	// Specify the resourceArn for the resource whose tags to display.
1843	//
1844	// ResourceArn is a required field
1845	ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
1846}
1847
1848// String returns the string representation
1849func (s ListTagsForResourceInput) String() string {
1850	return awsutil.Prettify(s)
1851}
1852
1853// GoString returns the string representation
1854func (s ListTagsForResourceInput) GoString() string {
1855	return s.String()
1856}
1857
1858// Validate inspects the fields of the type to determine if they are valid.
1859func (s *ListTagsForResourceInput) Validate() error {
1860	invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
1861	if s.ResourceArn == nil {
1862		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
1863	}
1864	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
1865		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
1866	}
1867
1868	if invalidParams.Len() > 0 {
1869		return invalidParams
1870	}
1871	return nil
1872}
1873
1874// SetResourceArn sets the ResourceArn field's value.
1875func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
1876	s.ResourceArn = &v
1877	return s
1878}
1879
1880type ListTagsForResourceOutput struct {
1881	_ struct{} `type:"structure"`
1882
1883	// Displays the key, value pairs of tags associated with this resource.
1884	Tags map[string]*string `locationName:"tags" type:"map"`
1885}
1886
1887// String returns the string representation
1888func (s ListTagsForResourceOutput) String() string {
1889	return awsutil.Prettify(s)
1890}
1891
1892// GoString returns the string representation
1893func (s ListTagsForResourceOutput) GoString() string {
1894	return s.String()
1895}
1896
1897// SetTags sets the Tags field's value.
1898func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
1899	s.Tags = v
1900	return s
1901}
1902
1903// Includes information about a quantum task.
1904type QuantumTaskSummary struct {
1905	_ struct{} `type:"structure"`
1906
1907	// The time at which the task was created.
1908	//
1909	// CreatedAt is a required field
1910	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
1911
1912	// The ARN of the device the task ran on.
1913	//
1914	// DeviceArn is a required field
1915	DeviceArn *string `locationName:"deviceArn" min:"1" type:"string" required:"true"`
1916
1917	// The time at which the task finished.
1918	EndedAt *time.Time `locationName:"endedAt" type:"timestamp" timestampFormat:"iso8601"`
1919
1920	// The S3 bucket where the task result file is stored..
1921	//
1922	// OutputS3Bucket is a required field
1923	OutputS3Bucket *string `locationName:"outputS3Bucket" type:"string" required:"true"`
1924
1925	// The folder in the S3 bucket where the task result file is stored.
1926	//
1927	// OutputS3Directory is a required field
1928	OutputS3Directory *string `locationName:"outputS3Directory" type:"string" required:"true"`
1929
1930	// The ARN of the task.
1931	//
1932	// QuantumTaskArn is a required field
1933	QuantumTaskArn *string `locationName:"quantumTaskArn" min:"1" type:"string" required:"true"`
1934
1935	// The shots used for the task.
1936	//
1937	// Shots is a required field
1938	Shots *int64 `locationName:"shots" type:"long" required:"true"`
1939
1940	// The status of the task.
1941	//
1942	// Status is a required field
1943	Status *string `locationName:"status" type:"string" required:"true" enum:"QuantumTaskStatus"`
1944
1945	// Displays the key, value pairs of tags associated with this quantum task.
1946	Tags map[string]*string `locationName:"tags" type:"map"`
1947}
1948
1949// String returns the string representation
1950func (s QuantumTaskSummary) String() string {
1951	return awsutil.Prettify(s)
1952}
1953
1954// GoString returns the string representation
1955func (s QuantumTaskSummary) GoString() string {
1956	return s.String()
1957}
1958
1959// SetCreatedAt sets the CreatedAt field's value.
1960func (s *QuantumTaskSummary) SetCreatedAt(v time.Time) *QuantumTaskSummary {
1961	s.CreatedAt = &v
1962	return s
1963}
1964
1965// SetDeviceArn sets the DeviceArn field's value.
1966func (s *QuantumTaskSummary) SetDeviceArn(v string) *QuantumTaskSummary {
1967	s.DeviceArn = &v
1968	return s
1969}
1970
1971// SetEndedAt sets the EndedAt field's value.
1972func (s *QuantumTaskSummary) SetEndedAt(v time.Time) *QuantumTaskSummary {
1973	s.EndedAt = &v
1974	return s
1975}
1976
1977// SetOutputS3Bucket sets the OutputS3Bucket field's value.
1978func (s *QuantumTaskSummary) SetOutputS3Bucket(v string) *QuantumTaskSummary {
1979	s.OutputS3Bucket = &v
1980	return s
1981}
1982
1983// SetOutputS3Directory sets the OutputS3Directory field's value.
1984func (s *QuantumTaskSummary) SetOutputS3Directory(v string) *QuantumTaskSummary {
1985	s.OutputS3Directory = &v
1986	return s
1987}
1988
1989// SetQuantumTaskArn sets the QuantumTaskArn field's value.
1990func (s *QuantumTaskSummary) SetQuantumTaskArn(v string) *QuantumTaskSummary {
1991	s.QuantumTaskArn = &v
1992	return s
1993}
1994
1995// SetShots sets the Shots field's value.
1996func (s *QuantumTaskSummary) SetShots(v int64) *QuantumTaskSummary {
1997	s.Shots = &v
1998	return s
1999}
2000
2001// SetStatus sets the Status field's value.
2002func (s *QuantumTaskSummary) SetStatus(v string) *QuantumTaskSummary {
2003	s.Status = &v
2004	return s
2005}
2006
2007// SetTags sets the Tags field's value.
2008func (s *QuantumTaskSummary) SetTags(v map[string]*string) *QuantumTaskSummary {
2009	s.Tags = v
2010	return s
2011}
2012
2013// The specified resource was not found.
2014type ResourceNotFoundException struct {
2015	_            struct{}                  `type:"structure"`
2016	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
2017
2018	Message_ *string `locationName:"message" type:"string"`
2019}
2020
2021// String returns the string representation
2022func (s ResourceNotFoundException) String() string {
2023	return awsutil.Prettify(s)
2024}
2025
2026// GoString returns the string representation
2027func (s ResourceNotFoundException) GoString() string {
2028	return s.String()
2029}
2030
2031func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
2032	return &ResourceNotFoundException{
2033		RespMetadata: v,
2034	}
2035}
2036
2037// Code returns the exception type name.
2038func (s *ResourceNotFoundException) Code() string {
2039	return "ResourceNotFoundException"
2040}
2041
2042// Message returns the exception's message.
2043func (s *ResourceNotFoundException) Message() string {
2044	if s.Message_ != nil {
2045		return *s.Message_
2046	}
2047	return ""
2048}
2049
2050// OrigErr always returns nil, satisfies awserr.Error interface.
2051func (s *ResourceNotFoundException) OrigErr() error {
2052	return nil
2053}
2054
2055func (s *ResourceNotFoundException) Error() string {
2056	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
2057}
2058
2059// Status code returns the HTTP status code for the request's response error.
2060func (s *ResourceNotFoundException) StatusCode() int {
2061	return s.RespMetadata.StatusCode
2062}
2063
2064// RequestID returns the service's response RequestID for request.
2065func (s *ResourceNotFoundException) RequestID() string {
2066	return s.RespMetadata.RequestID
2067}
2068
2069// The filter to use for searching devices.
2070type SearchDevicesFilter struct {
2071	_ struct{} `type:"structure"`
2072
2073	// The name to use to filter results.
2074	//
2075	// Name is a required field
2076	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
2077
2078	// The values to use to filter results.
2079	//
2080	// Values is a required field
2081	Values []*string `locationName:"values" min:"1" type:"list" required:"true"`
2082}
2083
2084// String returns the string representation
2085func (s SearchDevicesFilter) String() string {
2086	return awsutil.Prettify(s)
2087}
2088
2089// GoString returns the string representation
2090func (s SearchDevicesFilter) GoString() string {
2091	return s.String()
2092}
2093
2094// Validate inspects the fields of the type to determine if they are valid.
2095func (s *SearchDevicesFilter) Validate() error {
2096	invalidParams := request.ErrInvalidParams{Context: "SearchDevicesFilter"}
2097	if s.Name == nil {
2098		invalidParams.Add(request.NewErrParamRequired("Name"))
2099	}
2100	if s.Name != nil && len(*s.Name) < 1 {
2101		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
2102	}
2103	if s.Values == nil {
2104		invalidParams.Add(request.NewErrParamRequired("Values"))
2105	}
2106	if s.Values != nil && len(s.Values) < 1 {
2107		invalidParams.Add(request.NewErrParamMinLen("Values", 1))
2108	}
2109
2110	if invalidParams.Len() > 0 {
2111		return invalidParams
2112	}
2113	return nil
2114}
2115
2116// SetName sets the Name field's value.
2117func (s *SearchDevicesFilter) SetName(v string) *SearchDevicesFilter {
2118	s.Name = &v
2119	return s
2120}
2121
2122// SetValues sets the Values field's value.
2123func (s *SearchDevicesFilter) SetValues(v []*string) *SearchDevicesFilter {
2124	s.Values = v
2125	return s
2126}
2127
2128type SearchDevicesInput struct {
2129	_ struct{} `type:"structure"`
2130
2131	// The filter values to use to search for a device.
2132	//
2133	// Filters is a required field
2134	Filters []*SearchDevicesFilter `locationName:"filters" type:"list" required:"true"`
2135
2136	// The maximum number of results to return in the response.
2137	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
2138
2139	// A token used for pagination of results returned in the response. Use the
2140	// token returned from the previous request continue results where the previous
2141	// request ended.
2142	NextToken *string `locationName:"nextToken" type:"string"`
2143}
2144
2145// String returns the string representation
2146func (s SearchDevicesInput) String() string {
2147	return awsutil.Prettify(s)
2148}
2149
2150// GoString returns the string representation
2151func (s SearchDevicesInput) GoString() string {
2152	return s.String()
2153}
2154
2155// Validate inspects the fields of the type to determine if they are valid.
2156func (s *SearchDevicesInput) Validate() error {
2157	invalidParams := request.ErrInvalidParams{Context: "SearchDevicesInput"}
2158	if s.Filters == nil {
2159		invalidParams.Add(request.NewErrParamRequired("Filters"))
2160	}
2161	if s.MaxResults != nil && *s.MaxResults < 1 {
2162		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
2163	}
2164	if s.Filters != nil {
2165		for i, v := range s.Filters {
2166			if v == nil {
2167				continue
2168			}
2169			if err := v.Validate(); err != nil {
2170				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
2171			}
2172		}
2173	}
2174
2175	if invalidParams.Len() > 0 {
2176		return invalidParams
2177	}
2178	return nil
2179}
2180
2181// SetFilters sets the Filters field's value.
2182func (s *SearchDevicesInput) SetFilters(v []*SearchDevicesFilter) *SearchDevicesInput {
2183	s.Filters = v
2184	return s
2185}
2186
2187// SetMaxResults sets the MaxResults field's value.
2188func (s *SearchDevicesInput) SetMaxResults(v int64) *SearchDevicesInput {
2189	s.MaxResults = &v
2190	return s
2191}
2192
2193// SetNextToken sets the NextToken field's value.
2194func (s *SearchDevicesInput) SetNextToken(v string) *SearchDevicesInput {
2195	s.NextToken = &v
2196	return s
2197}
2198
2199type SearchDevicesOutput struct {
2200	_ struct{} `type:"structure"`
2201
2202	// An array of DeviceSummary objects for devices that match the specified filter
2203	// values.
2204	//
2205	// Devices is a required field
2206	Devices []*DeviceSummary `locationName:"devices" type:"list" required:"true"`
2207
2208	// A token used for pagination of results, or null if there are no additional
2209	// results. Use the token value in a subsequent request to continue results
2210	// where the previous request ended.
2211	NextToken *string `locationName:"nextToken" type:"string"`
2212}
2213
2214// String returns the string representation
2215func (s SearchDevicesOutput) String() string {
2216	return awsutil.Prettify(s)
2217}
2218
2219// GoString returns the string representation
2220func (s SearchDevicesOutput) GoString() string {
2221	return s.String()
2222}
2223
2224// SetDevices sets the Devices field's value.
2225func (s *SearchDevicesOutput) SetDevices(v []*DeviceSummary) *SearchDevicesOutput {
2226	s.Devices = v
2227	return s
2228}
2229
2230// SetNextToken sets the NextToken field's value.
2231func (s *SearchDevicesOutput) SetNextToken(v string) *SearchDevicesOutput {
2232	s.NextToken = &v
2233	return s
2234}
2235
2236// A filter to use to search for tasks.
2237type SearchQuantumTasksFilter struct {
2238	_ struct{} `type:"structure"`
2239
2240	// The name of the device used for the task.
2241	//
2242	// Name is a required field
2243	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
2244
2245	// An operator to use in the filter.
2246	//
2247	// Operator is a required field
2248	Operator *string `locationName:"operator" type:"string" required:"true" enum:"SearchQuantumTasksFilterOperator"`
2249
2250	// The values to use for the filter.
2251	//
2252	// Values is a required field
2253	Values []*string `locationName:"values" min:"1" type:"list" required:"true"`
2254}
2255
2256// String returns the string representation
2257func (s SearchQuantumTasksFilter) String() string {
2258	return awsutil.Prettify(s)
2259}
2260
2261// GoString returns the string representation
2262func (s SearchQuantumTasksFilter) GoString() string {
2263	return s.String()
2264}
2265
2266// Validate inspects the fields of the type to determine if they are valid.
2267func (s *SearchQuantumTasksFilter) Validate() error {
2268	invalidParams := request.ErrInvalidParams{Context: "SearchQuantumTasksFilter"}
2269	if s.Name == nil {
2270		invalidParams.Add(request.NewErrParamRequired("Name"))
2271	}
2272	if s.Name != nil && len(*s.Name) < 1 {
2273		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
2274	}
2275	if s.Operator == nil {
2276		invalidParams.Add(request.NewErrParamRequired("Operator"))
2277	}
2278	if s.Values == nil {
2279		invalidParams.Add(request.NewErrParamRequired("Values"))
2280	}
2281	if s.Values != nil && len(s.Values) < 1 {
2282		invalidParams.Add(request.NewErrParamMinLen("Values", 1))
2283	}
2284
2285	if invalidParams.Len() > 0 {
2286		return invalidParams
2287	}
2288	return nil
2289}
2290
2291// SetName sets the Name field's value.
2292func (s *SearchQuantumTasksFilter) SetName(v string) *SearchQuantumTasksFilter {
2293	s.Name = &v
2294	return s
2295}
2296
2297// SetOperator sets the Operator field's value.
2298func (s *SearchQuantumTasksFilter) SetOperator(v string) *SearchQuantumTasksFilter {
2299	s.Operator = &v
2300	return s
2301}
2302
2303// SetValues sets the Values field's value.
2304func (s *SearchQuantumTasksFilter) SetValues(v []*string) *SearchQuantumTasksFilter {
2305	s.Values = v
2306	return s
2307}
2308
2309type SearchQuantumTasksInput struct {
2310	_ struct{} `type:"structure"`
2311
2312	// Array of SearchQuantumTasksFilter objects.
2313	//
2314	// Filters is a required field
2315	Filters []*SearchQuantumTasksFilter `locationName:"filters" type:"list" required:"true"`
2316
2317	// Maximum number of results to return in the response.
2318	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
2319
2320	// A token used for pagination of results returned in the response. Use the
2321	// token returned from the previous request continue results where the previous
2322	// request ended.
2323	NextToken *string `locationName:"nextToken" type:"string"`
2324}
2325
2326// String returns the string representation
2327func (s SearchQuantumTasksInput) String() string {
2328	return awsutil.Prettify(s)
2329}
2330
2331// GoString returns the string representation
2332func (s SearchQuantumTasksInput) GoString() string {
2333	return s.String()
2334}
2335
2336// Validate inspects the fields of the type to determine if they are valid.
2337func (s *SearchQuantumTasksInput) Validate() error {
2338	invalidParams := request.ErrInvalidParams{Context: "SearchQuantumTasksInput"}
2339	if s.Filters == nil {
2340		invalidParams.Add(request.NewErrParamRequired("Filters"))
2341	}
2342	if s.MaxResults != nil && *s.MaxResults < 1 {
2343		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
2344	}
2345	if s.Filters != nil {
2346		for i, v := range s.Filters {
2347			if v == nil {
2348				continue
2349			}
2350			if err := v.Validate(); err != nil {
2351				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
2352			}
2353		}
2354	}
2355
2356	if invalidParams.Len() > 0 {
2357		return invalidParams
2358	}
2359	return nil
2360}
2361
2362// SetFilters sets the Filters field's value.
2363func (s *SearchQuantumTasksInput) SetFilters(v []*SearchQuantumTasksFilter) *SearchQuantumTasksInput {
2364	s.Filters = v
2365	return s
2366}
2367
2368// SetMaxResults sets the MaxResults field's value.
2369func (s *SearchQuantumTasksInput) SetMaxResults(v int64) *SearchQuantumTasksInput {
2370	s.MaxResults = &v
2371	return s
2372}
2373
2374// SetNextToken sets the NextToken field's value.
2375func (s *SearchQuantumTasksInput) SetNextToken(v string) *SearchQuantumTasksInput {
2376	s.NextToken = &v
2377	return s
2378}
2379
2380type SearchQuantumTasksOutput struct {
2381	_ struct{} `type:"structure"`
2382
2383	// A token used for pagination of results, or null if there are no additional
2384	// results. Use the token value in a subsequent request to continue results
2385	// where the previous request ended.
2386	NextToken *string `locationName:"nextToken" type:"string"`
2387
2388	// An array of QuantumTaskSummary objects for tasks that match the specified
2389	// filters.
2390	//
2391	// QuantumTasks is a required field
2392	QuantumTasks []*QuantumTaskSummary `locationName:"quantumTasks" type:"list" required:"true"`
2393}
2394
2395// String returns the string representation
2396func (s SearchQuantumTasksOutput) String() string {
2397	return awsutil.Prettify(s)
2398}
2399
2400// GoString returns the string representation
2401func (s SearchQuantumTasksOutput) GoString() string {
2402	return s.String()
2403}
2404
2405// SetNextToken sets the NextToken field's value.
2406func (s *SearchQuantumTasksOutput) SetNextToken(v string) *SearchQuantumTasksOutput {
2407	s.NextToken = &v
2408	return s
2409}
2410
2411// SetQuantumTasks sets the QuantumTasks field's value.
2412func (s *SearchQuantumTasksOutput) SetQuantumTasks(v []*QuantumTaskSummary) *SearchQuantumTasksOutput {
2413	s.QuantumTasks = v
2414	return s
2415}
2416
2417// The request failed because a service quota is exceeded.
2418type ServiceQuotaExceededException struct {
2419	_            struct{}                  `type:"structure"`
2420	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
2421
2422	Message_ *string `locationName:"message" type:"string"`
2423}
2424
2425// String returns the string representation
2426func (s ServiceQuotaExceededException) String() string {
2427	return awsutil.Prettify(s)
2428}
2429
2430// GoString returns the string representation
2431func (s ServiceQuotaExceededException) GoString() string {
2432	return s.String()
2433}
2434
2435func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
2436	return &ServiceQuotaExceededException{
2437		RespMetadata: v,
2438	}
2439}
2440
2441// Code returns the exception type name.
2442func (s *ServiceQuotaExceededException) Code() string {
2443	return "ServiceQuotaExceededException"
2444}
2445
2446// Message returns the exception's message.
2447func (s *ServiceQuotaExceededException) Message() string {
2448	if s.Message_ != nil {
2449		return *s.Message_
2450	}
2451	return ""
2452}
2453
2454// OrigErr always returns nil, satisfies awserr.Error interface.
2455func (s *ServiceQuotaExceededException) OrigErr() error {
2456	return nil
2457}
2458
2459func (s *ServiceQuotaExceededException) Error() string {
2460	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
2461}
2462
2463// Status code returns the HTTP status code for the request's response error.
2464func (s *ServiceQuotaExceededException) StatusCode() int {
2465	return s.RespMetadata.StatusCode
2466}
2467
2468// RequestID returns the service's response RequestID for request.
2469func (s *ServiceQuotaExceededException) RequestID() string {
2470	return s.RespMetadata.RequestID
2471}
2472
2473type TagResourceInput struct {
2474	_ struct{} `type:"structure"`
2475
2476	// Specify the resourceArn of the resource to which a tag will be added.
2477	//
2478	// ResourceArn is a required field
2479	ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
2480
2481	// Specify the tags to add to the resource.
2482	//
2483	// Tags is a required field
2484	Tags map[string]*string `locationName:"tags" type:"map" required:"true"`
2485}
2486
2487// String returns the string representation
2488func (s TagResourceInput) String() string {
2489	return awsutil.Prettify(s)
2490}
2491
2492// GoString returns the string representation
2493func (s TagResourceInput) GoString() string {
2494	return s.String()
2495}
2496
2497// Validate inspects the fields of the type to determine if they are valid.
2498func (s *TagResourceInput) Validate() error {
2499	invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
2500	if s.ResourceArn == nil {
2501		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
2502	}
2503	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
2504		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
2505	}
2506	if s.Tags == nil {
2507		invalidParams.Add(request.NewErrParamRequired("Tags"))
2508	}
2509
2510	if invalidParams.Len() > 0 {
2511		return invalidParams
2512	}
2513	return nil
2514}
2515
2516// SetResourceArn sets the ResourceArn field's value.
2517func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
2518	s.ResourceArn = &v
2519	return s
2520}
2521
2522// SetTags sets the Tags field's value.
2523func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
2524	s.Tags = v
2525	return s
2526}
2527
2528type TagResourceOutput struct {
2529	_ struct{} `type:"structure"`
2530}
2531
2532// String returns the string representation
2533func (s TagResourceOutput) String() string {
2534	return awsutil.Prettify(s)
2535}
2536
2537// GoString returns the string representation
2538func (s TagResourceOutput) GoString() string {
2539	return s.String()
2540}
2541
2542// The throttling rate limit is met.
2543type ThrottlingException struct {
2544	_            struct{}                  `type:"structure"`
2545	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
2546
2547	Message_ *string `locationName:"message" type:"string"`
2548}
2549
2550// String returns the string representation
2551func (s ThrottlingException) String() string {
2552	return awsutil.Prettify(s)
2553}
2554
2555// GoString returns the string representation
2556func (s ThrottlingException) GoString() string {
2557	return s.String()
2558}
2559
2560func newErrorThrottlingException(v protocol.ResponseMetadata) error {
2561	return &ThrottlingException{
2562		RespMetadata: v,
2563	}
2564}
2565
2566// Code returns the exception type name.
2567func (s *ThrottlingException) Code() string {
2568	return "ThrottlingException"
2569}
2570
2571// Message returns the exception's message.
2572func (s *ThrottlingException) Message() string {
2573	if s.Message_ != nil {
2574		return *s.Message_
2575	}
2576	return ""
2577}
2578
2579// OrigErr always returns nil, satisfies awserr.Error interface.
2580func (s *ThrottlingException) OrigErr() error {
2581	return nil
2582}
2583
2584func (s *ThrottlingException) Error() string {
2585	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
2586}
2587
2588// Status code returns the HTTP status code for the request's response error.
2589func (s *ThrottlingException) StatusCode() int {
2590	return s.RespMetadata.StatusCode
2591}
2592
2593// RequestID returns the service's response RequestID for request.
2594func (s *ThrottlingException) RequestID() string {
2595	return s.RespMetadata.RequestID
2596}
2597
2598type UntagResourceInput struct {
2599	_ struct{} `type:"structure"`
2600
2601	// Specify the resourceArn for the resource from which to remove the tags.
2602	//
2603	// ResourceArn is a required field
2604	ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
2605
2606	// Specify the keys for the tags to remove from the resource.
2607	//
2608	// TagKeys is a required field
2609	TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"`
2610}
2611
2612// String returns the string representation
2613func (s UntagResourceInput) String() string {
2614	return awsutil.Prettify(s)
2615}
2616
2617// GoString returns the string representation
2618func (s UntagResourceInput) GoString() string {
2619	return s.String()
2620}
2621
2622// Validate inspects the fields of the type to determine if they are valid.
2623func (s *UntagResourceInput) Validate() error {
2624	invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
2625	if s.ResourceArn == nil {
2626		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
2627	}
2628	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
2629		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
2630	}
2631	if s.TagKeys == nil {
2632		invalidParams.Add(request.NewErrParamRequired("TagKeys"))
2633	}
2634
2635	if invalidParams.Len() > 0 {
2636		return invalidParams
2637	}
2638	return nil
2639}
2640
2641// SetResourceArn sets the ResourceArn field's value.
2642func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
2643	s.ResourceArn = &v
2644	return s
2645}
2646
2647// SetTagKeys sets the TagKeys field's value.
2648func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
2649	s.TagKeys = v
2650	return s
2651}
2652
2653type UntagResourceOutput struct {
2654	_ struct{} `type:"structure"`
2655}
2656
2657// String returns the string representation
2658func (s UntagResourceOutput) String() string {
2659	return awsutil.Prettify(s)
2660}
2661
2662// GoString returns the string representation
2663func (s UntagResourceOutput) GoString() string {
2664	return s.String()
2665}
2666
2667// The input fails to satisfy the constraints specified by an AWS service.
2668type ValidationException struct {
2669	_            struct{}                  `type:"structure"`
2670	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
2671
2672	Message_ *string `locationName:"message" type:"string"`
2673}
2674
2675// String returns the string representation
2676func (s ValidationException) String() string {
2677	return awsutil.Prettify(s)
2678}
2679
2680// GoString returns the string representation
2681func (s ValidationException) GoString() string {
2682	return s.String()
2683}
2684
2685func newErrorValidationException(v protocol.ResponseMetadata) error {
2686	return &ValidationException{
2687		RespMetadata: v,
2688	}
2689}
2690
2691// Code returns the exception type name.
2692func (s *ValidationException) Code() string {
2693	return "ValidationException"
2694}
2695
2696// Message returns the exception's message.
2697func (s *ValidationException) Message() string {
2698	if s.Message_ != nil {
2699		return *s.Message_
2700	}
2701	return ""
2702}
2703
2704// OrigErr always returns nil, satisfies awserr.Error interface.
2705func (s *ValidationException) OrigErr() error {
2706	return nil
2707}
2708
2709func (s *ValidationException) Error() string {
2710	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
2711}
2712
2713// Status code returns the HTTP status code for the request's response error.
2714func (s *ValidationException) StatusCode() int {
2715	return s.RespMetadata.StatusCode
2716}
2717
2718// RequestID returns the service's response RequestID for request.
2719func (s *ValidationException) RequestID() string {
2720	return s.RespMetadata.RequestID
2721}
2722
2723const (
2724	// CancellationStatusCancelling is a CancellationStatus enum value
2725	CancellationStatusCancelling = "CANCELLING"
2726
2727	// CancellationStatusCancelled is a CancellationStatus enum value
2728	CancellationStatusCancelled = "CANCELLED"
2729)
2730
2731// CancellationStatus_Values returns all elements of the CancellationStatus enum
2732func CancellationStatus_Values() []string {
2733	return []string{
2734		CancellationStatusCancelling,
2735		CancellationStatusCancelled,
2736	}
2737}
2738
2739const (
2740	// DeviceStatusOnline is a DeviceStatus enum value
2741	DeviceStatusOnline = "ONLINE"
2742
2743	// DeviceStatusOffline is a DeviceStatus enum value
2744	DeviceStatusOffline = "OFFLINE"
2745
2746	// DeviceStatusRetired is a DeviceStatus enum value
2747	DeviceStatusRetired = "RETIRED"
2748)
2749
2750// DeviceStatus_Values returns all elements of the DeviceStatus enum
2751func DeviceStatus_Values() []string {
2752	return []string{
2753		DeviceStatusOnline,
2754		DeviceStatusOffline,
2755		DeviceStatusRetired,
2756	}
2757}
2758
2759const (
2760	// DeviceTypeQpu is a DeviceType enum value
2761	DeviceTypeQpu = "QPU"
2762
2763	// DeviceTypeSimulator is a DeviceType enum value
2764	DeviceTypeSimulator = "SIMULATOR"
2765)
2766
2767// DeviceType_Values returns all elements of the DeviceType enum
2768func DeviceType_Values() []string {
2769	return []string{
2770		DeviceTypeQpu,
2771		DeviceTypeSimulator,
2772	}
2773}
2774
2775const (
2776	// QuantumTaskStatusCreated is a QuantumTaskStatus enum value
2777	QuantumTaskStatusCreated = "CREATED"
2778
2779	// QuantumTaskStatusQueued is a QuantumTaskStatus enum value
2780	QuantumTaskStatusQueued = "QUEUED"
2781
2782	// QuantumTaskStatusRunning is a QuantumTaskStatus enum value
2783	QuantumTaskStatusRunning = "RUNNING"
2784
2785	// QuantumTaskStatusCompleted is a QuantumTaskStatus enum value
2786	QuantumTaskStatusCompleted = "COMPLETED"
2787
2788	// QuantumTaskStatusFailed is a QuantumTaskStatus enum value
2789	QuantumTaskStatusFailed = "FAILED"
2790
2791	// QuantumTaskStatusCancelling is a QuantumTaskStatus enum value
2792	QuantumTaskStatusCancelling = "CANCELLING"
2793
2794	// QuantumTaskStatusCancelled is a QuantumTaskStatus enum value
2795	QuantumTaskStatusCancelled = "CANCELLED"
2796)
2797
2798// QuantumTaskStatus_Values returns all elements of the QuantumTaskStatus enum
2799func QuantumTaskStatus_Values() []string {
2800	return []string{
2801		QuantumTaskStatusCreated,
2802		QuantumTaskStatusQueued,
2803		QuantumTaskStatusRunning,
2804		QuantumTaskStatusCompleted,
2805		QuantumTaskStatusFailed,
2806		QuantumTaskStatusCancelling,
2807		QuantumTaskStatusCancelled,
2808	}
2809}
2810
2811const (
2812	// SearchQuantumTasksFilterOperatorLt is a SearchQuantumTasksFilterOperator enum value
2813	SearchQuantumTasksFilterOperatorLt = "LT"
2814
2815	// SearchQuantumTasksFilterOperatorLte is a SearchQuantumTasksFilterOperator enum value
2816	SearchQuantumTasksFilterOperatorLte = "LTE"
2817
2818	// SearchQuantumTasksFilterOperatorEqual is a SearchQuantumTasksFilterOperator enum value
2819	SearchQuantumTasksFilterOperatorEqual = "EQUAL"
2820
2821	// SearchQuantumTasksFilterOperatorGt is a SearchQuantumTasksFilterOperator enum value
2822	SearchQuantumTasksFilterOperatorGt = "GT"
2823
2824	// SearchQuantumTasksFilterOperatorGte is a SearchQuantumTasksFilterOperator enum value
2825	SearchQuantumTasksFilterOperatorGte = "GTE"
2826
2827	// SearchQuantumTasksFilterOperatorBetween is a SearchQuantumTasksFilterOperator enum value
2828	SearchQuantumTasksFilterOperatorBetween = "BETWEEN"
2829)
2830
2831// SearchQuantumTasksFilterOperator_Values returns all elements of the SearchQuantumTasksFilterOperator enum
2832func SearchQuantumTasksFilterOperator_Values() []string {
2833	return []string{
2834		SearchQuantumTasksFilterOperatorLt,
2835		SearchQuantumTasksFilterOperatorLte,
2836		SearchQuantumTasksFilterOperatorEqual,
2837		SearchQuantumTasksFilterOperatorGt,
2838		SearchQuantumTasksFilterOperatorGte,
2839		SearchQuantumTasksFilterOperatorBetween,
2840	}
2841}
2842