github.com/aavshr/aws-sdk-go@v1.41.3/service/braket/api.go (about)

     1  // Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
     2  
     3  package braket
     4  
     5  import (
     6  	"fmt"
     7  	"time"
     8  
     9  	"github.com/aavshr/aws-sdk-go/aws"
    10  	"github.com/aavshr/aws-sdk-go/aws/awsutil"
    11  	"github.com/aavshr/aws-sdk-go/aws/request"
    12  	"github.com/aavshr/aws-sdk-go/private/protocol"
    13  	"github.com/aavshr/aws-sdk-go/private/protocol/restjson"
    14  )
    15  
    16  const 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
    42  func (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
    90  func (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.
   104  func (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  
   111  const 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
   137  func (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
   185  func (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.
   199  func (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  
   206  const 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
   232  func (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
   283  func (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.
   297  func (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  
   304  const 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
   330  func (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
   375  func (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.
   389  func (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  
   396  const 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
   422  func (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
   461  func (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.
   475  func (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  
   482  const 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
   508  func (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
   556  func (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.
   570  func (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  //
   594  func (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.
   605  func (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  
   629  const 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
   655  func (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
   703  func (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.
   717  func (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  //
   741  func (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.
   752  func (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  
   776  const 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
   802  func (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
   842  func (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.
   856  func (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  
   863  const 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
   889  func (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
   929  func (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.
   943  func (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.
   951  type 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.
   959  //
   960  // API parameter values that are decorated as "sensitive" in the API will not
   961  // be included in the string output. The member name will be present, but the
   962  // value will be replaced with "sensitive".
   963  func (s AccessDeniedException) String() string {
   964  	return awsutil.Prettify(s)
   965  }
   966  
   967  // GoString returns the string representation.
   968  //
   969  // API parameter values that are decorated as "sensitive" in the API will not
   970  // be included in the string output. The member name will be present, but the
   971  // value will be replaced with "sensitive".
   972  func (s AccessDeniedException) GoString() string {
   973  	return s.String()
   974  }
   975  
   976  func newErrorAccessDeniedException(v protocol.ResponseMetadata) error {
   977  	return &AccessDeniedException{
   978  		RespMetadata: v,
   979  	}
   980  }
   981  
   982  // Code returns the exception type name.
   983  func (s *AccessDeniedException) Code() string {
   984  	return "AccessDeniedException"
   985  }
   986  
   987  // Message returns the exception's message.
   988  func (s *AccessDeniedException) Message() string {
   989  	if s.Message_ != nil {
   990  		return *s.Message_
   991  	}
   992  	return ""
   993  }
   994  
   995  // OrigErr always returns nil, satisfies awserr.Error interface.
   996  func (s *AccessDeniedException) OrigErr() error {
   997  	return nil
   998  }
   999  
  1000  func (s *AccessDeniedException) Error() string {
  1001  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  1002  }
  1003  
  1004  // Status code returns the HTTP status code for the request's response error.
  1005  func (s *AccessDeniedException) StatusCode() int {
  1006  	return s.RespMetadata.StatusCode
  1007  }
  1008  
  1009  // RequestID returns the service's response RequestID for request.
  1010  func (s *AccessDeniedException) RequestID() string {
  1011  	return s.RespMetadata.RequestID
  1012  }
  1013  
  1014  type CancelQuantumTaskInput struct {
  1015  	_ struct{} `type:"structure"`
  1016  
  1017  	// The client token associated with the request.
  1018  	ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"`
  1019  
  1020  	// The ARN of the task to cancel.
  1021  	//
  1022  	// QuantumTaskArn is a required field
  1023  	QuantumTaskArn *string `location:"uri" locationName:"quantumTaskArn" min:"1" type:"string" required:"true"`
  1024  }
  1025  
  1026  // String returns the string representation.
  1027  //
  1028  // API parameter values that are decorated as "sensitive" in the API will not
  1029  // be included in the string output. The member name will be present, but the
  1030  // value will be replaced with "sensitive".
  1031  func (s CancelQuantumTaskInput) String() string {
  1032  	return awsutil.Prettify(s)
  1033  }
  1034  
  1035  // GoString returns the string representation.
  1036  //
  1037  // API parameter values that are decorated as "sensitive" in the API will not
  1038  // be included in the string output. The member name will be present, but the
  1039  // value will be replaced with "sensitive".
  1040  func (s CancelQuantumTaskInput) GoString() string {
  1041  	return s.String()
  1042  }
  1043  
  1044  // Validate inspects the fields of the type to determine if they are valid.
  1045  func (s *CancelQuantumTaskInput) Validate() error {
  1046  	invalidParams := request.ErrInvalidParams{Context: "CancelQuantumTaskInput"}
  1047  	if s.ClientToken != nil && len(*s.ClientToken) < 1 {
  1048  		invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
  1049  	}
  1050  	if s.QuantumTaskArn == nil {
  1051  		invalidParams.Add(request.NewErrParamRequired("QuantumTaskArn"))
  1052  	}
  1053  	if s.QuantumTaskArn != nil && len(*s.QuantumTaskArn) < 1 {
  1054  		invalidParams.Add(request.NewErrParamMinLen("QuantumTaskArn", 1))
  1055  	}
  1056  
  1057  	if invalidParams.Len() > 0 {
  1058  		return invalidParams
  1059  	}
  1060  	return nil
  1061  }
  1062  
  1063  // SetClientToken sets the ClientToken field's value.
  1064  func (s *CancelQuantumTaskInput) SetClientToken(v string) *CancelQuantumTaskInput {
  1065  	s.ClientToken = &v
  1066  	return s
  1067  }
  1068  
  1069  // SetQuantumTaskArn sets the QuantumTaskArn field's value.
  1070  func (s *CancelQuantumTaskInput) SetQuantumTaskArn(v string) *CancelQuantumTaskInput {
  1071  	s.QuantumTaskArn = &v
  1072  	return s
  1073  }
  1074  
  1075  type CancelQuantumTaskOutput struct {
  1076  	_ struct{} `type:"structure"`
  1077  
  1078  	// The status of the cancellation request.
  1079  	//
  1080  	// CancellationStatus is a required field
  1081  	CancellationStatus *string `locationName:"cancellationStatus" type:"string" required:"true" enum:"CancellationStatus"`
  1082  
  1083  	// The ARN of the task.
  1084  	//
  1085  	// QuantumTaskArn is a required field
  1086  	QuantumTaskArn *string `locationName:"quantumTaskArn" min:"1" type:"string" required:"true"`
  1087  }
  1088  
  1089  // String returns the string representation.
  1090  //
  1091  // API parameter values that are decorated as "sensitive" in the API will not
  1092  // be included in the string output. The member name will be present, but the
  1093  // value will be replaced with "sensitive".
  1094  func (s CancelQuantumTaskOutput) String() string {
  1095  	return awsutil.Prettify(s)
  1096  }
  1097  
  1098  // GoString returns the string representation.
  1099  //
  1100  // API parameter values that are decorated as "sensitive" in the API will not
  1101  // be included in the string output. The member name will be present, but the
  1102  // value will be replaced with "sensitive".
  1103  func (s CancelQuantumTaskOutput) GoString() string {
  1104  	return s.String()
  1105  }
  1106  
  1107  // SetCancellationStatus sets the CancellationStatus field's value.
  1108  func (s *CancelQuantumTaskOutput) SetCancellationStatus(v string) *CancelQuantumTaskOutput {
  1109  	s.CancellationStatus = &v
  1110  	return s
  1111  }
  1112  
  1113  // SetQuantumTaskArn sets the QuantumTaskArn field's value.
  1114  func (s *CancelQuantumTaskOutput) SetQuantumTaskArn(v string) *CancelQuantumTaskOutput {
  1115  	s.QuantumTaskArn = &v
  1116  	return s
  1117  }
  1118  
  1119  // An error occurred due to a conflict.
  1120  type ConflictException struct {
  1121  	_            struct{}                  `type:"structure"`
  1122  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  1123  
  1124  	Message_ *string `locationName:"message" type:"string"`
  1125  }
  1126  
  1127  // String returns the string representation.
  1128  //
  1129  // API parameter values that are decorated as "sensitive" in the API will not
  1130  // be included in the string output. The member name will be present, but the
  1131  // value will be replaced with "sensitive".
  1132  func (s ConflictException) String() string {
  1133  	return awsutil.Prettify(s)
  1134  }
  1135  
  1136  // GoString returns the string representation.
  1137  //
  1138  // API parameter values that are decorated as "sensitive" in the API will not
  1139  // be included in the string output. The member name will be present, but the
  1140  // value will be replaced with "sensitive".
  1141  func (s ConflictException) GoString() string {
  1142  	return s.String()
  1143  }
  1144  
  1145  func newErrorConflictException(v protocol.ResponseMetadata) error {
  1146  	return &ConflictException{
  1147  		RespMetadata: v,
  1148  	}
  1149  }
  1150  
  1151  // Code returns the exception type name.
  1152  func (s *ConflictException) Code() string {
  1153  	return "ConflictException"
  1154  }
  1155  
  1156  // Message returns the exception's message.
  1157  func (s *ConflictException) Message() string {
  1158  	if s.Message_ != nil {
  1159  		return *s.Message_
  1160  	}
  1161  	return ""
  1162  }
  1163  
  1164  // OrigErr always returns nil, satisfies awserr.Error interface.
  1165  func (s *ConflictException) OrigErr() error {
  1166  	return nil
  1167  }
  1168  
  1169  func (s *ConflictException) Error() string {
  1170  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  1171  }
  1172  
  1173  // Status code returns the HTTP status code for the request's response error.
  1174  func (s *ConflictException) StatusCode() int {
  1175  	return s.RespMetadata.StatusCode
  1176  }
  1177  
  1178  // RequestID returns the service's response RequestID for request.
  1179  func (s *ConflictException) RequestID() string {
  1180  	return s.RespMetadata.RequestID
  1181  }
  1182  
  1183  type CreateQuantumTaskInput struct {
  1184  	_ struct{} `type:"structure"`
  1185  
  1186  	// The action associated with the task.
  1187  	//
  1188  	// Action is a required field
  1189  	Action aws.JSONValue `locationName:"action" type:"jsonvalue" required:"true"`
  1190  
  1191  	// The client token associated with the request.
  1192  	ClientToken *string `locationName:"clientToken" min:"1" type:"string" idempotencyToken:"true"`
  1193  
  1194  	// The ARN of the device to run the task on.
  1195  	//
  1196  	// DeviceArn is a required field
  1197  	DeviceArn *string `locationName:"deviceArn" min:"1" type:"string" required:"true"`
  1198  
  1199  	// The parameters for the device to run the task on.
  1200  	DeviceParameters aws.JSONValue `locationName:"deviceParameters" type:"jsonvalue"`
  1201  
  1202  	// The S3 bucket to store task result files in.
  1203  	//
  1204  	// OutputS3Bucket is a required field
  1205  	OutputS3Bucket *string `locationName:"outputS3Bucket" min:"3" type:"string" required:"true"`
  1206  
  1207  	// The key prefix for the location in the S3 bucket to store task results in.
  1208  	//
  1209  	// OutputS3KeyPrefix is a required field
  1210  	OutputS3KeyPrefix *string `locationName:"outputS3KeyPrefix" min:"1" type:"string" required:"true"`
  1211  
  1212  	// The number of shots to use for the task.
  1213  	//
  1214  	// Shots is a required field
  1215  	Shots *int64 `locationName:"shots" type:"long" required:"true"`
  1216  
  1217  	// Tags to be added to the quantum task you're creating.
  1218  	Tags map[string]*string `locationName:"tags" type:"map"`
  1219  }
  1220  
  1221  // String returns the string representation.
  1222  //
  1223  // API parameter values that are decorated as "sensitive" in the API will not
  1224  // be included in the string output. The member name will be present, but the
  1225  // value will be replaced with "sensitive".
  1226  func (s CreateQuantumTaskInput) String() string {
  1227  	return awsutil.Prettify(s)
  1228  }
  1229  
  1230  // GoString returns the string representation.
  1231  //
  1232  // API parameter values that are decorated as "sensitive" in the API will not
  1233  // be included in the string output. The member name will be present, but the
  1234  // value will be replaced with "sensitive".
  1235  func (s CreateQuantumTaskInput) GoString() string {
  1236  	return s.String()
  1237  }
  1238  
  1239  // Validate inspects the fields of the type to determine if they are valid.
  1240  func (s *CreateQuantumTaskInput) Validate() error {
  1241  	invalidParams := request.ErrInvalidParams{Context: "CreateQuantumTaskInput"}
  1242  	if s.Action == nil {
  1243  		invalidParams.Add(request.NewErrParamRequired("Action"))
  1244  	}
  1245  	if s.ClientToken != nil && len(*s.ClientToken) < 1 {
  1246  		invalidParams.Add(request.NewErrParamMinLen("ClientToken", 1))
  1247  	}
  1248  	if s.DeviceArn == nil {
  1249  		invalidParams.Add(request.NewErrParamRequired("DeviceArn"))
  1250  	}
  1251  	if s.DeviceArn != nil && len(*s.DeviceArn) < 1 {
  1252  		invalidParams.Add(request.NewErrParamMinLen("DeviceArn", 1))
  1253  	}
  1254  	if s.OutputS3Bucket == nil {
  1255  		invalidParams.Add(request.NewErrParamRequired("OutputS3Bucket"))
  1256  	}
  1257  	if s.OutputS3Bucket != nil && len(*s.OutputS3Bucket) < 3 {
  1258  		invalidParams.Add(request.NewErrParamMinLen("OutputS3Bucket", 3))
  1259  	}
  1260  	if s.OutputS3KeyPrefix == nil {
  1261  		invalidParams.Add(request.NewErrParamRequired("OutputS3KeyPrefix"))
  1262  	}
  1263  	if s.OutputS3KeyPrefix != nil && len(*s.OutputS3KeyPrefix) < 1 {
  1264  		invalidParams.Add(request.NewErrParamMinLen("OutputS3KeyPrefix", 1))
  1265  	}
  1266  	if s.Shots == nil {
  1267  		invalidParams.Add(request.NewErrParamRequired("Shots"))
  1268  	}
  1269  
  1270  	if invalidParams.Len() > 0 {
  1271  		return invalidParams
  1272  	}
  1273  	return nil
  1274  }
  1275  
  1276  // SetAction sets the Action field's value.
  1277  func (s *CreateQuantumTaskInput) SetAction(v aws.JSONValue) *CreateQuantumTaskInput {
  1278  	s.Action = v
  1279  	return s
  1280  }
  1281  
  1282  // SetClientToken sets the ClientToken field's value.
  1283  func (s *CreateQuantumTaskInput) SetClientToken(v string) *CreateQuantumTaskInput {
  1284  	s.ClientToken = &v
  1285  	return s
  1286  }
  1287  
  1288  // SetDeviceArn sets the DeviceArn field's value.
  1289  func (s *CreateQuantumTaskInput) SetDeviceArn(v string) *CreateQuantumTaskInput {
  1290  	s.DeviceArn = &v
  1291  	return s
  1292  }
  1293  
  1294  // SetDeviceParameters sets the DeviceParameters field's value.
  1295  func (s *CreateQuantumTaskInput) SetDeviceParameters(v aws.JSONValue) *CreateQuantumTaskInput {
  1296  	s.DeviceParameters = v
  1297  	return s
  1298  }
  1299  
  1300  // SetOutputS3Bucket sets the OutputS3Bucket field's value.
  1301  func (s *CreateQuantumTaskInput) SetOutputS3Bucket(v string) *CreateQuantumTaskInput {
  1302  	s.OutputS3Bucket = &v
  1303  	return s
  1304  }
  1305  
  1306  // SetOutputS3KeyPrefix sets the OutputS3KeyPrefix field's value.
  1307  func (s *CreateQuantumTaskInput) SetOutputS3KeyPrefix(v string) *CreateQuantumTaskInput {
  1308  	s.OutputS3KeyPrefix = &v
  1309  	return s
  1310  }
  1311  
  1312  // SetShots sets the Shots field's value.
  1313  func (s *CreateQuantumTaskInput) SetShots(v int64) *CreateQuantumTaskInput {
  1314  	s.Shots = &v
  1315  	return s
  1316  }
  1317  
  1318  // SetTags sets the Tags field's value.
  1319  func (s *CreateQuantumTaskInput) SetTags(v map[string]*string) *CreateQuantumTaskInput {
  1320  	s.Tags = v
  1321  	return s
  1322  }
  1323  
  1324  type CreateQuantumTaskOutput struct {
  1325  	_ struct{} `type:"structure"`
  1326  
  1327  	// The ARN of the task created by the request.
  1328  	//
  1329  	// QuantumTaskArn is a required field
  1330  	QuantumTaskArn *string `locationName:"quantumTaskArn" min:"1" type:"string" required:"true"`
  1331  }
  1332  
  1333  // String returns the string representation.
  1334  //
  1335  // API parameter values that are decorated as "sensitive" in the API will not
  1336  // be included in the string output. The member name will be present, but the
  1337  // value will be replaced with "sensitive".
  1338  func (s CreateQuantumTaskOutput) String() string {
  1339  	return awsutil.Prettify(s)
  1340  }
  1341  
  1342  // GoString returns the string representation.
  1343  //
  1344  // API parameter values that are decorated as "sensitive" in the API will not
  1345  // be included in the string output. The member name will be present, but the
  1346  // value will be replaced with "sensitive".
  1347  func (s CreateQuantumTaskOutput) GoString() string {
  1348  	return s.String()
  1349  }
  1350  
  1351  // SetQuantumTaskArn sets the QuantumTaskArn field's value.
  1352  func (s *CreateQuantumTaskOutput) SetQuantumTaskArn(v string) *CreateQuantumTaskOutput {
  1353  	s.QuantumTaskArn = &v
  1354  	return s
  1355  }
  1356  
  1357  // The specified device is currently offline.
  1358  type DeviceOfflineException struct {
  1359  	_            struct{}                  `type:"structure"`
  1360  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  1361  
  1362  	Message_ *string `locationName:"message" type:"string"`
  1363  }
  1364  
  1365  // String returns the string representation.
  1366  //
  1367  // API parameter values that are decorated as "sensitive" in the API will not
  1368  // be included in the string output. The member name will be present, but the
  1369  // value will be replaced with "sensitive".
  1370  func (s DeviceOfflineException) String() string {
  1371  	return awsutil.Prettify(s)
  1372  }
  1373  
  1374  // GoString returns the string representation.
  1375  //
  1376  // API parameter values that are decorated as "sensitive" in the API will not
  1377  // be included in the string output. The member name will be present, but the
  1378  // value will be replaced with "sensitive".
  1379  func (s DeviceOfflineException) GoString() string {
  1380  	return s.String()
  1381  }
  1382  
  1383  func newErrorDeviceOfflineException(v protocol.ResponseMetadata) error {
  1384  	return &DeviceOfflineException{
  1385  		RespMetadata: v,
  1386  	}
  1387  }
  1388  
  1389  // Code returns the exception type name.
  1390  func (s *DeviceOfflineException) Code() string {
  1391  	return "DeviceOfflineException"
  1392  }
  1393  
  1394  // Message returns the exception's message.
  1395  func (s *DeviceOfflineException) 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.
  1403  func (s *DeviceOfflineException) OrigErr() error {
  1404  	return nil
  1405  }
  1406  
  1407  func (s *DeviceOfflineException) 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.
  1412  func (s *DeviceOfflineException) StatusCode() int {
  1413  	return s.RespMetadata.StatusCode
  1414  }
  1415  
  1416  // RequestID returns the service's response RequestID for request.
  1417  func (s *DeviceOfflineException) RequestID() string {
  1418  	return s.RespMetadata.RequestID
  1419  }
  1420  
  1421  // The specified device has been retired.
  1422  type DeviceRetiredException struct {
  1423  	_            struct{}                  `type:"structure"`
  1424  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  1425  
  1426  	Message_ *string `locationName:"message" type:"string"`
  1427  }
  1428  
  1429  // String returns the string representation.
  1430  //
  1431  // API parameter values that are decorated as "sensitive" in the API will not
  1432  // be included in the string output. The member name will be present, but the
  1433  // value will be replaced with "sensitive".
  1434  func (s DeviceRetiredException) String() string {
  1435  	return awsutil.Prettify(s)
  1436  }
  1437  
  1438  // GoString returns the string representation.
  1439  //
  1440  // API parameter values that are decorated as "sensitive" in the API will not
  1441  // be included in the string output. The member name will be present, but the
  1442  // value will be replaced with "sensitive".
  1443  func (s DeviceRetiredException) GoString() string {
  1444  	return s.String()
  1445  }
  1446  
  1447  func newErrorDeviceRetiredException(v protocol.ResponseMetadata) error {
  1448  	return &DeviceRetiredException{
  1449  		RespMetadata: v,
  1450  	}
  1451  }
  1452  
  1453  // Code returns the exception type name.
  1454  func (s *DeviceRetiredException) Code() string {
  1455  	return "DeviceRetiredException"
  1456  }
  1457  
  1458  // Message returns the exception's message.
  1459  func (s *DeviceRetiredException) Message() string {
  1460  	if s.Message_ != nil {
  1461  		return *s.Message_
  1462  	}
  1463  	return ""
  1464  }
  1465  
  1466  // OrigErr always returns nil, satisfies awserr.Error interface.
  1467  func (s *DeviceRetiredException) OrigErr() error {
  1468  	return nil
  1469  }
  1470  
  1471  func (s *DeviceRetiredException) Error() string {
  1472  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  1473  }
  1474  
  1475  // Status code returns the HTTP status code for the request's response error.
  1476  func (s *DeviceRetiredException) StatusCode() int {
  1477  	return s.RespMetadata.StatusCode
  1478  }
  1479  
  1480  // RequestID returns the service's response RequestID for request.
  1481  func (s *DeviceRetiredException) RequestID() string {
  1482  	return s.RespMetadata.RequestID
  1483  }
  1484  
  1485  // Includes information about the device.
  1486  type DeviceSummary struct {
  1487  	_ struct{} `type:"structure"`
  1488  
  1489  	// The ARN of the device.
  1490  	//
  1491  	// DeviceArn is a required field
  1492  	DeviceArn *string `locationName:"deviceArn" min:"1" type:"string" required:"true"`
  1493  
  1494  	// The name of the device.
  1495  	//
  1496  	// DeviceName is a required field
  1497  	DeviceName *string `locationName:"deviceName" type:"string" required:"true"`
  1498  
  1499  	// The status of the device.
  1500  	//
  1501  	// DeviceStatus is a required field
  1502  	DeviceStatus *string `locationName:"deviceStatus" type:"string" required:"true" enum:"DeviceStatus"`
  1503  
  1504  	// The type of the device.
  1505  	//
  1506  	// DeviceType is a required field
  1507  	DeviceType *string `locationName:"deviceType" type:"string" required:"true" enum:"DeviceType"`
  1508  
  1509  	// The provider of the device.
  1510  	//
  1511  	// ProviderName is a required field
  1512  	ProviderName *string `locationName:"providerName" type:"string" required:"true"`
  1513  }
  1514  
  1515  // String returns the string representation.
  1516  //
  1517  // API parameter values that are decorated as "sensitive" in the API will not
  1518  // be included in the string output. The member name will be present, but the
  1519  // value will be replaced with "sensitive".
  1520  func (s DeviceSummary) String() string {
  1521  	return awsutil.Prettify(s)
  1522  }
  1523  
  1524  // GoString returns the string representation.
  1525  //
  1526  // API parameter values that are decorated as "sensitive" in the API will not
  1527  // be included in the string output. The member name will be present, but the
  1528  // value will be replaced with "sensitive".
  1529  func (s DeviceSummary) GoString() string {
  1530  	return s.String()
  1531  }
  1532  
  1533  // SetDeviceArn sets the DeviceArn field's value.
  1534  func (s *DeviceSummary) SetDeviceArn(v string) *DeviceSummary {
  1535  	s.DeviceArn = &v
  1536  	return s
  1537  }
  1538  
  1539  // SetDeviceName sets the DeviceName field's value.
  1540  func (s *DeviceSummary) SetDeviceName(v string) *DeviceSummary {
  1541  	s.DeviceName = &v
  1542  	return s
  1543  }
  1544  
  1545  // SetDeviceStatus sets the DeviceStatus field's value.
  1546  func (s *DeviceSummary) SetDeviceStatus(v string) *DeviceSummary {
  1547  	s.DeviceStatus = &v
  1548  	return s
  1549  }
  1550  
  1551  // SetDeviceType sets the DeviceType field's value.
  1552  func (s *DeviceSummary) SetDeviceType(v string) *DeviceSummary {
  1553  	s.DeviceType = &v
  1554  	return s
  1555  }
  1556  
  1557  // SetProviderName sets the ProviderName field's value.
  1558  func (s *DeviceSummary) SetProviderName(v string) *DeviceSummary {
  1559  	s.ProviderName = &v
  1560  	return s
  1561  }
  1562  
  1563  type GetDeviceInput struct {
  1564  	_ struct{} `type:"structure" nopayload:"true"`
  1565  
  1566  	// The ARN of the device to retrieve.
  1567  	//
  1568  	// DeviceArn is a required field
  1569  	DeviceArn *string `location:"uri" locationName:"deviceArn" min:"1" type:"string" required:"true"`
  1570  }
  1571  
  1572  // String returns the string representation.
  1573  //
  1574  // API parameter values that are decorated as "sensitive" in the API will not
  1575  // be included in the string output. The member name will be present, but the
  1576  // value will be replaced with "sensitive".
  1577  func (s GetDeviceInput) String() string {
  1578  	return awsutil.Prettify(s)
  1579  }
  1580  
  1581  // GoString returns the string representation.
  1582  //
  1583  // API parameter values that are decorated as "sensitive" in the API will not
  1584  // be included in the string output. The member name will be present, but the
  1585  // value will be replaced with "sensitive".
  1586  func (s GetDeviceInput) GoString() string {
  1587  	return s.String()
  1588  }
  1589  
  1590  // Validate inspects the fields of the type to determine if they are valid.
  1591  func (s *GetDeviceInput) Validate() error {
  1592  	invalidParams := request.ErrInvalidParams{Context: "GetDeviceInput"}
  1593  	if s.DeviceArn == nil {
  1594  		invalidParams.Add(request.NewErrParamRequired("DeviceArn"))
  1595  	}
  1596  	if s.DeviceArn != nil && len(*s.DeviceArn) < 1 {
  1597  		invalidParams.Add(request.NewErrParamMinLen("DeviceArn", 1))
  1598  	}
  1599  
  1600  	if invalidParams.Len() > 0 {
  1601  		return invalidParams
  1602  	}
  1603  	return nil
  1604  }
  1605  
  1606  // SetDeviceArn sets the DeviceArn field's value.
  1607  func (s *GetDeviceInput) SetDeviceArn(v string) *GetDeviceInput {
  1608  	s.DeviceArn = &v
  1609  	return s
  1610  }
  1611  
  1612  type GetDeviceOutput struct {
  1613  	_ struct{} `type:"structure"`
  1614  
  1615  	// The ARN of the device.
  1616  	//
  1617  	// DeviceArn is a required field
  1618  	DeviceArn *string `locationName:"deviceArn" min:"1" type:"string" required:"true"`
  1619  
  1620  	// Details about the capabilities of the device.
  1621  	//
  1622  	// DeviceCapabilities is a required field
  1623  	DeviceCapabilities aws.JSONValue `locationName:"deviceCapabilities" type:"jsonvalue" required:"true"`
  1624  
  1625  	// The name of the device.
  1626  	//
  1627  	// DeviceName is a required field
  1628  	DeviceName *string `locationName:"deviceName" type:"string" required:"true"`
  1629  
  1630  	// The status of the device.
  1631  	//
  1632  	// DeviceStatus is a required field
  1633  	DeviceStatus *string `locationName:"deviceStatus" type:"string" required:"true" enum:"DeviceStatus"`
  1634  
  1635  	// The type of the device.
  1636  	//
  1637  	// DeviceType is a required field
  1638  	DeviceType *string `locationName:"deviceType" type:"string" required:"true" enum:"DeviceType"`
  1639  
  1640  	// The name of the partner company for the device.
  1641  	//
  1642  	// ProviderName is a required field
  1643  	ProviderName *string `locationName:"providerName" type:"string" required:"true"`
  1644  }
  1645  
  1646  // String returns the string representation.
  1647  //
  1648  // API parameter values that are decorated as "sensitive" in the API will not
  1649  // be included in the string output. The member name will be present, but the
  1650  // value will be replaced with "sensitive".
  1651  func (s GetDeviceOutput) String() string {
  1652  	return awsutil.Prettify(s)
  1653  }
  1654  
  1655  // GoString returns the string representation.
  1656  //
  1657  // API parameter values that are decorated as "sensitive" in the API will not
  1658  // be included in the string output. The member name will be present, but the
  1659  // value will be replaced with "sensitive".
  1660  func (s GetDeviceOutput) GoString() string {
  1661  	return s.String()
  1662  }
  1663  
  1664  // SetDeviceArn sets the DeviceArn field's value.
  1665  func (s *GetDeviceOutput) SetDeviceArn(v string) *GetDeviceOutput {
  1666  	s.DeviceArn = &v
  1667  	return s
  1668  }
  1669  
  1670  // SetDeviceCapabilities sets the DeviceCapabilities field's value.
  1671  func (s *GetDeviceOutput) SetDeviceCapabilities(v aws.JSONValue) *GetDeviceOutput {
  1672  	s.DeviceCapabilities = v
  1673  	return s
  1674  }
  1675  
  1676  // SetDeviceName sets the DeviceName field's value.
  1677  func (s *GetDeviceOutput) SetDeviceName(v string) *GetDeviceOutput {
  1678  	s.DeviceName = &v
  1679  	return s
  1680  }
  1681  
  1682  // SetDeviceStatus sets the DeviceStatus field's value.
  1683  func (s *GetDeviceOutput) SetDeviceStatus(v string) *GetDeviceOutput {
  1684  	s.DeviceStatus = &v
  1685  	return s
  1686  }
  1687  
  1688  // SetDeviceType sets the DeviceType field's value.
  1689  func (s *GetDeviceOutput) SetDeviceType(v string) *GetDeviceOutput {
  1690  	s.DeviceType = &v
  1691  	return s
  1692  }
  1693  
  1694  // SetProviderName sets the ProviderName field's value.
  1695  func (s *GetDeviceOutput) SetProviderName(v string) *GetDeviceOutput {
  1696  	s.ProviderName = &v
  1697  	return s
  1698  }
  1699  
  1700  type GetQuantumTaskInput struct {
  1701  	_ struct{} `type:"structure" nopayload:"true"`
  1702  
  1703  	// the ARN of the task to retrieve.
  1704  	//
  1705  	// QuantumTaskArn is a required field
  1706  	QuantumTaskArn *string `location:"uri" locationName:"quantumTaskArn" min:"1" type:"string" required:"true"`
  1707  }
  1708  
  1709  // String returns the string representation.
  1710  //
  1711  // API parameter values that are decorated as "sensitive" in the API will not
  1712  // be included in the string output. The member name will be present, but the
  1713  // value will be replaced with "sensitive".
  1714  func (s GetQuantumTaskInput) String() string {
  1715  	return awsutil.Prettify(s)
  1716  }
  1717  
  1718  // GoString returns the string representation.
  1719  //
  1720  // API parameter values that are decorated as "sensitive" in the API will not
  1721  // be included in the string output. The member name will be present, but the
  1722  // value will be replaced with "sensitive".
  1723  func (s GetQuantumTaskInput) GoString() string {
  1724  	return s.String()
  1725  }
  1726  
  1727  // Validate inspects the fields of the type to determine if they are valid.
  1728  func (s *GetQuantumTaskInput) Validate() error {
  1729  	invalidParams := request.ErrInvalidParams{Context: "GetQuantumTaskInput"}
  1730  	if s.QuantumTaskArn == nil {
  1731  		invalidParams.Add(request.NewErrParamRequired("QuantumTaskArn"))
  1732  	}
  1733  	if s.QuantumTaskArn != nil && len(*s.QuantumTaskArn) < 1 {
  1734  		invalidParams.Add(request.NewErrParamMinLen("QuantumTaskArn", 1))
  1735  	}
  1736  
  1737  	if invalidParams.Len() > 0 {
  1738  		return invalidParams
  1739  	}
  1740  	return nil
  1741  }
  1742  
  1743  // SetQuantumTaskArn sets the QuantumTaskArn field's value.
  1744  func (s *GetQuantumTaskInput) SetQuantumTaskArn(v string) *GetQuantumTaskInput {
  1745  	s.QuantumTaskArn = &v
  1746  	return s
  1747  }
  1748  
  1749  type GetQuantumTaskOutput struct {
  1750  	_ struct{} `type:"structure"`
  1751  
  1752  	// The time at which the task was created.
  1753  	//
  1754  	// CreatedAt is a required field
  1755  	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  1756  
  1757  	// The ARN of the device the task was run on.
  1758  	//
  1759  	// DeviceArn is a required field
  1760  	DeviceArn *string `locationName:"deviceArn" min:"1" type:"string" required:"true"`
  1761  
  1762  	// The parameters for the device on which the task ran.
  1763  	//
  1764  	// DeviceParameters is a required field
  1765  	DeviceParameters aws.JSONValue `locationName:"deviceParameters" type:"jsonvalue" required:"true"`
  1766  
  1767  	// The time at which the task ended.
  1768  	EndedAt *time.Time `locationName:"endedAt" type:"timestamp" timestampFormat:"iso8601"`
  1769  
  1770  	// The reason that a task failed.
  1771  	FailureReason *string `locationName:"failureReason" type:"string"`
  1772  
  1773  	// The S3 bucket where task results are stored.
  1774  	//
  1775  	// OutputS3Bucket is a required field
  1776  	OutputS3Bucket *string `locationName:"outputS3Bucket" type:"string" required:"true"`
  1777  
  1778  	// The folder in the S3 bucket where task results are stored.
  1779  	//
  1780  	// OutputS3Directory is a required field
  1781  	OutputS3Directory *string `locationName:"outputS3Directory" type:"string" required:"true"`
  1782  
  1783  	// The ARN of the task.
  1784  	//
  1785  	// QuantumTaskArn is a required field
  1786  	QuantumTaskArn *string `locationName:"quantumTaskArn" min:"1" type:"string" required:"true"`
  1787  
  1788  	// The number of shots used in the task.
  1789  	//
  1790  	// Shots is a required field
  1791  	Shots *int64 `locationName:"shots" type:"long" required:"true"`
  1792  
  1793  	// The status of the task.
  1794  	//
  1795  	// Status is a required field
  1796  	Status *string `locationName:"status" type:"string" required:"true" enum:"QuantumTaskStatus"`
  1797  
  1798  	// The tags that belong to this task.
  1799  	Tags map[string]*string `locationName:"tags" type:"map"`
  1800  }
  1801  
  1802  // String returns the string representation.
  1803  //
  1804  // API parameter values that are decorated as "sensitive" in the API will not
  1805  // be included in the string output. The member name will be present, but the
  1806  // value will be replaced with "sensitive".
  1807  func (s GetQuantumTaskOutput) String() string {
  1808  	return awsutil.Prettify(s)
  1809  }
  1810  
  1811  // GoString returns the string representation.
  1812  //
  1813  // API parameter values that are decorated as "sensitive" in the API will not
  1814  // be included in the string output. The member name will be present, but the
  1815  // value will be replaced with "sensitive".
  1816  func (s GetQuantumTaskOutput) GoString() string {
  1817  	return s.String()
  1818  }
  1819  
  1820  // SetCreatedAt sets the CreatedAt field's value.
  1821  func (s *GetQuantumTaskOutput) SetCreatedAt(v time.Time) *GetQuantumTaskOutput {
  1822  	s.CreatedAt = &v
  1823  	return s
  1824  }
  1825  
  1826  // SetDeviceArn sets the DeviceArn field's value.
  1827  func (s *GetQuantumTaskOutput) SetDeviceArn(v string) *GetQuantumTaskOutput {
  1828  	s.DeviceArn = &v
  1829  	return s
  1830  }
  1831  
  1832  // SetDeviceParameters sets the DeviceParameters field's value.
  1833  func (s *GetQuantumTaskOutput) SetDeviceParameters(v aws.JSONValue) *GetQuantumTaskOutput {
  1834  	s.DeviceParameters = v
  1835  	return s
  1836  }
  1837  
  1838  // SetEndedAt sets the EndedAt field's value.
  1839  func (s *GetQuantumTaskOutput) SetEndedAt(v time.Time) *GetQuantumTaskOutput {
  1840  	s.EndedAt = &v
  1841  	return s
  1842  }
  1843  
  1844  // SetFailureReason sets the FailureReason field's value.
  1845  func (s *GetQuantumTaskOutput) SetFailureReason(v string) *GetQuantumTaskOutput {
  1846  	s.FailureReason = &v
  1847  	return s
  1848  }
  1849  
  1850  // SetOutputS3Bucket sets the OutputS3Bucket field's value.
  1851  func (s *GetQuantumTaskOutput) SetOutputS3Bucket(v string) *GetQuantumTaskOutput {
  1852  	s.OutputS3Bucket = &v
  1853  	return s
  1854  }
  1855  
  1856  // SetOutputS3Directory sets the OutputS3Directory field's value.
  1857  func (s *GetQuantumTaskOutput) SetOutputS3Directory(v string) *GetQuantumTaskOutput {
  1858  	s.OutputS3Directory = &v
  1859  	return s
  1860  }
  1861  
  1862  // SetQuantumTaskArn sets the QuantumTaskArn field's value.
  1863  func (s *GetQuantumTaskOutput) SetQuantumTaskArn(v string) *GetQuantumTaskOutput {
  1864  	s.QuantumTaskArn = &v
  1865  	return s
  1866  }
  1867  
  1868  // SetShots sets the Shots field's value.
  1869  func (s *GetQuantumTaskOutput) SetShots(v int64) *GetQuantumTaskOutput {
  1870  	s.Shots = &v
  1871  	return s
  1872  }
  1873  
  1874  // SetStatus sets the Status field's value.
  1875  func (s *GetQuantumTaskOutput) SetStatus(v string) *GetQuantumTaskOutput {
  1876  	s.Status = &v
  1877  	return s
  1878  }
  1879  
  1880  // SetTags sets the Tags field's value.
  1881  func (s *GetQuantumTaskOutput) SetTags(v map[string]*string) *GetQuantumTaskOutput {
  1882  	s.Tags = v
  1883  	return s
  1884  }
  1885  
  1886  // The request processing has failed because of an unknown error, exception,
  1887  // or failure.
  1888  type InternalServiceException struct {
  1889  	_            struct{}                  `type:"structure"`
  1890  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  1891  
  1892  	Message_ *string `locationName:"message" type:"string"`
  1893  }
  1894  
  1895  // String returns the string representation.
  1896  //
  1897  // API parameter values that are decorated as "sensitive" in the API will not
  1898  // be included in the string output. The member name will be present, but the
  1899  // value will be replaced with "sensitive".
  1900  func (s InternalServiceException) String() string {
  1901  	return awsutil.Prettify(s)
  1902  }
  1903  
  1904  // GoString returns the string representation.
  1905  //
  1906  // API parameter values that are decorated as "sensitive" in the API will not
  1907  // be included in the string output. The member name will be present, but the
  1908  // value will be replaced with "sensitive".
  1909  func (s InternalServiceException) GoString() string {
  1910  	return s.String()
  1911  }
  1912  
  1913  func newErrorInternalServiceException(v protocol.ResponseMetadata) error {
  1914  	return &InternalServiceException{
  1915  		RespMetadata: v,
  1916  	}
  1917  }
  1918  
  1919  // Code returns the exception type name.
  1920  func (s *InternalServiceException) Code() string {
  1921  	return "InternalServiceException"
  1922  }
  1923  
  1924  // Message returns the exception's message.
  1925  func (s *InternalServiceException) Message() string {
  1926  	if s.Message_ != nil {
  1927  		return *s.Message_
  1928  	}
  1929  	return ""
  1930  }
  1931  
  1932  // OrigErr always returns nil, satisfies awserr.Error interface.
  1933  func (s *InternalServiceException) OrigErr() error {
  1934  	return nil
  1935  }
  1936  
  1937  func (s *InternalServiceException) Error() string {
  1938  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  1939  }
  1940  
  1941  // Status code returns the HTTP status code for the request's response error.
  1942  func (s *InternalServiceException) StatusCode() int {
  1943  	return s.RespMetadata.StatusCode
  1944  }
  1945  
  1946  // RequestID returns the service's response RequestID for request.
  1947  func (s *InternalServiceException) RequestID() string {
  1948  	return s.RespMetadata.RequestID
  1949  }
  1950  
  1951  type ListTagsForResourceInput struct {
  1952  	_ struct{} `type:"structure" nopayload:"true"`
  1953  
  1954  	// Specify the resourceArn for the resource whose tags to display.
  1955  	//
  1956  	// ResourceArn is a required field
  1957  	ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
  1958  }
  1959  
  1960  // String returns the string representation.
  1961  //
  1962  // API parameter values that are decorated as "sensitive" in the API will not
  1963  // be included in the string output. The member name will be present, but the
  1964  // value will be replaced with "sensitive".
  1965  func (s ListTagsForResourceInput) String() string {
  1966  	return awsutil.Prettify(s)
  1967  }
  1968  
  1969  // GoString returns the string representation.
  1970  //
  1971  // API parameter values that are decorated as "sensitive" in the API will not
  1972  // be included in the string output. The member name will be present, but the
  1973  // value will be replaced with "sensitive".
  1974  func (s ListTagsForResourceInput) GoString() string {
  1975  	return s.String()
  1976  }
  1977  
  1978  // Validate inspects the fields of the type to determine if they are valid.
  1979  func (s *ListTagsForResourceInput) Validate() error {
  1980  	invalidParams := request.ErrInvalidParams{Context: "ListTagsForResourceInput"}
  1981  	if s.ResourceArn == nil {
  1982  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  1983  	}
  1984  	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
  1985  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
  1986  	}
  1987  
  1988  	if invalidParams.Len() > 0 {
  1989  		return invalidParams
  1990  	}
  1991  	return nil
  1992  }
  1993  
  1994  // SetResourceArn sets the ResourceArn field's value.
  1995  func (s *ListTagsForResourceInput) SetResourceArn(v string) *ListTagsForResourceInput {
  1996  	s.ResourceArn = &v
  1997  	return s
  1998  }
  1999  
  2000  type ListTagsForResourceOutput struct {
  2001  	_ struct{} `type:"structure"`
  2002  
  2003  	// Displays the key, value pairs of tags associated with this resource.
  2004  	Tags map[string]*string `locationName:"tags" type:"map"`
  2005  }
  2006  
  2007  // String returns the string representation.
  2008  //
  2009  // API parameter values that are decorated as "sensitive" in the API will not
  2010  // be included in the string output. The member name will be present, but the
  2011  // value will be replaced with "sensitive".
  2012  func (s ListTagsForResourceOutput) String() string {
  2013  	return awsutil.Prettify(s)
  2014  }
  2015  
  2016  // GoString returns the string representation.
  2017  //
  2018  // API parameter values that are decorated as "sensitive" in the API will not
  2019  // be included in the string output. The member name will be present, but the
  2020  // value will be replaced with "sensitive".
  2021  func (s ListTagsForResourceOutput) GoString() string {
  2022  	return s.String()
  2023  }
  2024  
  2025  // SetTags sets the Tags field's value.
  2026  func (s *ListTagsForResourceOutput) SetTags(v map[string]*string) *ListTagsForResourceOutput {
  2027  	s.Tags = v
  2028  	return s
  2029  }
  2030  
  2031  // Includes information about a quantum task.
  2032  type QuantumTaskSummary struct {
  2033  	_ struct{} `type:"structure"`
  2034  
  2035  	// The time at which the task was created.
  2036  	//
  2037  	// CreatedAt is a required field
  2038  	CreatedAt *time.Time `locationName:"createdAt" type:"timestamp" timestampFormat:"iso8601" required:"true"`
  2039  
  2040  	// The ARN of the device the task ran on.
  2041  	//
  2042  	// DeviceArn is a required field
  2043  	DeviceArn *string `locationName:"deviceArn" min:"1" type:"string" required:"true"`
  2044  
  2045  	// The time at which the task finished.
  2046  	EndedAt *time.Time `locationName:"endedAt" type:"timestamp" timestampFormat:"iso8601"`
  2047  
  2048  	// The S3 bucket where the task result file is stored..
  2049  	//
  2050  	// OutputS3Bucket is a required field
  2051  	OutputS3Bucket *string `locationName:"outputS3Bucket" type:"string" required:"true"`
  2052  
  2053  	// The folder in the S3 bucket where the task result file is stored.
  2054  	//
  2055  	// OutputS3Directory is a required field
  2056  	OutputS3Directory *string `locationName:"outputS3Directory" type:"string" required:"true"`
  2057  
  2058  	// The ARN of the task.
  2059  	//
  2060  	// QuantumTaskArn is a required field
  2061  	QuantumTaskArn *string `locationName:"quantumTaskArn" min:"1" type:"string" required:"true"`
  2062  
  2063  	// The shots used for the task.
  2064  	//
  2065  	// Shots is a required field
  2066  	Shots *int64 `locationName:"shots" type:"long" required:"true"`
  2067  
  2068  	// The status of the task.
  2069  	//
  2070  	// Status is a required field
  2071  	Status *string `locationName:"status" type:"string" required:"true" enum:"QuantumTaskStatus"`
  2072  
  2073  	// Displays the key, value pairs of tags associated with this quantum task.
  2074  	Tags map[string]*string `locationName:"tags" type:"map"`
  2075  }
  2076  
  2077  // String returns the string representation.
  2078  //
  2079  // API parameter values that are decorated as "sensitive" in the API will not
  2080  // be included in the string output. The member name will be present, but the
  2081  // value will be replaced with "sensitive".
  2082  func (s QuantumTaskSummary) String() string {
  2083  	return awsutil.Prettify(s)
  2084  }
  2085  
  2086  // GoString returns the string representation.
  2087  //
  2088  // API parameter values that are decorated as "sensitive" in the API will not
  2089  // be included in the string output. The member name will be present, but the
  2090  // value will be replaced with "sensitive".
  2091  func (s QuantumTaskSummary) GoString() string {
  2092  	return s.String()
  2093  }
  2094  
  2095  // SetCreatedAt sets the CreatedAt field's value.
  2096  func (s *QuantumTaskSummary) SetCreatedAt(v time.Time) *QuantumTaskSummary {
  2097  	s.CreatedAt = &v
  2098  	return s
  2099  }
  2100  
  2101  // SetDeviceArn sets the DeviceArn field's value.
  2102  func (s *QuantumTaskSummary) SetDeviceArn(v string) *QuantumTaskSummary {
  2103  	s.DeviceArn = &v
  2104  	return s
  2105  }
  2106  
  2107  // SetEndedAt sets the EndedAt field's value.
  2108  func (s *QuantumTaskSummary) SetEndedAt(v time.Time) *QuantumTaskSummary {
  2109  	s.EndedAt = &v
  2110  	return s
  2111  }
  2112  
  2113  // SetOutputS3Bucket sets the OutputS3Bucket field's value.
  2114  func (s *QuantumTaskSummary) SetOutputS3Bucket(v string) *QuantumTaskSummary {
  2115  	s.OutputS3Bucket = &v
  2116  	return s
  2117  }
  2118  
  2119  // SetOutputS3Directory sets the OutputS3Directory field's value.
  2120  func (s *QuantumTaskSummary) SetOutputS3Directory(v string) *QuantumTaskSummary {
  2121  	s.OutputS3Directory = &v
  2122  	return s
  2123  }
  2124  
  2125  // SetQuantumTaskArn sets the QuantumTaskArn field's value.
  2126  func (s *QuantumTaskSummary) SetQuantumTaskArn(v string) *QuantumTaskSummary {
  2127  	s.QuantumTaskArn = &v
  2128  	return s
  2129  }
  2130  
  2131  // SetShots sets the Shots field's value.
  2132  func (s *QuantumTaskSummary) SetShots(v int64) *QuantumTaskSummary {
  2133  	s.Shots = &v
  2134  	return s
  2135  }
  2136  
  2137  // SetStatus sets the Status field's value.
  2138  func (s *QuantumTaskSummary) SetStatus(v string) *QuantumTaskSummary {
  2139  	s.Status = &v
  2140  	return s
  2141  }
  2142  
  2143  // SetTags sets the Tags field's value.
  2144  func (s *QuantumTaskSummary) SetTags(v map[string]*string) *QuantumTaskSummary {
  2145  	s.Tags = v
  2146  	return s
  2147  }
  2148  
  2149  // The specified resource was not found.
  2150  type ResourceNotFoundException struct {
  2151  	_            struct{}                  `type:"structure"`
  2152  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  2153  
  2154  	Message_ *string `locationName:"message" type:"string"`
  2155  }
  2156  
  2157  // String returns the string representation.
  2158  //
  2159  // API parameter values that are decorated as "sensitive" in the API will not
  2160  // be included in the string output. The member name will be present, but the
  2161  // value will be replaced with "sensitive".
  2162  func (s ResourceNotFoundException) String() string {
  2163  	return awsutil.Prettify(s)
  2164  }
  2165  
  2166  // GoString returns the string representation.
  2167  //
  2168  // API parameter values that are decorated as "sensitive" in the API will not
  2169  // be included in the string output. The member name will be present, but the
  2170  // value will be replaced with "sensitive".
  2171  func (s ResourceNotFoundException) GoString() string {
  2172  	return s.String()
  2173  }
  2174  
  2175  func newErrorResourceNotFoundException(v protocol.ResponseMetadata) error {
  2176  	return &ResourceNotFoundException{
  2177  		RespMetadata: v,
  2178  	}
  2179  }
  2180  
  2181  // Code returns the exception type name.
  2182  func (s *ResourceNotFoundException) Code() string {
  2183  	return "ResourceNotFoundException"
  2184  }
  2185  
  2186  // Message returns the exception's message.
  2187  func (s *ResourceNotFoundException) Message() string {
  2188  	if s.Message_ != nil {
  2189  		return *s.Message_
  2190  	}
  2191  	return ""
  2192  }
  2193  
  2194  // OrigErr always returns nil, satisfies awserr.Error interface.
  2195  func (s *ResourceNotFoundException) OrigErr() error {
  2196  	return nil
  2197  }
  2198  
  2199  func (s *ResourceNotFoundException) Error() string {
  2200  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  2201  }
  2202  
  2203  // Status code returns the HTTP status code for the request's response error.
  2204  func (s *ResourceNotFoundException) StatusCode() int {
  2205  	return s.RespMetadata.StatusCode
  2206  }
  2207  
  2208  // RequestID returns the service's response RequestID for request.
  2209  func (s *ResourceNotFoundException) RequestID() string {
  2210  	return s.RespMetadata.RequestID
  2211  }
  2212  
  2213  // The filter to use for searching devices.
  2214  type SearchDevicesFilter struct {
  2215  	_ struct{} `type:"structure"`
  2216  
  2217  	// The name to use to filter results.
  2218  	//
  2219  	// Name is a required field
  2220  	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  2221  
  2222  	// The values to use to filter results.
  2223  	//
  2224  	// Values is a required field
  2225  	Values []*string `locationName:"values" min:"1" type:"list" required:"true"`
  2226  }
  2227  
  2228  // String returns the string representation.
  2229  //
  2230  // API parameter values that are decorated as "sensitive" in the API will not
  2231  // be included in the string output. The member name will be present, but the
  2232  // value will be replaced with "sensitive".
  2233  func (s SearchDevicesFilter) String() string {
  2234  	return awsutil.Prettify(s)
  2235  }
  2236  
  2237  // GoString returns the string representation.
  2238  //
  2239  // API parameter values that are decorated as "sensitive" in the API will not
  2240  // be included in the string output. The member name will be present, but the
  2241  // value will be replaced with "sensitive".
  2242  func (s SearchDevicesFilter) GoString() string {
  2243  	return s.String()
  2244  }
  2245  
  2246  // Validate inspects the fields of the type to determine if they are valid.
  2247  func (s *SearchDevicesFilter) Validate() error {
  2248  	invalidParams := request.ErrInvalidParams{Context: "SearchDevicesFilter"}
  2249  	if s.Name == nil {
  2250  		invalidParams.Add(request.NewErrParamRequired("Name"))
  2251  	}
  2252  	if s.Name != nil && len(*s.Name) < 1 {
  2253  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2254  	}
  2255  	if s.Values == nil {
  2256  		invalidParams.Add(request.NewErrParamRequired("Values"))
  2257  	}
  2258  	if s.Values != nil && len(s.Values) < 1 {
  2259  		invalidParams.Add(request.NewErrParamMinLen("Values", 1))
  2260  	}
  2261  
  2262  	if invalidParams.Len() > 0 {
  2263  		return invalidParams
  2264  	}
  2265  	return nil
  2266  }
  2267  
  2268  // SetName sets the Name field's value.
  2269  func (s *SearchDevicesFilter) SetName(v string) *SearchDevicesFilter {
  2270  	s.Name = &v
  2271  	return s
  2272  }
  2273  
  2274  // SetValues sets the Values field's value.
  2275  func (s *SearchDevicesFilter) SetValues(v []*string) *SearchDevicesFilter {
  2276  	s.Values = v
  2277  	return s
  2278  }
  2279  
  2280  type SearchDevicesInput struct {
  2281  	_ struct{} `type:"structure"`
  2282  
  2283  	// The filter values to use to search for a device.
  2284  	//
  2285  	// Filters is a required field
  2286  	Filters []*SearchDevicesFilter `locationName:"filters" type:"list" required:"true"`
  2287  
  2288  	// The maximum number of results to return in the response.
  2289  	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
  2290  
  2291  	// A token used for pagination of results returned in the response. Use the
  2292  	// token returned from the previous request continue results where the previous
  2293  	// request ended.
  2294  	NextToken *string `locationName:"nextToken" type:"string"`
  2295  }
  2296  
  2297  // String returns the string representation.
  2298  //
  2299  // API parameter values that are decorated as "sensitive" in the API will not
  2300  // be included in the string output. The member name will be present, but the
  2301  // value will be replaced with "sensitive".
  2302  func (s SearchDevicesInput) String() string {
  2303  	return awsutil.Prettify(s)
  2304  }
  2305  
  2306  // GoString returns the string representation.
  2307  //
  2308  // API parameter values that are decorated as "sensitive" in the API will not
  2309  // be included in the string output. The member name will be present, but the
  2310  // value will be replaced with "sensitive".
  2311  func (s SearchDevicesInput) GoString() string {
  2312  	return s.String()
  2313  }
  2314  
  2315  // Validate inspects the fields of the type to determine if they are valid.
  2316  func (s *SearchDevicesInput) Validate() error {
  2317  	invalidParams := request.ErrInvalidParams{Context: "SearchDevicesInput"}
  2318  	if s.Filters == nil {
  2319  		invalidParams.Add(request.NewErrParamRequired("Filters"))
  2320  	}
  2321  	if s.MaxResults != nil && *s.MaxResults < 1 {
  2322  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2323  	}
  2324  	if s.Filters != nil {
  2325  		for i, v := range s.Filters {
  2326  			if v == nil {
  2327  				continue
  2328  			}
  2329  			if err := v.Validate(); err != nil {
  2330  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  2331  			}
  2332  		}
  2333  	}
  2334  
  2335  	if invalidParams.Len() > 0 {
  2336  		return invalidParams
  2337  	}
  2338  	return nil
  2339  }
  2340  
  2341  // SetFilters sets the Filters field's value.
  2342  func (s *SearchDevicesInput) SetFilters(v []*SearchDevicesFilter) *SearchDevicesInput {
  2343  	s.Filters = v
  2344  	return s
  2345  }
  2346  
  2347  // SetMaxResults sets the MaxResults field's value.
  2348  func (s *SearchDevicesInput) SetMaxResults(v int64) *SearchDevicesInput {
  2349  	s.MaxResults = &v
  2350  	return s
  2351  }
  2352  
  2353  // SetNextToken sets the NextToken field's value.
  2354  func (s *SearchDevicesInput) SetNextToken(v string) *SearchDevicesInput {
  2355  	s.NextToken = &v
  2356  	return s
  2357  }
  2358  
  2359  type SearchDevicesOutput struct {
  2360  	_ struct{} `type:"structure"`
  2361  
  2362  	// An array of DeviceSummary objects for devices that match the specified filter
  2363  	// values.
  2364  	//
  2365  	// Devices is a required field
  2366  	Devices []*DeviceSummary `locationName:"devices" type:"list" required:"true"`
  2367  
  2368  	// A token used for pagination of results, or null if there are no additional
  2369  	// results. Use the token value in a subsequent request to continue results
  2370  	// where the previous request ended.
  2371  	NextToken *string `locationName:"nextToken" type:"string"`
  2372  }
  2373  
  2374  // String returns the string representation.
  2375  //
  2376  // API parameter values that are decorated as "sensitive" in the API will not
  2377  // be included in the string output. The member name will be present, but the
  2378  // value will be replaced with "sensitive".
  2379  func (s SearchDevicesOutput) String() string {
  2380  	return awsutil.Prettify(s)
  2381  }
  2382  
  2383  // GoString returns the string representation.
  2384  //
  2385  // API parameter values that are decorated as "sensitive" in the API will not
  2386  // be included in the string output. The member name will be present, but the
  2387  // value will be replaced with "sensitive".
  2388  func (s SearchDevicesOutput) GoString() string {
  2389  	return s.String()
  2390  }
  2391  
  2392  // SetDevices sets the Devices field's value.
  2393  func (s *SearchDevicesOutput) SetDevices(v []*DeviceSummary) *SearchDevicesOutput {
  2394  	s.Devices = v
  2395  	return s
  2396  }
  2397  
  2398  // SetNextToken sets the NextToken field's value.
  2399  func (s *SearchDevicesOutput) SetNextToken(v string) *SearchDevicesOutput {
  2400  	s.NextToken = &v
  2401  	return s
  2402  }
  2403  
  2404  // A filter to use to search for tasks.
  2405  type SearchQuantumTasksFilter struct {
  2406  	_ struct{} `type:"structure"`
  2407  
  2408  	// The name of the device used for the task.
  2409  	//
  2410  	// Name is a required field
  2411  	Name *string `locationName:"name" min:"1" type:"string" required:"true"`
  2412  
  2413  	// An operator to use in the filter.
  2414  	//
  2415  	// Operator is a required field
  2416  	Operator *string `locationName:"operator" type:"string" required:"true" enum:"SearchQuantumTasksFilterOperator"`
  2417  
  2418  	// The values to use for the filter.
  2419  	//
  2420  	// Values is a required field
  2421  	Values []*string `locationName:"values" min:"1" type:"list" required:"true"`
  2422  }
  2423  
  2424  // String returns the string representation.
  2425  //
  2426  // API parameter values that are decorated as "sensitive" in the API will not
  2427  // be included in the string output. The member name will be present, but the
  2428  // value will be replaced with "sensitive".
  2429  func (s SearchQuantumTasksFilter) String() string {
  2430  	return awsutil.Prettify(s)
  2431  }
  2432  
  2433  // GoString returns the string representation.
  2434  //
  2435  // API parameter values that are decorated as "sensitive" in the API will not
  2436  // be included in the string output. The member name will be present, but the
  2437  // value will be replaced with "sensitive".
  2438  func (s SearchQuantumTasksFilter) GoString() string {
  2439  	return s.String()
  2440  }
  2441  
  2442  // Validate inspects the fields of the type to determine if they are valid.
  2443  func (s *SearchQuantumTasksFilter) Validate() error {
  2444  	invalidParams := request.ErrInvalidParams{Context: "SearchQuantumTasksFilter"}
  2445  	if s.Name == nil {
  2446  		invalidParams.Add(request.NewErrParamRequired("Name"))
  2447  	}
  2448  	if s.Name != nil && len(*s.Name) < 1 {
  2449  		invalidParams.Add(request.NewErrParamMinLen("Name", 1))
  2450  	}
  2451  	if s.Operator == nil {
  2452  		invalidParams.Add(request.NewErrParamRequired("Operator"))
  2453  	}
  2454  	if s.Values == nil {
  2455  		invalidParams.Add(request.NewErrParamRequired("Values"))
  2456  	}
  2457  	if s.Values != nil && len(s.Values) < 1 {
  2458  		invalidParams.Add(request.NewErrParamMinLen("Values", 1))
  2459  	}
  2460  
  2461  	if invalidParams.Len() > 0 {
  2462  		return invalidParams
  2463  	}
  2464  	return nil
  2465  }
  2466  
  2467  // SetName sets the Name field's value.
  2468  func (s *SearchQuantumTasksFilter) SetName(v string) *SearchQuantumTasksFilter {
  2469  	s.Name = &v
  2470  	return s
  2471  }
  2472  
  2473  // SetOperator sets the Operator field's value.
  2474  func (s *SearchQuantumTasksFilter) SetOperator(v string) *SearchQuantumTasksFilter {
  2475  	s.Operator = &v
  2476  	return s
  2477  }
  2478  
  2479  // SetValues sets the Values field's value.
  2480  func (s *SearchQuantumTasksFilter) SetValues(v []*string) *SearchQuantumTasksFilter {
  2481  	s.Values = v
  2482  	return s
  2483  }
  2484  
  2485  type SearchQuantumTasksInput struct {
  2486  	_ struct{} `type:"structure"`
  2487  
  2488  	// Array of SearchQuantumTasksFilter objects.
  2489  	//
  2490  	// Filters is a required field
  2491  	Filters []*SearchQuantumTasksFilter `locationName:"filters" type:"list" required:"true"`
  2492  
  2493  	// Maximum number of results to return in the response.
  2494  	MaxResults *int64 `locationName:"maxResults" min:"1" type:"integer"`
  2495  
  2496  	// A token used for pagination of results returned in the response. Use the
  2497  	// token returned from the previous request continue results where the previous
  2498  	// request ended.
  2499  	NextToken *string `locationName:"nextToken" type:"string"`
  2500  }
  2501  
  2502  // String returns the string representation.
  2503  //
  2504  // API parameter values that are decorated as "sensitive" in the API will not
  2505  // be included in the string output. The member name will be present, but the
  2506  // value will be replaced with "sensitive".
  2507  func (s SearchQuantumTasksInput) String() string {
  2508  	return awsutil.Prettify(s)
  2509  }
  2510  
  2511  // GoString returns the string representation.
  2512  //
  2513  // API parameter values that are decorated as "sensitive" in the API will not
  2514  // be included in the string output. The member name will be present, but the
  2515  // value will be replaced with "sensitive".
  2516  func (s SearchQuantumTasksInput) GoString() string {
  2517  	return s.String()
  2518  }
  2519  
  2520  // Validate inspects the fields of the type to determine if they are valid.
  2521  func (s *SearchQuantumTasksInput) Validate() error {
  2522  	invalidParams := request.ErrInvalidParams{Context: "SearchQuantumTasksInput"}
  2523  	if s.Filters == nil {
  2524  		invalidParams.Add(request.NewErrParamRequired("Filters"))
  2525  	}
  2526  	if s.MaxResults != nil && *s.MaxResults < 1 {
  2527  		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
  2528  	}
  2529  	if s.Filters != nil {
  2530  		for i, v := range s.Filters {
  2531  			if v == nil {
  2532  				continue
  2533  			}
  2534  			if err := v.Validate(); err != nil {
  2535  				invalidParams.AddNested(fmt.Sprintf("%s[%v]", "Filters", i), err.(request.ErrInvalidParams))
  2536  			}
  2537  		}
  2538  	}
  2539  
  2540  	if invalidParams.Len() > 0 {
  2541  		return invalidParams
  2542  	}
  2543  	return nil
  2544  }
  2545  
  2546  // SetFilters sets the Filters field's value.
  2547  func (s *SearchQuantumTasksInput) SetFilters(v []*SearchQuantumTasksFilter) *SearchQuantumTasksInput {
  2548  	s.Filters = v
  2549  	return s
  2550  }
  2551  
  2552  // SetMaxResults sets the MaxResults field's value.
  2553  func (s *SearchQuantumTasksInput) SetMaxResults(v int64) *SearchQuantumTasksInput {
  2554  	s.MaxResults = &v
  2555  	return s
  2556  }
  2557  
  2558  // SetNextToken sets the NextToken field's value.
  2559  func (s *SearchQuantumTasksInput) SetNextToken(v string) *SearchQuantumTasksInput {
  2560  	s.NextToken = &v
  2561  	return s
  2562  }
  2563  
  2564  type SearchQuantumTasksOutput struct {
  2565  	_ struct{} `type:"structure"`
  2566  
  2567  	// A token used for pagination of results, or null if there are no additional
  2568  	// results. Use the token value in a subsequent request to continue results
  2569  	// where the previous request ended.
  2570  	NextToken *string `locationName:"nextToken" type:"string"`
  2571  
  2572  	// An array of QuantumTaskSummary objects for tasks that match the specified
  2573  	// filters.
  2574  	//
  2575  	// QuantumTasks is a required field
  2576  	QuantumTasks []*QuantumTaskSummary `locationName:"quantumTasks" type:"list" required:"true"`
  2577  }
  2578  
  2579  // String returns the string representation.
  2580  //
  2581  // API parameter values that are decorated as "sensitive" in the API will not
  2582  // be included in the string output. The member name will be present, but the
  2583  // value will be replaced with "sensitive".
  2584  func (s SearchQuantumTasksOutput) String() string {
  2585  	return awsutil.Prettify(s)
  2586  }
  2587  
  2588  // GoString returns the string representation.
  2589  //
  2590  // API parameter values that are decorated as "sensitive" in the API will not
  2591  // be included in the string output. The member name will be present, but the
  2592  // value will be replaced with "sensitive".
  2593  func (s SearchQuantumTasksOutput) GoString() string {
  2594  	return s.String()
  2595  }
  2596  
  2597  // SetNextToken sets the NextToken field's value.
  2598  func (s *SearchQuantumTasksOutput) SetNextToken(v string) *SearchQuantumTasksOutput {
  2599  	s.NextToken = &v
  2600  	return s
  2601  }
  2602  
  2603  // SetQuantumTasks sets the QuantumTasks field's value.
  2604  func (s *SearchQuantumTasksOutput) SetQuantumTasks(v []*QuantumTaskSummary) *SearchQuantumTasksOutput {
  2605  	s.QuantumTasks = v
  2606  	return s
  2607  }
  2608  
  2609  // The request failed because a service quota is exceeded.
  2610  type ServiceQuotaExceededException struct {
  2611  	_            struct{}                  `type:"structure"`
  2612  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  2613  
  2614  	Message_ *string `locationName:"message" type:"string"`
  2615  }
  2616  
  2617  // String returns the string representation.
  2618  //
  2619  // API parameter values that are decorated as "sensitive" in the API will not
  2620  // be included in the string output. The member name will be present, but the
  2621  // value will be replaced with "sensitive".
  2622  func (s ServiceQuotaExceededException) String() string {
  2623  	return awsutil.Prettify(s)
  2624  }
  2625  
  2626  // GoString returns the string representation.
  2627  //
  2628  // API parameter values that are decorated as "sensitive" in the API will not
  2629  // be included in the string output. The member name will be present, but the
  2630  // value will be replaced with "sensitive".
  2631  func (s ServiceQuotaExceededException) GoString() string {
  2632  	return s.String()
  2633  }
  2634  
  2635  func newErrorServiceQuotaExceededException(v protocol.ResponseMetadata) error {
  2636  	return &ServiceQuotaExceededException{
  2637  		RespMetadata: v,
  2638  	}
  2639  }
  2640  
  2641  // Code returns the exception type name.
  2642  func (s *ServiceQuotaExceededException) Code() string {
  2643  	return "ServiceQuotaExceededException"
  2644  }
  2645  
  2646  // Message returns the exception's message.
  2647  func (s *ServiceQuotaExceededException) Message() string {
  2648  	if s.Message_ != nil {
  2649  		return *s.Message_
  2650  	}
  2651  	return ""
  2652  }
  2653  
  2654  // OrigErr always returns nil, satisfies awserr.Error interface.
  2655  func (s *ServiceQuotaExceededException) OrigErr() error {
  2656  	return nil
  2657  }
  2658  
  2659  func (s *ServiceQuotaExceededException) Error() string {
  2660  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  2661  }
  2662  
  2663  // Status code returns the HTTP status code for the request's response error.
  2664  func (s *ServiceQuotaExceededException) StatusCode() int {
  2665  	return s.RespMetadata.StatusCode
  2666  }
  2667  
  2668  // RequestID returns the service's response RequestID for request.
  2669  func (s *ServiceQuotaExceededException) RequestID() string {
  2670  	return s.RespMetadata.RequestID
  2671  }
  2672  
  2673  type TagResourceInput struct {
  2674  	_ struct{} `type:"structure"`
  2675  
  2676  	// Specify the resourceArn of the resource to which a tag will be added.
  2677  	//
  2678  	// ResourceArn is a required field
  2679  	ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
  2680  
  2681  	// Specify the tags to add to the resource.
  2682  	//
  2683  	// Tags is a required field
  2684  	Tags map[string]*string `locationName:"tags" type:"map" required:"true"`
  2685  }
  2686  
  2687  // String returns the string representation.
  2688  //
  2689  // API parameter values that are decorated as "sensitive" in the API will not
  2690  // be included in the string output. The member name will be present, but the
  2691  // value will be replaced with "sensitive".
  2692  func (s TagResourceInput) String() string {
  2693  	return awsutil.Prettify(s)
  2694  }
  2695  
  2696  // GoString returns the string representation.
  2697  //
  2698  // API parameter values that are decorated as "sensitive" in the API will not
  2699  // be included in the string output. The member name will be present, but the
  2700  // value will be replaced with "sensitive".
  2701  func (s TagResourceInput) GoString() string {
  2702  	return s.String()
  2703  }
  2704  
  2705  // Validate inspects the fields of the type to determine if they are valid.
  2706  func (s *TagResourceInput) Validate() error {
  2707  	invalidParams := request.ErrInvalidParams{Context: "TagResourceInput"}
  2708  	if s.ResourceArn == nil {
  2709  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  2710  	}
  2711  	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
  2712  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
  2713  	}
  2714  	if s.Tags == nil {
  2715  		invalidParams.Add(request.NewErrParamRequired("Tags"))
  2716  	}
  2717  
  2718  	if invalidParams.Len() > 0 {
  2719  		return invalidParams
  2720  	}
  2721  	return nil
  2722  }
  2723  
  2724  // SetResourceArn sets the ResourceArn field's value.
  2725  func (s *TagResourceInput) SetResourceArn(v string) *TagResourceInput {
  2726  	s.ResourceArn = &v
  2727  	return s
  2728  }
  2729  
  2730  // SetTags sets the Tags field's value.
  2731  func (s *TagResourceInput) SetTags(v map[string]*string) *TagResourceInput {
  2732  	s.Tags = v
  2733  	return s
  2734  }
  2735  
  2736  type TagResourceOutput struct {
  2737  	_ struct{} `type:"structure" nopayload:"true"`
  2738  }
  2739  
  2740  // String returns the string representation.
  2741  //
  2742  // API parameter values that are decorated as "sensitive" in the API will not
  2743  // be included in the string output. The member name will be present, but the
  2744  // value will be replaced with "sensitive".
  2745  func (s TagResourceOutput) String() string {
  2746  	return awsutil.Prettify(s)
  2747  }
  2748  
  2749  // GoString returns the string representation.
  2750  //
  2751  // API parameter values that are decorated as "sensitive" in the API will not
  2752  // be included in the string output. The member name will be present, but the
  2753  // value will be replaced with "sensitive".
  2754  func (s TagResourceOutput) GoString() string {
  2755  	return s.String()
  2756  }
  2757  
  2758  // The throttling rate limit is met.
  2759  type ThrottlingException struct {
  2760  	_            struct{}                  `type:"structure"`
  2761  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  2762  
  2763  	Message_ *string `locationName:"message" type:"string"`
  2764  }
  2765  
  2766  // String returns the string representation.
  2767  //
  2768  // API parameter values that are decorated as "sensitive" in the API will not
  2769  // be included in the string output. The member name will be present, but the
  2770  // value will be replaced with "sensitive".
  2771  func (s ThrottlingException) String() string {
  2772  	return awsutil.Prettify(s)
  2773  }
  2774  
  2775  // GoString returns the string representation.
  2776  //
  2777  // API parameter values that are decorated as "sensitive" in the API will not
  2778  // be included in the string output. The member name will be present, but the
  2779  // value will be replaced with "sensitive".
  2780  func (s ThrottlingException) GoString() string {
  2781  	return s.String()
  2782  }
  2783  
  2784  func newErrorThrottlingException(v protocol.ResponseMetadata) error {
  2785  	return &ThrottlingException{
  2786  		RespMetadata: v,
  2787  	}
  2788  }
  2789  
  2790  // Code returns the exception type name.
  2791  func (s *ThrottlingException) Code() string {
  2792  	return "ThrottlingException"
  2793  }
  2794  
  2795  // Message returns the exception's message.
  2796  func (s *ThrottlingException) Message() string {
  2797  	if s.Message_ != nil {
  2798  		return *s.Message_
  2799  	}
  2800  	return ""
  2801  }
  2802  
  2803  // OrigErr always returns nil, satisfies awserr.Error interface.
  2804  func (s *ThrottlingException) OrigErr() error {
  2805  	return nil
  2806  }
  2807  
  2808  func (s *ThrottlingException) Error() string {
  2809  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  2810  }
  2811  
  2812  // Status code returns the HTTP status code for the request's response error.
  2813  func (s *ThrottlingException) StatusCode() int {
  2814  	return s.RespMetadata.StatusCode
  2815  }
  2816  
  2817  // RequestID returns the service's response RequestID for request.
  2818  func (s *ThrottlingException) RequestID() string {
  2819  	return s.RespMetadata.RequestID
  2820  }
  2821  
  2822  type UntagResourceInput struct {
  2823  	_ struct{} `type:"structure" nopayload:"true"`
  2824  
  2825  	// Specify the resourceArn for the resource from which to remove the tags.
  2826  	//
  2827  	// ResourceArn is a required field
  2828  	ResourceArn *string `location:"uri" locationName:"resourceArn" type:"string" required:"true"`
  2829  
  2830  	// Specify the keys for the tags to remove from the resource.
  2831  	//
  2832  	// TagKeys is a required field
  2833  	TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"`
  2834  }
  2835  
  2836  // String returns the string representation.
  2837  //
  2838  // API parameter values that are decorated as "sensitive" in the API will not
  2839  // be included in the string output. The member name will be present, but the
  2840  // value will be replaced with "sensitive".
  2841  func (s UntagResourceInput) String() string {
  2842  	return awsutil.Prettify(s)
  2843  }
  2844  
  2845  // GoString returns the string representation.
  2846  //
  2847  // API parameter values that are decorated as "sensitive" in the API will not
  2848  // be included in the string output. The member name will be present, but the
  2849  // value will be replaced with "sensitive".
  2850  func (s UntagResourceInput) GoString() string {
  2851  	return s.String()
  2852  }
  2853  
  2854  // Validate inspects the fields of the type to determine if they are valid.
  2855  func (s *UntagResourceInput) Validate() error {
  2856  	invalidParams := request.ErrInvalidParams{Context: "UntagResourceInput"}
  2857  	if s.ResourceArn == nil {
  2858  		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
  2859  	}
  2860  	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
  2861  		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
  2862  	}
  2863  	if s.TagKeys == nil {
  2864  		invalidParams.Add(request.NewErrParamRequired("TagKeys"))
  2865  	}
  2866  
  2867  	if invalidParams.Len() > 0 {
  2868  		return invalidParams
  2869  	}
  2870  	return nil
  2871  }
  2872  
  2873  // SetResourceArn sets the ResourceArn field's value.
  2874  func (s *UntagResourceInput) SetResourceArn(v string) *UntagResourceInput {
  2875  	s.ResourceArn = &v
  2876  	return s
  2877  }
  2878  
  2879  // SetTagKeys sets the TagKeys field's value.
  2880  func (s *UntagResourceInput) SetTagKeys(v []*string) *UntagResourceInput {
  2881  	s.TagKeys = v
  2882  	return s
  2883  }
  2884  
  2885  type UntagResourceOutput struct {
  2886  	_ struct{} `type:"structure" nopayload:"true"`
  2887  }
  2888  
  2889  // String returns the string representation.
  2890  //
  2891  // API parameter values that are decorated as "sensitive" in the API will not
  2892  // be included in the string output. The member name will be present, but the
  2893  // value will be replaced with "sensitive".
  2894  func (s UntagResourceOutput) String() string {
  2895  	return awsutil.Prettify(s)
  2896  }
  2897  
  2898  // GoString returns the string representation.
  2899  //
  2900  // API parameter values that are decorated as "sensitive" in the API will not
  2901  // be included in the string output. The member name will be present, but the
  2902  // value will be replaced with "sensitive".
  2903  func (s UntagResourceOutput) GoString() string {
  2904  	return s.String()
  2905  }
  2906  
  2907  // The input fails to satisfy the constraints specified by an AWS service.
  2908  type ValidationException struct {
  2909  	_            struct{}                  `type:"structure"`
  2910  	RespMetadata protocol.ResponseMetadata `json:"-" xml:"-"`
  2911  
  2912  	Message_ *string `locationName:"message" type:"string"`
  2913  }
  2914  
  2915  // String returns the string representation.
  2916  //
  2917  // API parameter values that are decorated as "sensitive" in the API will not
  2918  // be included in the string output. The member name will be present, but the
  2919  // value will be replaced with "sensitive".
  2920  func (s ValidationException) String() string {
  2921  	return awsutil.Prettify(s)
  2922  }
  2923  
  2924  // GoString returns the string representation.
  2925  //
  2926  // API parameter values that are decorated as "sensitive" in the API will not
  2927  // be included in the string output. The member name will be present, but the
  2928  // value will be replaced with "sensitive".
  2929  func (s ValidationException) GoString() string {
  2930  	return s.String()
  2931  }
  2932  
  2933  func newErrorValidationException(v protocol.ResponseMetadata) error {
  2934  	return &ValidationException{
  2935  		RespMetadata: v,
  2936  	}
  2937  }
  2938  
  2939  // Code returns the exception type name.
  2940  func (s *ValidationException) Code() string {
  2941  	return "ValidationException"
  2942  }
  2943  
  2944  // Message returns the exception's message.
  2945  func (s *ValidationException) Message() string {
  2946  	if s.Message_ != nil {
  2947  		return *s.Message_
  2948  	}
  2949  	return ""
  2950  }
  2951  
  2952  // OrigErr always returns nil, satisfies awserr.Error interface.
  2953  func (s *ValidationException) OrigErr() error {
  2954  	return nil
  2955  }
  2956  
  2957  func (s *ValidationException) Error() string {
  2958  	return fmt.Sprintf("%s: %s", s.Code(), s.Message())
  2959  }
  2960  
  2961  // Status code returns the HTTP status code for the request's response error.
  2962  func (s *ValidationException) StatusCode() int {
  2963  	return s.RespMetadata.StatusCode
  2964  }
  2965  
  2966  // RequestID returns the service's response RequestID for request.
  2967  func (s *ValidationException) RequestID() string {
  2968  	return s.RespMetadata.RequestID
  2969  }
  2970  
  2971  const (
  2972  	// CancellationStatusCancelling is a CancellationStatus enum value
  2973  	CancellationStatusCancelling = "CANCELLING"
  2974  
  2975  	// CancellationStatusCancelled is a CancellationStatus enum value
  2976  	CancellationStatusCancelled = "CANCELLED"
  2977  )
  2978  
  2979  // CancellationStatus_Values returns all elements of the CancellationStatus enum
  2980  func CancellationStatus_Values() []string {
  2981  	return []string{
  2982  		CancellationStatusCancelling,
  2983  		CancellationStatusCancelled,
  2984  	}
  2985  }
  2986  
  2987  const (
  2988  	// DeviceStatusOnline is a DeviceStatus enum value
  2989  	DeviceStatusOnline = "ONLINE"
  2990  
  2991  	// DeviceStatusOffline is a DeviceStatus enum value
  2992  	DeviceStatusOffline = "OFFLINE"
  2993  
  2994  	// DeviceStatusRetired is a DeviceStatus enum value
  2995  	DeviceStatusRetired = "RETIRED"
  2996  )
  2997  
  2998  // DeviceStatus_Values returns all elements of the DeviceStatus enum
  2999  func DeviceStatus_Values() []string {
  3000  	return []string{
  3001  		DeviceStatusOnline,
  3002  		DeviceStatusOffline,
  3003  		DeviceStatusRetired,
  3004  	}
  3005  }
  3006  
  3007  const (
  3008  	// DeviceTypeQpu is a DeviceType enum value
  3009  	DeviceTypeQpu = "QPU"
  3010  
  3011  	// DeviceTypeSimulator is a DeviceType enum value
  3012  	DeviceTypeSimulator = "SIMULATOR"
  3013  )
  3014  
  3015  // DeviceType_Values returns all elements of the DeviceType enum
  3016  func DeviceType_Values() []string {
  3017  	return []string{
  3018  		DeviceTypeQpu,
  3019  		DeviceTypeSimulator,
  3020  	}
  3021  }
  3022  
  3023  const (
  3024  	// QuantumTaskStatusCreated is a QuantumTaskStatus enum value
  3025  	QuantumTaskStatusCreated = "CREATED"
  3026  
  3027  	// QuantumTaskStatusQueued is a QuantumTaskStatus enum value
  3028  	QuantumTaskStatusQueued = "QUEUED"
  3029  
  3030  	// QuantumTaskStatusRunning is a QuantumTaskStatus enum value
  3031  	QuantumTaskStatusRunning = "RUNNING"
  3032  
  3033  	// QuantumTaskStatusCompleted is a QuantumTaskStatus enum value
  3034  	QuantumTaskStatusCompleted = "COMPLETED"
  3035  
  3036  	// QuantumTaskStatusFailed is a QuantumTaskStatus enum value
  3037  	QuantumTaskStatusFailed = "FAILED"
  3038  
  3039  	// QuantumTaskStatusCancelling is a QuantumTaskStatus enum value
  3040  	QuantumTaskStatusCancelling = "CANCELLING"
  3041  
  3042  	// QuantumTaskStatusCancelled is a QuantumTaskStatus enum value
  3043  	QuantumTaskStatusCancelled = "CANCELLED"
  3044  )
  3045  
  3046  // QuantumTaskStatus_Values returns all elements of the QuantumTaskStatus enum
  3047  func QuantumTaskStatus_Values() []string {
  3048  	return []string{
  3049  		QuantumTaskStatusCreated,
  3050  		QuantumTaskStatusQueued,
  3051  		QuantumTaskStatusRunning,
  3052  		QuantumTaskStatusCompleted,
  3053  		QuantumTaskStatusFailed,
  3054  		QuantumTaskStatusCancelling,
  3055  		QuantumTaskStatusCancelled,
  3056  	}
  3057  }
  3058  
  3059  const (
  3060  	// SearchQuantumTasksFilterOperatorLt is a SearchQuantumTasksFilterOperator enum value
  3061  	SearchQuantumTasksFilterOperatorLt = "LT"
  3062  
  3063  	// SearchQuantumTasksFilterOperatorLte is a SearchQuantumTasksFilterOperator enum value
  3064  	SearchQuantumTasksFilterOperatorLte = "LTE"
  3065  
  3066  	// SearchQuantumTasksFilterOperatorEqual is a SearchQuantumTasksFilterOperator enum value
  3067  	SearchQuantumTasksFilterOperatorEqual = "EQUAL"
  3068  
  3069  	// SearchQuantumTasksFilterOperatorGt is a SearchQuantumTasksFilterOperator enum value
  3070  	SearchQuantumTasksFilterOperatorGt = "GT"
  3071  
  3072  	// SearchQuantumTasksFilterOperatorGte is a SearchQuantumTasksFilterOperator enum value
  3073  	SearchQuantumTasksFilterOperatorGte = "GTE"
  3074  
  3075  	// SearchQuantumTasksFilterOperatorBetween is a SearchQuantumTasksFilterOperator enum value
  3076  	SearchQuantumTasksFilterOperatorBetween = "BETWEEN"
  3077  )
  3078  
  3079  // SearchQuantumTasksFilterOperator_Values returns all elements of the SearchQuantumTasksFilterOperator enum
  3080  func SearchQuantumTasksFilterOperator_Values() []string {
  3081  	return []string{
  3082  		SearchQuantumTasksFilterOperatorLt,
  3083  		SearchQuantumTasksFilterOperatorLte,
  3084  		SearchQuantumTasksFilterOperatorEqual,
  3085  		SearchQuantumTasksFilterOperatorGt,
  3086  		SearchQuantumTasksFilterOperatorGte,
  3087  		SearchQuantumTasksFilterOperatorBetween,
  3088  	}
  3089  }