1// Code generated by private/model/cli/gen-api/main.go. DO NOT EDIT.
2
3package mq
4
5import (
6	"fmt"
7	"time"
8
9	"github.com/aws/aws-sdk-go/aws"
10	"github.com/aws/aws-sdk-go/aws/awsutil"
11	"github.com/aws/aws-sdk-go/aws/request"
12	"github.com/aws/aws-sdk-go/private/protocol"
13	"github.com/aws/aws-sdk-go/private/protocol/restjson"
14)
15
16const opCreateBroker = "CreateBroker"
17
18// CreateBrokerRequest generates a "aws/request.Request" representing the
19// client's request for the CreateBroker 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 CreateBroker for more information on using the CreateBroker
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 CreateBrokerRequest method.
34//    req, resp := client.CreateBrokerRequest(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/mq-2017-11-27/CreateBroker
42func (c *MQ) CreateBrokerRequest(input *CreateBrokerRequest) (req *request.Request, output *CreateBrokerResponse) {
43	op := &request.Operation{
44		Name:       opCreateBroker,
45		HTTPMethod: "POST",
46		HTTPPath:   "/v1/brokers",
47	}
48
49	if input == nil {
50		input = &CreateBrokerRequest{}
51	}
52
53	output = &CreateBrokerResponse{}
54	req = c.newRequest(op, input, output)
55	return
56}
57
58// CreateBroker API operation for AmazonMQ.
59//
60// Creates a broker. Note: This API is asynchronous.
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 AmazonMQ's
67// API operation CreateBroker for usage and error information.
68//
69// Returned Error Types:
70//   * BadRequestException
71//   Returns information about an error.
72//
73//   * UnauthorizedException
74//   Returns information about an error.
75//
76//   * InternalServerErrorException
77//   Returns information about an error.
78//
79//   * ConflictException
80//   Returns information about an error.
81//
82//   * ForbiddenException
83//   Returns information about an error.
84//
85// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateBroker
86func (c *MQ) CreateBroker(input *CreateBrokerRequest) (*CreateBrokerResponse, error) {
87	req, out := c.CreateBrokerRequest(input)
88	return out, req.Send()
89}
90
91// CreateBrokerWithContext is the same as CreateBroker with the addition of
92// the ability to pass a context and additional request options.
93//
94// See CreateBroker for details on how to use this API operation.
95//
96// The context must be non-nil and will be used for request cancellation. If
97// the context is nil a panic will occur. In the future the SDK may create
98// sub-contexts for http.Requests. See https://golang.org/pkg/context/
99// for more information on using Contexts.
100func (c *MQ) CreateBrokerWithContext(ctx aws.Context, input *CreateBrokerRequest, opts ...request.Option) (*CreateBrokerResponse, error) {
101	req, out := c.CreateBrokerRequest(input)
102	req.SetContext(ctx)
103	req.ApplyOptions(opts...)
104	return out, req.Send()
105}
106
107const opCreateConfiguration = "CreateConfiguration"
108
109// CreateConfigurationRequest generates a "aws/request.Request" representing the
110// client's request for the CreateConfiguration operation. The "output" return
111// value will be populated with the request's response once the request completes
112// successfully.
113//
114// Use "Send" method on the returned Request to send the API call to the service.
115// the "output" return value is not valid until after Send returns without error.
116//
117// See CreateConfiguration for more information on using the CreateConfiguration
118// API call, and error handling.
119//
120// This method is useful when you want to inject custom logic or configuration
121// into the SDK's request lifecycle. Such as custom headers, or retry logic.
122//
123//
124//    // Example sending a request using the CreateConfigurationRequest method.
125//    req, resp := client.CreateConfigurationRequest(params)
126//
127//    err := req.Send()
128//    if err == nil { // resp is now filled
129//        fmt.Println(resp)
130//    }
131//
132// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateConfiguration
133func (c *MQ) CreateConfigurationRequest(input *CreateConfigurationRequest) (req *request.Request, output *CreateConfigurationResponse) {
134	op := &request.Operation{
135		Name:       opCreateConfiguration,
136		HTTPMethod: "POST",
137		HTTPPath:   "/v1/configurations",
138	}
139
140	if input == nil {
141		input = &CreateConfigurationRequest{}
142	}
143
144	output = &CreateConfigurationResponse{}
145	req = c.newRequest(op, input, output)
146	return
147}
148
149// CreateConfiguration API operation for AmazonMQ.
150//
151// Creates a new configuration for the specified configuration name. Amazon
152// MQ uses the default configuration (the engine type and version).
153//
154// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
155// with awserr.Error's Code and Message methods to get detailed information about
156// the error.
157//
158// See the AWS API reference guide for AmazonMQ's
159// API operation CreateConfiguration for usage and error information.
160//
161// Returned Error Types:
162//   * BadRequestException
163//   Returns information about an error.
164//
165//   * InternalServerErrorException
166//   Returns information about an error.
167//
168//   * ConflictException
169//   Returns information about an error.
170//
171//   * ForbiddenException
172//   Returns information about an error.
173//
174// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateConfiguration
175func (c *MQ) CreateConfiguration(input *CreateConfigurationRequest) (*CreateConfigurationResponse, error) {
176	req, out := c.CreateConfigurationRequest(input)
177	return out, req.Send()
178}
179
180// CreateConfigurationWithContext is the same as CreateConfiguration with the addition of
181// the ability to pass a context and additional request options.
182//
183// See CreateConfiguration for details on how to use this API operation.
184//
185// The context must be non-nil and will be used for request cancellation. If
186// the context is nil a panic will occur. In the future the SDK may create
187// sub-contexts for http.Requests. See https://golang.org/pkg/context/
188// for more information on using Contexts.
189func (c *MQ) CreateConfigurationWithContext(ctx aws.Context, input *CreateConfigurationRequest, opts ...request.Option) (*CreateConfigurationResponse, error) {
190	req, out := c.CreateConfigurationRequest(input)
191	req.SetContext(ctx)
192	req.ApplyOptions(opts...)
193	return out, req.Send()
194}
195
196const opCreateTags = "CreateTags"
197
198// CreateTagsRequest generates a "aws/request.Request" representing the
199// client's request for the CreateTags operation. The "output" return
200// value will be populated with the request's response once the request completes
201// successfully.
202//
203// Use "Send" method on the returned Request to send the API call to the service.
204// the "output" return value is not valid until after Send returns without error.
205//
206// See CreateTags for more information on using the CreateTags
207// API call, and error handling.
208//
209// This method is useful when you want to inject custom logic or configuration
210// into the SDK's request lifecycle. Such as custom headers, or retry logic.
211//
212//
213//    // Example sending a request using the CreateTagsRequest method.
214//    req, resp := client.CreateTagsRequest(params)
215//
216//    err := req.Send()
217//    if err == nil { // resp is now filled
218//        fmt.Println(resp)
219//    }
220//
221// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateTags
222func (c *MQ) CreateTagsRequest(input *CreateTagsInput) (req *request.Request, output *CreateTagsOutput) {
223	op := &request.Operation{
224		Name:       opCreateTags,
225		HTTPMethod: "POST",
226		HTTPPath:   "/v1/tags/{resource-arn}",
227	}
228
229	if input == nil {
230		input = &CreateTagsInput{}
231	}
232
233	output = &CreateTagsOutput{}
234	req = c.newRequest(op, input, output)
235	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
236	return
237}
238
239// CreateTags API operation for AmazonMQ.
240//
241// Add a tag to a resource.
242//
243// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
244// with awserr.Error's Code and Message methods to get detailed information about
245// the error.
246//
247// See the AWS API reference guide for AmazonMQ's
248// API operation CreateTags for usage and error information.
249//
250// Returned Error Types:
251//   * NotFoundException
252//   Returns information about an error.
253//
254//   * BadRequestException
255//   Returns information about an error.
256//
257//   * InternalServerErrorException
258//   Returns information about an error.
259//
260//   * ForbiddenException
261//   Returns information about an error.
262//
263// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateTags
264func (c *MQ) CreateTags(input *CreateTagsInput) (*CreateTagsOutput, error) {
265	req, out := c.CreateTagsRequest(input)
266	return out, req.Send()
267}
268
269// CreateTagsWithContext is the same as CreateTags with the addition of
270// the ability to pass a context and additional request options.
271//
272// See CreateTags for details on how to use this API operation.
273//
274// The context must be non-nil and will be used for request cancellation. If
275// the context is nil a panic will occur. In the future the SDK may create
276// sub-contexts for http.Requests. See https://golang.org/pkg/context/
277// for more information on using Contexts.
278func (c *MQ) CreateTagsWithContext(ctx aws.Context, input *CreateTagsInput, opts ...request.Option) (*CreateTagsOutput, error) {
279	req, out := c.CreateTagsRequest(input)
280	req.SetContext(ctx)
281	req.ApplyOptions(opts...)
282	return out, req.Send()
283}
284
285const opCreateUser = "CreateUser"
286
287// CreateUserRequest generates a "aws/request.Request" representing the
288// client's request for the CreateUser operation. The "output" return
289// value will be populated with the request's response once the request completes
290// successfully.
291//
292// Use "Send" method on the returned Request to send the API call to the service.
293// the "output" return value is not valid until after Send returns without error.
294//
295// See CreateUser for more information on using the CreateUser
296// API call, and error handling.
297//
298// This method is useful when you want to inject custom logic or configuration
299// into the SDK's request lifecycle. Such as custom headers, or retry logic.
300//
301//
302//    // Example sending a request using the CreateUserRequest method.
303//    req, resp := client.CreateUserRequest(params)
304//
305//    err := req.Send()
306//    if err == nil { // resp is now filled
307//        fmt.Println(resp)
308//    }
309//
310// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateUser
311func (c *MQ) CreateUserRequest(input *CreateUserRequest) (req *request.Request, output *CreateUserOutput) {
312	op := &request.Operation{
313		Name:       opCreateUser,
314		HTTPMethod: "POST",
315		HTTPPath:   "/v1/brokers/{broker-id}/users/{username}",
316	}
317
318	if input == nil {
319		input = &CreateUserRequest{}
320	}
321
322	output = &CreateUserOutput{}
323	req = c.newRequest(op, input, output)
324	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
325	return
326}
327
328// CreateUser API operation for AmazonMQ.
329//
330// Creates an ActiveMQ user.
331//
332// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
333// with awserr.Error's Code and Message methods to get detailed information about
334// the error.
335//
336// See the AWS API reference guide for AmazonMQ's
337// API operation CreateUser for usage and error information.
338//
339// Returned Error Types:
340//   * NotFoundException
341//   Returns information about an error.
342//
343//   * BadRequestException
344//   Returns information about an error.
345//
346//   * InternalServerErrorException
347//   Returns information about an error.
348//
349//   * ConflictException
350//   Returns information about an error.
351//
352//   * ForbiddenException
353//   Returns information about an error.
354//
355// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/CreateUser
356func (c *MQ) CreateUser(input *CreateUserRequest) (*CreateUserOutput, error) {
357	req, out := c.CreateUserRequest(input)
358	return out, req.Send()
359}
360
361// CreateUserWithContext is the same as CreateUser with the addition of
362// the ability to pass a context and additional request options.
363//
364// See CreateUser for details on how to use this API operation.
365//
366// The context must be non-nil and will be used for request cancellation. If
367// the context is nil a panic will occur. In the future the SDK may create
368// sub-contexts for http.Requests. See https://golang.org/pkg/context/
369// for more information on using Contexts.
370func (c *MQ) CreateUserWithContext(ctx aws.Context, input *CreateUserRequest, opts ...request.Option) (*CreateUserOutput, error) {
371	req, out := c.CreateUserRequest(input)
372	req.SetContext(ctx)
373	req.ApplyOptions(opts...)
374	return out, req.Send()
375}
376
377const opDeleteBroker = "DeleteBroker"
378
379// DeleteBrokerRequest generates a "aws/request.Request" representing the
380// client's request for the DeleteBroker operation. The "output" return
381// value will be populated with the request's response once the request completes
382// successfully.
383//
384// Use "Send" method on the returned Request to send the API call to the service.
385// the "output" return value is not valid until after Send returns without error.
386//
387// See DeleteBroker for more information on using the DeleteBroker
388// API call, and error handling.
389//
390// This method is useful when you want to inject custom logic or configuration
391// into the SDK's request lifecycle. Such as custom headers, or retry logic.
392//
393//
394//    // Example sending a request using the DeleteBrokerRequest method.
395//    req, resp := client.DeleteBrokerRequest(params)
396//
397//    err := req.Send()
398//    if err == nil { // resp is now filled
399//        fmt.Println(resp)
400//    }
401//
402// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteBroker
403func (c *MQ) DeleteBrokerRequest(input *DeleteBrokerInput) (req *request.Request, output *DeleteBrokerResponse) {
404	op := &request.Operation{
405		Name:       opDeleteBroker,
406		HTTPMethod: "DELETE",
407		HTTPPath:   "/v1/brokers/{broker-id}",
408	}
409
410	if input == nil {
411		input = &DeleteBrokerInput{}
412	}
413
414	output = &DeleteBrokerResponse{}
415	req = c.newRequest(op, input, output)
416	return
417}
418
419// DeleteBroker API operation for AmazonMQ.
420//
421// Deletes a broker. Note: This API is asynchronous.
422//
423// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
424// with awserr.Error's Code and Message methods to get detailed information about
425// the error.
426//
427// See the AWS API reference guide for AmazonMQ's
428// API operation DeleteBroker for usage and error information.
429//
430// Returned Error Types:
431//   * NotFoundException
432//   Returns information about an error.
433//
434//   * BadRequestException
435//   Returns information about an error.
436//
437//   * InternalServerErrorException
438//   Returns information about an error.
439//
440//   * ForbiddenException
441//   Returns information about an error.
442//
443// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteBroker
444func (c *MQ) DeleteBroker(input *DeleteBrokerInput) (*DeleteBrokerResponse, error) {
445	req, out := c.DeleteBrokerRequest(input)
446	return out, req.Send()
447}
448
449// DeleteBrokerWithContext is the same as DeleteBroker with the addition of
450// the ability to pass a context and additional request options.
451//
452// See DeleteBroker for details on how to use this API operation.
453//
454// The context must be non-nil and will be used for request cancellation. If
455// the context is nil a panic will occur. In the future the SDK may create
456// sub-contexts for http.Requests. See https://golang.org/pkg/context/
457// for more information on using Contexts.
458func (c *MQ) DeleteBrokerWithContext(ctx aws.Context, input *DeleteBrokerInput, opts ...request.Option) (*DeleteBrokerResponse, error) {
459	req, out := c.DeleteBrokerRequest(input)
460	req.SetContext(ctx)
461	req.ApplyOptions(opts...)
462	return out, req.Send()
463}
464
465const opDeleteTags = "DeleteTags"
466
467// DeleteTagsRequest generates a "aws/request.Request" representing the
468// client's request for the DeleteTags operation. The "output" return
469// value will be populated with the request's response once the request completes
470// successfully.
471//
472// Use "Send" method on the returned Request to send the API call to the service.
473// the "output" return value is not valid until after Send returns without error.
474//
475// See DeleteTags for more information on using the DeleteTags
476// API call, and error handling.
477//
478// This method is useful when you want to inject custom logic or configuration
479// into the SDK's request lifecycle. Such as custom headers, or retry logic.
480//
481//
482//    // Example sending a request using the DeleteTagsRequest method.
483//    req, resp := client.DeleteTagsRequest(params)
484//
485//    err := req.Send()
486//    if err == nil { // resp is now filled
487//        fmt.Println(resp)
488//    }
489//
490// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteTags
491func (c *MQ) DeleteTagsRequest(input *DeleteTagsInput) (req *request.Request, output *DeleteTagsOutput) {
492	op := &request.Operation{
493		Name:       opDeleteTags,
494		HTTPMethod: "DELETE",
495		HTTPPath:   "/v1/tags/{resource-arn}",
496	}
497
498	if input == nil {
499		input = &DeleteTagsInput{}
500	}
501
502	output = &DeleteTagsOutput{}
503	req = c.newRequest(op, input, output)
504	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
505	return
506}
507
508// DeleteTags API operation for AmazonMQ.
509//
510// Removes a tag from a resource.
511//
512// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
513// with awserr.Error's Code and Message methods to get detailed information about
514// the error.
515//
516// See the AWS API reference guide for AmazonMQ's
517// API operation DeleteTags for usage and error information.
518//
519// Returned Error Types:
520//   * NotFoundException
521//   Returns information about an error.
522//
523//   * BadRequestException
524//   Returns information about an error.
525//
526//   * InternalServerErrorException
527//   Returns information about an error.
528//
529//   * ForbiddenException
530//   Returns information about an error.
531//
532// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteTags
533func (c *MQ) DeleteTags(input *DeleteTagsInput) (*DeleteTagsOutput, error) {
534	req, out := c.DeleteTagsRequest(input)
535	return out, req.Send()
536}
537
538// DeleteTagsWithContext is the same as DeleteTags with the addition of
539// the ability to pass a context and additional request options.
540//
541// See DeleteTags for details on how to use this API operation.
542//
543// The context must be non-nil and will be used for request cancellation. If
544// the context is nil a panic will occur. In the future the SDK may create
545// sub-contexts for http.Requests. See https://golang.org/pkg/context/
546// for more information on using Contexts.
547func (c *MQ) DeleteTagsWithContext(ctx aws.Context, input *DeleteTagsInput, opts ...request.Option) (*DeleteTagsOutput, error) {
548	req, out := c.DeleteTagsRequest(input)
549	req.SetContext(ctx)
550	req.ApplyOptions(opts...)
551	return out, req.Send()
552}
553
554const opDeleteUser = "DeleteUser"
555
556// DeleteUserRequest generates a "aws/request.Request" representing the
557// client's request for the DeleteUser operation. The "output" return
558// value will be populated with the request's response once the request completes
559// successfully.
560//
561// Use "Send" method on the returned Request to send the API call to the service.
562// the "output" return value is not valid until after Send returns without error.
563//
564// See DeleteUser for more information on using the DeleteUser
565// API call, and error handling.
566//
567// This method is useful when you want to inject custom logic or configuration
568// into the SDK's request lifecycle. Such as custom headers, or retry logic.
569//
570//
571//    // Example sending a request using the DeleteUserRequest method.
572//    req, resp := client.DeleteUserRequest(params)
573//
574//    err := req.Send()
575//    if err == nil { // resp is now filled
576//        fmt.Println(resp)
577//    }
578//
579// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteUser
580func (c *MQ) DeleteUserRequest(input *DeleteUserInput) (req *request.Request, output *DeleteUserOutput) {
581	op := &request.Operation{
582		Name:       opDeleteUser,
583		HTTPMethod: "DELETE",
584		HTTPPath:   "/v1/brokers/{broker-id}/users/{username}",
585	}
586
587	if input == nil {
588		input = &DeleteUserInput{}
589	}
590
591	output = &DeleteUserOutput{}
592	req = c.newRequest(op, input, output)
593	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
594	return
595}
596
597// DeleteUser API operation for AmazonMQ.
598//
599// Deletes an ActiveMQ user.
600//
601// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
602// with awserr.Error's Code and Message methods to get detailed information about
603// the error.
604//
605// See the AWS API reference guide for AmazonMQ's
606// API operation DeleteUser for usage and error information.
607//
608// Returned Error Types:
609//   * NotFoundException
610//   Returns information about an error.
611//
612//   * BadRequestException
613//   Returns information about an error.
614//
615//   * InternalServerErrorException
616//   Returns information about an error.
617//
618//   * ForbiddenException
619//   Returns information about an error.
620//
621// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DeleteUser
622func (c *MQ) DeleteUser(input *DeleteUserInput) (*DeleteUserOutput, error) {
623	req, out := c.DeleteUserRequest(input)
624	return out, req.Send()
625}
626
627// DeleteUserWithContext is the same as DeleteUser with the addition of
628// the ability to pass a context and additional request options.
629//
630// See DeleteUser for details on how to use this API operation.
631//
632// The context must be non-nil and will be used for request cancellation. If
633// the context is nil a panic will occur. In the future the SDK may create
634// sub-contexts for http.Requests. See https://golang.org/pkg/context/
635// for more information on using Contexts.
636func (c *MQ) DeleteUserWithContext(ctx aws.Context, input *DeleteUserInput, opts ...request.Option) (*DeleteUserOutput, error) {
637	req, out := c.DeleteUserRequest(input)
638	req.SetContext(ctx)
639	req.ApplyOptions(opts...)
640	return out, req.Send()
641}
642
643const opDescribeBroker = "DescribeBroker"
644
645// DescribeBrokerRequest generates a "aws/request.Request" representing the
646// client's request for the DescribeBroker operation. The "output" return
647// value will be populated with the request's response once the request completes
648// successfully.
649//
650// Use "Send" method on the returned Request to send the API call to the service.
651// the "output" return value is not valid until after Send returns without error.
652//
653// See DescribeBroker for more information on using the DescribeBroker
654// API call, and error handling.
655//
656// This method is useful when you want to inject custom logic or configuration
657// into the SDK's request lifecycle. Such as custom headers, or retry logic.
658//
659//
660//    // Example sending a request using the DescribeBrokerRequest method.
661//    req, resp := client.DescribeBrokerRequest(params)
662//
663//    err := req.Send()
664//    if err == nil { // resp is now filled
665//        fmt.Println(resp)
666//    }
667//
668// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBroker
669func (c *MQ) DescribeBrokerRequest(input *DescribeBrokerInput) (req *request.Request, output *DescribeBrokerResponse) {
670	op := &request.Operation{
671		Name:       opDescribeBroker,
672		HTTPMethod: "GET",
673		HTTPPath:   "/v1/brokers/{broker-id}",
674	}
675
676	if input == nil {
677		input = &DescribeBrokerInput{}
678	}
679
680	output = &DescribeBrokerResponse{}
681	req = c.newRequest(op, input, output)
682	return
683}
684
685// DescribeBroker API operation for AmazonMQ.
686//
687// Returns information about the specified broker.
688//
689// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
690// with awserr.Error's Code and Message methods to get detailed information about
691// the error.
692//
693// See the AWS API reference guide for AmazonMQ's
694// API operation DescribeBroker for usage and error information.
695//
696// Returned Error Types:
697//   * NotFoundException
698//   Returns information about an error.
699//
700//   * BadRequestException
701//   Returns information about an error.
702//
703//   * InternalServerErrorException
704//   Returns information about an error.
705//
706//   * ForbiddenException
707//   Returns information about an error.
708//
709// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBroker
710func (c *MQ) DescribeBroker(input *DescribeBrokerInput) (*DescribeBrokerResponse, error) {
711	req, out := c.DescribeBrokerRequest(input)
712	return out, req.Send()
713}
714
715// DescribeBrokerWithContext is the same as DescribeBroker with the addition of
716// the ability to pass a context and additional request options.
717//
718// See DescribeBroker for details on how to use this API operation.
719//
720// The context must be non-nil and will be used for request cancellation. If
721// the context is nil a panic will occur. In the future the SDK may create
722// sub-contexts for http.Requests. See https://golang.org/pkg/context/
723// for more information on using Contexts.
724func (c *MQ) DescribeBrokerWithContext(ctx aws.Context, input *DescribeBrokerInput, opts ...request.Option) (*DescribeBrokerResponse, error) {
725	req, out := c.DescribeBrokerRequest(input)
726	req.SetContext(ctx)
727	req.ApplyOptions(opts...)
728	return out, req.Send()
729}
730
731const opDescribeBrokerEngineTypes = "DescribeBrokerEngineTypes"
732
733// DescribeBrokerEngineTypesRequest generates a "aws/request.Request" representing the
734// client's request for the DescribeBrokerEngineTypes operation. The "output" return
735// value will be populated with the request's response once the request completes
736// successfully.
737//
738// Use "Send" method on the returned Request to send the API call to the service.
739// the "output" return value is not valid until after Send returns without error.
740//
741// See DescribeBrokerEngineTypes for more information on using the DescribeBrokerEngineTypes
742// API call, and error handling.
743//
744// This method is useful when you want to inject custom logic or configuration
745// into the SDK's request lifecycle. Such as custom headers, or retry logic.
746//
747//
748//    // Example sending a request using the DescribeBrokerEngineTypesRequest method.
749//    req, resp := client.DescribeBrokerEngineTypesRequest(params)
750//
751//    err := req.Send()
752//    if err == nil { // resp is now filled
753//        fmt.Println(resp)
754//    }
755//
756// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBrokerEngineTypes
757func (c *MQ) DescribeBrokerEngineTypesRequest(input *DescribeBrokerEngineTypesInput) (req *request.Request, output *DescribeBrokerEngineTypesOutput) {
758	op := &request.Operation{
759		Name:       opDescribeBrokerEngineTypes,
760		HTTPMethod: "GET",
761		HTTPPath:   "/v1/broker-engine-types",
762	}
763
764	if input == nil {
765		input = &DescribeBrokerEngineTypesInput{}
766	}
767
768	output = &DescribeBrokerEngineTypesOutput{}
769	req = c.newRequest(op, input, output)
770	return
771}
772
773// DescribeBrokerEngineTypes API operation for AmazonMQ.
774//
775// Describe available engine types and versions.
776//
777// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
778// with awserr.Error's Code and Message methods to get detailed information about
779// the error.
780//
781// See the AWS API reference guide for AmazonMQ's
782// API operation DescribeBrokerEngineTypes for usage and error information.
783//
784// Returned Error Types:
785//   * BadRequestException
786//   Returns information about an error.
787//
788//   * InternalServerErrorException
789//   Returns information about an error.
790//
791//   * ForbiddenException
792//   Returns information about an error.
793//
794// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBrokerEngineTypes
795func (c *MQ) DescribeBrokerEngineTypes(input *DescribeBrokerEngineTypesInput) (*DescribeBrokerEngineTypesOutput, error) {
796	req, out := c.DescribeBrokerEngineTypesRequest(input)
797	return out, req.Send()
798}
799
800// DescribeBrokerEngineTypesWithContext is the same as DescribeBrokerEngineTypes with the addition of
801// the ability to pass a context and additional request options.
802//
803// See DescribeBrokerEngineTypes for details on how to use this API operation.
804//
805// The context must be non-nil and will be used for request cancellation. If
806// the context is nil a panic will occur. In the future the SDK may create
807// sub-contexts for http.Requests. See https://golang.org/pkg/context/
808// for more information on using Contexts.
809func (c *MQ) DescribeBrokerEngineTypesWithContext(ctx aws.Context, input *DescribeBrokerEngineTypesInput, opts ...request.Option) (*DescribeBrokerEngineTypesOutput, error) {
810	req, out := c.DescribeBrokerEngineTypesRequest(input)
811	req.SetContext(ctx)
812	req.ApplyOptions(opts...)
813	return out, req.Send()
814}
815
816const opDescribeBrokerInstanceOptions = "DescribeBrokerInstanceOptions"
817
818// DescribeBrokerInstanceOptionsRequest generates a "aws/request.Request" representing the
819// client's request for the DescribeBrokerInstanceOptions operation. The "output" return
820// value will be populated with the request's response once the request completes
821// successfully.
822//
823// Use "Send" method on the returned Request to send the API call to the service.
824// the "output" return value is not valid until after Send returns without error.
825//
826// See DescribeBrokerInstanceOptions for more information on using the DescribeBrokerInstanceOptions
827// API call, and error handling.
828//
829// This method is useful when you want to inject custom logic or configuration
830// into the SDK's request lifecycle. Such as custom headers, or retry logic.
831//
832//
833//    // Example sending a request using the DescribeBrokerInstanceOptionsRequest method.
834//    req, resp := client.DescribeBrokerInstanceOptionsRequest(params)
835//
836//    err := req.Send()
837//    if err == nil { // resp is now filled
838//        fmt.Println(resp)
839//    }
840//
841// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBrokerInstanceOptions
842func (c *MQ) DescribeBrokerInstanceOptionsRequest(input *DescribeBrokerInstanceOptionsInput) (req *request.Request, output *DescribeBrokerInstanceOptionsOutput) {
843	op := &request.Operation{
844		Name:       opDescribeBrokerInstanceOptions,
845		HTTPMethod: "GET",
846		HTTPPath:   "/v1/broker-instance-options",
847	}
848
849	if input == nil {
850		input = &DescribeBrokerInstanceOptionsInput{}
851	}
852
853	output = &DescribeBrokerInstanceOptionsOutput{}
854	req = c.newRequest(op, input, output)
855	return
856}
857
858// DescribeBrokerInstanceOptions API operation for AmazonMQ.
859//
860// Describe available broker instance options.
861//
862// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
863// with awserr.Error's Code and Message methods to get detailed information about
864// the error.
865//
866// See the AWS API reference guide for AmazonMQ's
867// API operation DescribeBrokerInstanceOptions for usage and error information.
868//
869// Returned Error Types:
870//   * BadRequestException
871//   Returns information about an error.
872//
873//   * InternalServerErrorException
874//   Returns information about an error.
875//
876//   * ForbiddenException
877//   Returns information about an error.
878//
879// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeBrokerInstanceOptions
880func (c *MQ) DescribeBrokerInstanceOptions(input *DescribeBrokerInstanceOptionsInput) (*DescribeBrokerInstanceOptionsOutput, error) {
881	req, out := c.DescribeBrokerInstanceOptionsRequest(input)
882	return out, req.Send()
883}
884
885// DescribeBrokerInstanceOptionsWithContext is the same as DescribeBrokerInstanceOptions with the addition of
886// the ability to pass a context and additional request options.
887//
888// See DescribeBrokerInstanceOptions for details on how to use this API operation.
889//
890// The context must be non-nil and will be used for request cancellation. If
891// the context is nil a panic will occur. In the future the SDK may create
892// sub-contexts for http.Requests. See https://golang.org/pkg/context/
893// for more information on using Contexts.
894func (c *MQ) DescribeBrokerInstanceOptionsWithContext(ctx aws.Context, input *DescribeBrokerInstanceOptionsInput, opts ...request.Option) (*DescribeBrokerInstanceOptionsOutput, error) {
895	req, out := c.DescribeBrokerInstanceOptionsRequest(input)
896	req.SetContext(ctx)
897	req.ApplyOptions(opts...)
898	return out, req.Send()
899}
900
901const opDescribeConfiguration = "DescribeConfiguration"
902
903// DescribeConfigurationRequest generates a "aws/request.Request" representing the
904// client's request for the DescribeConfiguration operation. The "output" return
905// value will be populated with the request's response once the request completes
906// successfully.
907//
908// Use "Send" method on the returned Request to send the API call to the service.
909// the "output" return value is not valid until after Send returns without error.
910//
911// See DescribeConfiguration for more information on using the DescribeConfiguration
912// API call, and error handling.
913//
914// This method is useful when you want to inject custom logic or configuration
915// into the SDK's request lifecycle. Such as custom headers, or retry logic.
916//
917//
918//    // Example sending a request using the DescribeConfigurationRequest method.
919//    req, resp := client.DescribeConfigurationRequest(params)
920//
921//    err := req.Send()
922//    if err == nil { // resp is now filled
923//        fmt.Println(resp)
924//    }
925//
926// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfiguration
927func (c *MQ) DescribeConfigurationRequest(input *DescribeConfigurationInput) (req *request.Request, output *DescribeConfigurationOutput) {
928	op := &request.Operation{
929		Name:       opDescribeConfiguration,
930		HTTPMethod: "GET",
931		HTTPPath:   "/v1/configurations/{configuration-id}",
932	}
933
934	if input == nil {
935		input = &DescribeConfigurationInput{}
936	}
937
938	output = &DescribeConfigurationOutput{}
939	req = c.newRequest(op, input, output)
940	return
941}
942
943// DescribeConfiguration API operation for AmazonMQ.
944//
945// Returns information about the specified configuration.
946//
947// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
948// with awserr.Error's Code and Message methods to get detailed information about
949// the error.
950//
951// See the AWS API reference guide for AmazonMQ's
952// API operation DescribeConfiguration for usage and error information.
953//
954// Returned Error Types:
955//   * NotFoundException
956//   Returns information about an error.
957//
958//   * BadRequestException
959//   Returns information about an error.
960//
961//   * InternalServerErrorException
962//   Returns information about an error.
963//
964//   * ForbiddenException
965//   Returns information about an error.
966//
967// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfiguration
968func (c *MQ) DescribeConfiguration(input *DescribeConfigurationInput) (*DescribeConfigurationOutput, error) {
969	req, out := c.DescribeConfigurationRequest(input)
970	return out, req.Send()
971}
972
973// DescribeConfigurationWithContext is the same as DescribeConfiguration with the addition of
974// the ability to pass a context and additional request options.
975//
976// See DescribeConfiguration for details on how to use this API operation.
977//
978// The context must be non-nil and will be used for request cancellation. If
979// the context is nil a panic will occur. In the future the SDK may create
980// sub-contexts for http.Requests. See https://golang.org/pkg/context/
981// for more information on using Contexts.
982func (c *MQ) DescribeConfigurationWithContext(ctx aws.Context, input *DescribeConfigurationInput, opts ...request.Option) (*DescribeConfigurationOutput, error) {
983	req, out := c.DescribeConfigurationRequest(input)
984	req.SetContext(ctx)
985	req.ApplyOptions(opts...)
986	return out, req.Send()
987}
988
989const opDescribeConfigurationRevision = "DescribeConfigurationRevision"
990
991// DescribeConfigurationRevisionRequest generates a "aws/request.Request" representing the
992// client's request for the DescribeConfigurationRevision operation. The "output" return
993// value will be populated with the request's response once the request completes
994// successfully.
995//
996// Use "Send" method on the returned Request to send the API call to the service.
997// the "output" return value is not valid until after Send returns without error.
998//
999// See DescribeConfigurationRevision for more information on using the DescribeConfigurationRevision
1000// API call, and error handling.
1001//
1002// This method is useful when you want to inject custom logic or configuration
1003// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1004//
1005//
1006//    // Example sending a request using the DescribeConfigurationRevisionRequest method.
1007//    req, resp := client.DescribeConfigurationRevisionRequest(params)
1008//
1009//    err := req.Send()
1010//    if err == nil { // resp is now filled
1011//        fmt.Println(resp)
1012//    }
1013//
1014// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRevision
1015func (c *MQ) DescribeConfigurationRevisionRequest(input *DescribeConfigurationRevisionInput) (req *request.Request, output *DescribeConfigurationRevisionResponse) {
1016	op := &request.Operation{
1017		Name:       opDescribeConfigurationRevision,
1018		HTTPMethod: "GET",
1019		HTTPPath:   "/v1/configurations/{configuration-id}/revisions/{configuration-revision}",
1020	}
1021
1022	if input == nil {
1023		input = &DescribeConfigurationRevisionInput{}
1024	}
1025
1026	output = &DescribeConfigurationRevisionResponse{}
1027	req = c.newRequest(op, input, output)
1028	return
1029}
1030
1031// DescribeConfigurationRevision API operation for AmazonMQ.
1032//
1033// Returns the specified configuration revision for the specified configuration.
1034//
1035// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1036// with awserr.Error's Code and Message methods to get detailed information about
1037// the error.
1038//
1039// See the AWS API reference guide for AmazonMQ's
1040// API operation DescribeConfigurationRevision for usage and error information.
1041//
1042// Returned Error Types:
1043//   * NotFoundException
1044//   Returns information about an error.
1045//
1046//   * BadRequestException
1047//   Returns information about an error.
1048//
1049//   * InternalServerErrorException
1050//   Returns information about an error.
1051//
1052//   * ForbiddenException
1053//   Returns information about an error.
1054//
1055// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeConfigurationRevision
1056func (c *MQ) DescribeConfigurationRevision(input *DescribeConfigurationRevisionInput) (*DescribeConfigurationRevisionResponse, error) {
1057	req, out := c.DescribeConfigurationRevisionRequest(input)
1058	return out, req.Send()
1059}
1060
1061// DescribeConfigurationRevisionWithContext is the same as DescribeConfigurationRevision with the addition of
1062// the ability to pass a context and additional request options.
1063//
1064// See DescribeConfigurationRevision for details on how to use this API operation.
1065//
1066// The context must be non-nil and will be used for request cancellation. If
1067// the context is nil a panic will occur. In the future the SDK may create
1068// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1069// for more information on using Contexts.
1070func (c *MQ) DescribeConfigurationRevisionWithContext(ctx aws.Context, input *DescribeConfigurationRevisionInput, opts ...request.Option) (*DescribeConfigurationRevisionResponse, error) {
1071	req, out := c.DescribeConfigurationRevisionRequest(input)
1072	req.SetContext(ctx)
1073	req.ApplyOptions(opts...)
1074	return out, req.Send()
1075}
1076
1077const opDescribeUser = "DescribeUser"
1078
1079// DescribeUserRequest generates a "aws/request.Request" representing the
1080// client's request for the DescribeUser operation. The "output" return
1081// value will be populated with the request's response once the request completes
1082// successfully.
1083//
1084// Use "Send" method on the returned Request to send the API call to the service.
1085// the "output" return value is not valid until after Send returns without error.
1086//
1087// See DescribeUser for more information on using the DescribeUser
1088// API call, and error handling.
1089//
1090// This method is useful when you want to inject custom logic or configuration
1091// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1092//
1093//
1094//    // Example sending a request using the DescribeUserRequest method.
1095//    req, resp := client.DescribeUserRequest(params)
1096//
1097//    err := req.Send()
1098//    if err == nil { // resp is now filled
1099//        fmt.Println(resp)
1100//    }
1101//
1102// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeUser
1103func (c *MQ) DescribeUserRequest(input *DescribeUserInput) (req *request.Request, output *DescribeUserResponse) {
1104	op := &request.Operation{
1105		Name:       opDescribeUser,
1106		HTTPMethod: "GET",
1107		HTTPPath:   "/v1/brokers/{broker-id}/users/{username}",
1108	}
1109
1110	if input == nil {
1111		input = &DescribeUserInput{}
1112	}
1113
1114	output = &DescribeUserResponse{}
1115	req = c.newRequest(op, input, output)
1116	return
1117}
1118
1119// DescribeUser API operation for AmazonMQ.
1120//
1121// Returns information about an ActiveMQ user.
1122//
1123// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1124// with awserr.Error's Code and Message methods to get detailed information about
1125// the error.
1126//
1127// See the AWS API reference guide for AmazonMQ's
1128// API operation DescribeUser for usage and error information.
1129//
1130// Returned Error Types:
1131//   * NotFoundException
1132//   Returns information about an error.
1133//
1134//   * BadRequestException
1135//   Returns information about an error.
1136//
1137//   * InternalServerErrorException
1138//   Returns information about an error.
1139//
1140//   * ForbiddenException
1141//   Returns information about an error.
1142//
1143// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/DescribeUser
1144func (c *MQ) DescribeUser(input *DescribeUserInput) (*DescribeUserResponse, error) {
1145	req, out := c.DescribeUserRequest(input)
1146	return out, req.Send()
1147}
1148
1149// DescribeUserWithContext is the same as DescribeUser with the addition of
1150// the ability to pass a context and additional request options.
1151//
1152// See DescribeUser for details on how to use this API operation.
1153//
1154// The context must be non-nil and will be used for request cancellation. If
1155// the context is nil a panic will occur. In the future the SDK may create
1156// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1157// for more information on using Contexts.
1158func (c *MQ) DescribeUserWithContext(ctx aws.Context, input *DescribeUserInput, opts ...request.Option) (*DescribeUserResponse, error) {
1159	req, out := c.DescribeUserRequest(input)
1160	req.SetContext(ctx)
1161	req.ApplyOptions(opts...)
1162	return out, req.Send()
1163}
1164
1165const opListBrokers = "ListBrokers"
1166
1167// ListBrokersRequest generates a "aws/request.Request" representing the
1168// client's request for the ListBrokers operation. The "output" return
1169// value will be populated with the request's response once the request completes
1170// successfully.
1171//
1172// Use "Send" method on the returned Request to send the API call to the service.
1173// the "output" return value is not valid until after Send returns without error.
1174//
1175// See ListBrokers for more information on using the ListBrokers
1176// API call, and error handling.
1177//
1178// This method is useful when you want to inject custom logic or configuration
1179// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1180//
1181//
1182//    // Example sending a request using the ListBrokersRequest method.
1183//    req, resp := client.ListBrokersRequest(params)
1184//
1185//    err := req.Send()
1186//    if err == nil { // resp is now filled
1187//        fmt.Println(resp)
1188//    }
1189//
1190// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListBrokers
1191func (c *MQ) ListBrokersRequest(input *ListBrokersInput) (req *request.Request, output *ListBrokersResponse) {
1192	op := &request.Operation{
1193		Name:       opListBrokers,
1194		HTTPMethod: "GET",
1195		HTTPPath:   "/v1/brokers",
1196	}
1197
1198	if input == nil {
1199		input = &ListBrokersInput{}
1200	}
1201
1202	output = &ListBrokersResponse{}
1203	req = c.newRequest(op, input, output)
1204	return
1205}
1206
1207// ListBrokers API operation for AmazonMQ.
1208//
1209// Returns a list of all brokers.
1210//
1211// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1212// with awserr.Error's Code and Message methods to get detailed information about
1213// the error.
1214//
1215// See the AWS API reference guide for AmazonMQ's
1216// API operation ListBrokers for usage and error information.
1217//
1218// Returned Error Types:
1219//   * BadRequestException
1220//   Returns information about an error.
1221//
1222//   * InternalServerErrorException
1223//   Returns information about an error.
1224//
1225//   * ForbiddenException
1226//   Returns information about an error.
1227//
1228// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListBrokers
1229func (c *MQ) ListBrokers(input *ListBrokersInput) (*ListBrokersResponse, error) {
1230	req, out := c.ListBrokersRequest(input)
1231	return out, req.Send()
1232}
1233
1234// ListBrokersWithContext is the same as ListBrokers with the addition of
1235// the ability to pass a context and additional request options.
1236//
1237// See ListBrokers for details on how to use this API operation.
1238//
1239// The context must be non-nil and will be used for request cancellation. If
1240// the context is nil a panic will occur. In the future the SDK may create
1241// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1242// for more information on using Contexts.
1243func (c *MQ) ListBrokersWithContext(ctx aws.Context, input *ListBrokersInput, opts ...request.Option) (*ListBrokersResponse, error) {
1244	req, out := c.ListBrokersRequest(input)
1245	req.SetContext(ctx)
1246	req.ApplyOptions(opts...)
1247	return out, req.Send()
1248}
1249
1250const opListConfigurationRevisions = "ListConfigurationRevisions"
1251
1252// ListConfigurationRevisionsRequest generates a "aws/request.Request" representing the
1253// client's request for the ListConfigurationRevisions operation. The "output" return
1254// value will be populated with the request's response once the request completes
1255// successfully.
1256//
1257// Use "Send" method on the returned Request to send the API call to the service.
1258// the "output" return value is not valid until after Send returns without error.
1259//
1260// See ListConfigurationRevisions for more information on using the ListConfigurationRevisions
1261// API call, and error handling.
1262//
1263// This method is useful when you want to inject custom logic or configuration
1264// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1265//
1266//
1267//    // Example sending a request using the ListConfigurationRevisionsRequest method.
1268//    req, resp := client.ListConfigurationRevisionsRequest(params)
1269//
1270//    err := req.Send()
1271//    if err == nil { // resp is now filled
1272//        fmt.Println(resp)
1273//    }
1274//
1275// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationRevisions
1276func (c *MQ) ListConfigurationRevisionsRequest(input *ListConfigurationRevisionsInput) (req *request.Request, output *ListConfigurationRevisionsResponse) {
1277	op := &request.Operation{
1278		Name:       opListConfigurationRevisions,
1279		HTTPMethod: "GET",
1280		HTTPPath:   "/v1/configurations/{configuration-id}/revisions",
1281	}
1282
1283	if input == nil {
1284		input = &ListConfigurationRevisionsInput{}
1285	}
1286
1287	output = &ListConfigurationRevisionsResponse{}
1288	req = c.newRequest(op, input, output)
1289	return
1290}
1291
1292// ListConfigurationRevisions API operation for AmazonMQ.
1293//
1294// Returns a list of all revisions for the specified configuration.
1295//
1296// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1297// with awserr.Error's Code and Message methods to get detailed information about
1298// the error.
1299//
1300// See the AWS API reference guide for AmazonMQ's
1301// API operation ListConfigurationRevisions for usage and error information.
1302//
1303// Returned Error Types:
1304//   * NotFoundException
1305//   Returns information about an error.
1306//
1307//   * BadRequestException
1308//   Returns information about an error.
1309//
1310//   * InternalServerErrorException
1311//   Returns information about an error.
1312//
1313//   * ForbiddenException
1314//   Returns information about an error.
1315//
1316// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurationRevisions
1317func (c *MQ) ListConfigurationRevisions(input *ListConfigurationRevisionsInput) (*ListConfigurationRevisionsResponse, error) {
1318	req, out := c.ListConfigurationRevisionsRequest(input)
1319	return out, req.Send()
1320}
1321
1322// ListConfigurationRevisionsWithContext is the same as ListConfigurationRevisions with the addition of
1323// the ability to pass a context and additional request options.
1324//
1325// See ListConfigurationRevisions for details on how to use this API operation.
1326//
1327// The context must be non-nil and will be used for request cancellation. If
1328// the context is nil a panic will occur. In the future the SDK may create
1329// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1330// for more information on using Contexts.
1331func (c *MQ) ListConfigurationRevisionsWithContext(ctx aws.Context, input *ListConfigurationRevisionsInput, opts ...request.Option) (*ListConfigurationRevisionsResponse, error) {
1332	req, out := c.ListConfigurationRevisionsRequest(input)
1333	req.SetContext(ctx)
1334	req.ApplyOptions(opts...)
1335	return out, req.Send()
1336}
1337
1338const opListConfigurations = "ListConfigurations"
1339
1340// ListConfigurationsRequest generates a "aws/request.Request" representing the
1341// client's request for the ListConfigurations operation. The "output" return
1342// value will be populated with the request's response once the request completes
1343// successfully.
1344//
1345// Use "Send" method on the returned Request to send the API call to the service.
1346// the "output" return value is not valid until after Send returns without error.
1347//
1348// See ListConfigurations for more information on using the ListConfigurations
1349// API call, and error handling.
1350//
1351// This method is useful when you want to inject custom logic or configuration
1352// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1353//
1354//
1355//    // Example sending a request using the ListConfigurationsRequest method.
1356//    req, resp := client.ListConfigurationsRequest(params)
1357//
1358//    err := req.Send()
1359//    if err == nil { // resp is now filled
1360//        fmt.Println(resp)
1361//    }
1362//
1363// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurations
1364func (c *MQ) ListConfigurationsRequest(input *ListConfigurationsInput) (req *request.Request, output *ListConfigurationsResponse) {
1365	op := &request.Operation{
1366		Name:       opListConfigurations,
1367		HTTPMethod: "GET",
1368		HTTPPath:   "/v1/configurations",
1369	}
1370
1371	if input == nil {
1372		input = &ListConfigurationsInput{}
1373	}
1374
1375	output = &ListConfigurationsResponse{}
1376	req = c.newRequest(op, input, output)
1377	return
1378}
1379
1380// ListConfigurations API operation for AmazonMQ.
1381//
1382// Returns a list of all configurations.
1383//
1384// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1385// with awserr.Error's Code and Message methods to get detailed information about
1386// the error.
1387//
1388// See the AWS API reference guide for AmazonMQ's
1389// API operation ListConfigurations for usage and error information.
1390//
1391// Returned Error Types:
1392//   * BadRequestException
1393//   Returns information about an error.
1394//
1395//   * InternalServerErrorException
1396//   Returns information about an error.
1397//
1398//   * ForbiddenException
1399//   Returns information about an error.
1400//
1401// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListConfigurations
1402func (c *MQ) ListConfigurations(input *ListConfigurationsInput) (*ListConfigurationsResponse, error) {
1403	req, out := c.ListConfigurationsRequest(input)
1404	return out, req.Send()
1405}
1406
1407// ListConfigurationsWithContext is the same as ListConfigurations with the addition of
1408// the ability to pass a context and additional request options.
1409//
1410// See ListConfigurations for details on how to use this API operation.
1411//
1412// The context must be non-nil and will be used for request cancellation. If
1413// the context is nil a panic will occur. In the future the SDK may create
1414// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1415// for more information on using Contexts.
1416func (c *MQ) ListConfigurationsWithContext(ctx aws.Context, input *ListConfigurationsInput, opts ...request.Option) (*ListConfigurationsResponse, error) {
1417	req, out := c.ListConfigurationsRequest(input)
1418	req.SetContext(ctx)
1419	req.ApplyOptions(opts...)
1420	return out, req.Send()
1421}
1422
1423const opListTags = "ListTags"
1424
1425// ListTagsRequest generates a "aws/request.Request" representing the
1426// client's request for the ListTags operation. The "output" return
1427// value will be populated with the request's response once the request completes
1428// successfully.
1429//
1430// Use "Send" method on the returned Request to send the API call to the service.
1431// the "output" return value is not valid until after Send returns without error.
1432//
1433// See ListTags for more information on using the ListTags
1434// API call, and error handling.
1435//
1436// This method is useful when you want to inject custom logic or configuration
1437// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1438//
1439//
1440//    // Example sending a request using the ListTagsRequest method.
1441//    req, resp := client.ListTagsRequest(params)
1442//
1443//    err := req.Send()
1444//    if err == nil { // resp is now filled
1445//        fmt.Println(resp)
1446//    }
1447//
1448// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListTags
1449func (c *MQ) ListTagsRequest(input *ListTagsInput) (req *request.Request, output *ListTagsOutput) {
1450	op := &request.Operation{
1451		Name:       opListTags,
1452		HTTPMethod: "GET",
1453		HTTPPath:   "/v1/tags/{resource-arn}",
1454	}
1455
1456	if input == nil {
1457		input = &ListTagsInput{}
1458	}
1459
1460	output = &ListTagsOutput{}
1461	req = c.newRequest(op, input, output)
1462	return
1463}
1464
1465// ListTags API operation for AmazonMQ.
1466//
1467// Lists tags for a resource.
1468//
1469// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1470// with awserr.Error's Code and Message methods to get detailed information about
1471// the error.
1472//
1473// See the AWS API reference guide for AmazonMQ's
1474// API operation ListTags for usage and error information.
1475//
1476// Returned Error Types:
1477//   * NotFoundException
1478//   Returns information about an error.
1479//
1480//   * BadRequestException
1481//   Returns information about an error.
1482//
1483//   * InternalServerErrorException
1484//   Returns information about an error.
1485//
1486//   * ForbiddenException
1487//   Returns information about an error.
1488//
1489// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListTags
1490func (c *MQ) ListTags(input *ListTagsInput) (*ListTagsOutput, error) {
1491	req, out := c.ListTagsRequest(input)
1492	return out, req.Send()
1493}
1494
1495// ListTagsWithContext is the same as ListTags with the addition of
1496// the ability to pass a context and additional request options.
1497//
1498// See ListTags for details on how to use this API operation.
1499//
1500// The context must be non-nil and will be used for request cancellation. If
1501// the context is nil a panic will occur. In the future the SDK may create
1502// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1503// for more information on using Contexts.
1504func (c *MQ) ListTagsWithContext(ctx aws.Context, input *ListTagsInput, opts ...request.Option) (*ListTagsOutput, error) {
1505	req, out := c.ListTagsRequest(input)
1506	req.SetContext(ctx)
1507	req.ApplyOptions(opts...)
1508	return out, req.Send()
1509}
1510
1511const opListUsers = "ListUsers"
1512
1513// ListUsersRequest generates a "aws/request.Request" representing the
1514// client's request for the ListUsers operation. The "output" return
1515// value will be populated with the request's response once the request completes
1516// successfully.
1517//
1518// Use "Send" method on the returned Request to send the API call to the service.
1519// the "output" return value is not valid until after Send returns without error.
1520//
1521// See ListUsers for more information on using the ListUsers
1522// API call, and error handling.
1523//
1524// This method is useful when you want to inject custom logic or configuration
1525// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1526//
1527//
1528//    // Example sending a request using the ListUsersRequest method.
1529//    req, resp := client.ListUsersRequest(params)
1530//
1531//    err := req.Send()
1532//    if err == nil { // resp is now filled
1533//        fmt.Println(resp)
1534//    }
1535//
1536// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListUsers
1537func (c *MQ) ListUsersRequest(input *ListUsersInput) (req *request.Request, output *ListUsersResponse) {
1538	op := &request.Operation{
1539		Name:       opListUsers,
1540		HTTPMethod: "GET",
1541		HTTPPath:   "/v1/brokers/{broker-id}/users",
1542	}
1543
1544	if input == nil {
1545		input = &ListUsersInput{}
1546	}
1547
1548	output = &ListUsersResponse{}
1549	req = c.newRequest(op, input, output)
1550	return
1551}
1552
1553// ListUsers API operation for AmazonMQ.
1554//
1555// Returns a list of all ActiveMQ users.
1556//
1557// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1558// with awserr.Error's Code and Message methods to get detailed information about
1559// the error.
1560//
1561// See the AWS API reference guide for AmazonMQ's
1562// API operation ListUsers for usage and error information.
1563//
1564// Returned Error Types:
1565//   * NotFoundException
1566//   Returns information about an error.
1567//
1568//   * BadRequestException
1569//   Returns information about an error.
1570//
1571//   * InternalServerErrorException
1572//   Returns information about an error.
1573//
1574//   * ForbiddenException
1575//   Returns information about an error.
1576//
1577// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/ListUsers
1578func (c *MQ) ListUsers(input *ListUsersInput) (*ListUsersResponse, error) {
1579	req, out := c.ListUsersRequest(input)
1580	return out, req.Send()
1581}
1582
1583// ListUsersWithContext is the same as ListUsers with the addition of
1584// the ability to pass a context and additional request options.
1585//
1586// See ListUsers for details on how to use this API operation.
1587//
1588// The context must be non-nil and will be used for request cancellation. If
1589// the context is nil a panic will occur. In the future the SDK may create
1590// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1591// for more information on using Contexts.
1592func (c *MQ) ListUsersWithContext(ctx aws.Context, input *ListUsersInput, opts ...request.Option) (*ListUsersResponse, error) {
1593	req, out := c.ListUsersRequest(input)
1594	req.SetContext(ctx)
1595	req.ApplyOptions(opts...)
1596	return out, req.Send()
1597}
1598
1599const opRebootBroker = "RebootBroker"
1600
1601// RebootBrokerRequest generates a "aws/request.Request" representing the
1602// client's request for the RebootBroker operation. The "output" return
1603// value will be populated with the request's response once the request completes
1604// successfully.
1605//
1606// Use "Send" method on the returned Request to send the API call to the service.
1607// the "output" return value is not valid until after Send returns without error.
1608//
1609// See RebootBroker for more information on using the RebootBroker
1610// API call, and error handling.
1611//
1612// This method is useful when you want to inject custom logic or configuration
1613// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1614//
1615//
1616//    // Example sending a request using the RebootBrokerRequest method.
1617//    req, resp := client.RebootBrokerRequest(params)
1618//
1619//    err := req.Send()
1620//    if err == nil { // resp is now filled
1621//        fmt.Println(resp)
1622//    }
1623//
1624// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/RebootBroker
1625func (c *MQ) RebootBrokerRequest(input *RebootBrokerInput) (req *request.Request, output *RebootBrokerOutput) {
1626	op := &request.Operation{
1627		Name:       opRebootBroker,
1628		HTTPMethod: "POST",
1629		HTTPPath:   "/v1/brokers/{broker-id}/reboot",
1630	}
1631
1632	if input == nil {
1633		input = &RebootBrokerInput{}
1634	}
1635
1636	output = &RebootBrokerOutput{}
1637	req = c.newRequest(op, input, output)
1638	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
1639	return
1640}
1641
1642// RebootBroker API operation for AmazonMQ.
1643//
1644// Reboots a broker. Note: This API is asynchronous.
1645//
1646// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1647// with awserr.Error's Code and Message methods to get detailed information about
1648// the error.
1649//
1650// See the AWS API reference guide for AmazonMQ's
1651// API operation RebootBroker for usage and error information.
1652//
1653// Returned Error Types:
1654//   * NotFoundException
1655//   Returns information about an error.
1656//
1657//   * BadRequestException
1658//   Returns information about an error.
1659//
1660//   * InternalServerErrorException
1661//   Returns information about an error.
1662//
1663//   * ForbiddenException
1664//   Returns information about an error.
1665//
1666// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/RebootBroker
1667func (c *MQ) RebootBroker(input *RebootBrokerInput) (*RebootBrokerOutput, error) {
1668	req, out := c.RebootBrokerRequest(input)
1669	return out, req.Send()
1670}
1671
1672// RebootBrokerWithContext is the same as RebootBroker with the addition of
1673// the ability to pass a context and additional request options.
1674//
1675// See RebootBroker for details on how to use this API operation.
1676//
1677// The context must be non-nil and will be used for request cancellation. If
1678// the context is nil a panic will occur. In the future the SDK may create
1679// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1680// for more information on using Contexts.
1681func (c *MQ) RebootBrokerWithContext(ctx aws.Context, input *RebootBrokerInput, opts ...request.Option) (*RebootBrokerOutput, error) {
1682	req, out := c.RebootBrokerRequest(input)
1683	req.SetContext(ctx)
1684	req.ApplyOptions(opts...)
1685	return out, req.Send()
1686}
1687
1688const opUpdateBroker = "UpdateBroker"
1689
1690// UpdateBrokerRequest generates a "aws/request.Request" representing the
1691// client's request for the UpdateBroker operation. The "output" return
1692// value will be populated with the request's response once the request completes
1693// successfully.
1694//
1695// Use "Send" method on the returned Request to send the API call to the service.
1696// the "output" return value is not valid until after Send returns without error.
1697//
1698// See UpdateBroker for more information on using the UpdateBroker
1699// API call, and error handling.
1700//
1701// This method is useful when you want to inject custom logic or configuration
1702// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1703//
1704//
1705//    // Example sending a request using the UpdateBrokerRequest method.
1706//    req, resp := client.UpdateBrokerRequest(params)
1707//
1708//    err := req.Send()
1709//    if err == nil { // resp is now filled
1710//        fmt.Println(resp)
1711//    }
1712//
1713// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateBroker
1714func (c *MQ) UpdateBrokerRequest(input *UpdateBrokerRequest) (req *request.Request, output *UpdateBrokerResponse) {
1715	op := &request.Operation{
1716		Name:       opUpdateBroker,
1717		HTTPMethod: "PUT",
1718		HTTPPath:   "/v1/brokers/{broker-id}",
1719	}
1720
1721	if input == nil {
1722		input = &UpdateBrokerRequest{}
1723	}
1724
1725	output = &UpdateBrokerResponse{}
1726	req = c.newRequest(op, input, output)
1727	return
1728}
1729
1730// UpdateBroker API operation for AmazonMQ.
1731//
1732// Adds a pending configuration change to a broker.
1733//
1734// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1735// with awserr.Error's Code and Message methods to get detailed information about
1736// the error.
1737//
1738// See the AWS API reference guide for AmazonMQ's
1739// API operation UpdateBroker for usage and error information.
1740//
1741// Returned Error Types:
1742//   * NotFoundException
1743//   Returns information about an error.
1744//
1745//   * BadRequestException
1746//   Returns information about an error.
1747//
1748//   * InternalServerErrorException
1749//   Returns information about an error.
1750//
1751//   * ConflictException
1752//   Returns information about an error.
1753//
1754//   * ForbiddenException
1755//   Returns information about an error.
1756//
1757// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateBroker
1758func (c *MQ) UpdateBroker(input *UpdateBrokerRequest) (*UpdateBrokerResponse, error) {
1759	req, out := c.UpdateBrokerRequest(input)
1760	return out, req.Send()
1761}
1762
1763// UpdateBrokerWithContext is the same as UpdateBroker with the addition of
1764// the ability to pass a context and additional request options.
1765//
1766// See UpdateBroker for details on how to use this API operation.
1767//
1768// The context must be non-nil and will be used for request cancellation. If
1769// the context is nil a panic will occur. In the future the SDK may create
1770// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1771// for more information on using Contexts.
1772func (c *MQ) UpdateBrokerWithContext(ctx aws.Context, input *UpdateBrokerRequest, opts ...request.Option) (*UpdateBrokerResponse, error) {
1773	req, out := c.UpdateBrokerRequest(input)
1774	req.SetContext(ctx)
1775	req.ApplyOptions(opts...)
1776	return out, req.Send()
1777}
1778
1779const opUpdateConfiguration = "UpdateConfiguration"
1780
1781// UpdateConfigurationRequest generates a "aws/request.Request" representing the
1782// client's request for the UpdateConfiguration operation. The "output" return
1783// value will be populated with the request's response once the request completes
1784// successfully.
1785//
1786// Use "Send" method on the returned Request to send the API call to the service.
1787// the "output" return value is not valid until after Send returns without error.
1788//
1789// See UpdateConfiguration for more information on using the UpdateConfiguration
1790// API call, and error handling.
1791//
1792// This method is useful when you want to inject custom logic or configuration
1793// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1794//
1795//
1796//    // Example sending a request using the UpdateConfigurationRequest method.
1797//    req, resp := client.UpdateConfigurationRequest(params)
1798//
1799//    err := req.Send()
1800//    if err == nil { // resp is now filled
1801//        fmt.Println(resp)
1802//    }
1803//
1804// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateConfiguration
1805func (c *MQ) UpdateConfigurationRequest(input *UpdateConfigurationRequest) (req *request.Request, output *UpdateConfigurationResponse) {
1806	op := &request.Operation{
1807		Name:       opUpdateConfiguration,
1808		HTTPMethod: "PUT",
1809		HTTPPath:   "/v1/configurations/{configuration-id}",
1810	}
1811
1812	if input == nil {
1813		input = &UpdateConfigurationRequest{}
1814	}
1815
1816	output = &UpdateConfigurationResponse{}
1817	req = c.newRequest(op, input, output)
1818	return
1819}
1820
1821// UpdateConfiguration API operation for AmazonMQ.
1822//
1823// Updates the specified configuration.
1824//
1825// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1826// with awserr.Error's Code and Message methods to get detailed information about
1827// the error.
1828//
1829// See the AWS API reference guide for AmazonMQ's
1830// API operation UpdateConfiguration for usage and error information.
1831//
1832// Returned Error Types:
1833//   * NotFoundException
1834//   Returns information about an error.
1835//
1836//   * BadRequestException
1837//   Returns information about an error.
1838//
1839//   * InternalServerErrorException
1840//   Returns information about an error.
1841//
1842//   * ConflictException
1843//   Returns information about an error.
1844//
1845//   * ForbiddenException
1846//   Returns information about an error.
1847//
1848// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateConfiguration
1849func (c *MQ) UpdateConfiguration(input *UpdateConfigurationRequest) (*UpdateConfigurationResponse, error) {
1850	req, out := c.UpdateConfigurationRequest(input)
1851	return out, req.Send()
1852}
1853
1854// UpdateConfigurationWithContext is the same as UpdateConfiguration with the addition of
1855// the ability to pass a context and additional request options.
1856//
1857// See UpdateConfiguration for details on how to use this API operation.
1858//
1859// The context must be non-nil and will be used for request cancellation. If
1860// the context is nil a panic will occur. In the future the SDK may create
1861// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1862// for more information on using Contexts.
1863func (c *MQ) UpdateConfigurationWithContext(ctx aws.Context, input *UpdateConfigurationRequest, opts ...request.Option) (*UpdateConfigurationResponse, error) {
1864	req, out := c.UpdateConfigurationRequest(input)
1865	req.SetContext(ctx)
1866	req.ApplyOptions(opts...)
1867	return out, req.Send()
1868}
1869
1870const opUpdateUser = "UpdateUser"
1871
1872// UpdateUserRequest generates a "aws/request.Request" representing the
1873// client's request for the UpdateUser operation. The "output" return
1874// value will be populated with the request's response once the request completes
1875// successfully.
1876//
1877// Use "Send" method on the returned Request to send the API call to the service.
1878// the "output" return value is not valid until after Send returns without error.
1879//
1880// See UpdateUser for more information on using the UpdateUser
1881// API call, and error handling.
1882//
1883// This method is useful when you want to inject custom logic or configuration
1884// into the SDK's request lifecycle. Such as custom headers, or retry logic.
1885//
1886//
1887//    // Example sending a request using the UpdateUserRequest method.
1888//    req, resp := client.UpdateUserRequest(params)
1889//
1890//    err := req.Send()
1891//    if err == nil { // resp is now filled
1892//        fmt.Println(resp)
1893//    }
1894//
1895// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateUser
1896func (c *MQ) UpdateUserRequest(input *UpdateUserRequest) (req *request.Request, output *UpdateUserOutput) {
1897	op := &request.Operation{
1898		Name:       opUpdateUser,
1899		HTTPMethod: "PUT",
1900		HTTPPath:   "/v1/brokers/{broker-id}/users/{username}",
1901	}
1902
1903	if input == nil {
1904		input = &UpdateUserRequest{}
1905	}
1906
1907	output = &UpdateUserOutput{}
1908	req = c.newRequest(op, input, output)
1909	req.Handlers.Unmarshal.Swap(restjson.UnmarshalHandler.Name, protocol.UnmarshalDiscardBodyHandler)
1910	return
1911}
1912
1913// UpdateUser API operation for AmazonMQ.
1914//
1915// Updates the information for an ActiveMQ user.
1916//
1917// Returns awserr.Error for service API and SDK errors. Use runtime type assertions
1918// with awserr.Error's Code and Message methods to get detailed information about
1919// the error.
1920//
1921// See the AWS API reference guide for AmazonMQ's
1922// API operation UpdateUser for usage and error information.
1923//
1924// Returned Error Types:
1925//   * NotFoundException
1926//   Returns information about an error.
1927//
1928//   * BadRequestException
1929//   Returns information about an error.
1930//
1931//   * InternalServerErrorException
1932//   Returns information about an error.
1933//
1934//   * ConflictException
1935//   Returns information about an error.
1936//
1937//   * ForbiddenException
1938//   Returns information about an error.
1939//
1940// See also, https://docs.aws.amazon.com/goto/WebAPI/mq-2017-11-27/UpdateUser
1941func (c *MQ) UpdateUser(input *UpdateUserRequest) (*UpdateUserOutput, error) {
1942	req, out := c.UpdateUserRequest(input)
1943	return out, req.Send()
1944}
1945
1946// UpdateUserWithContext is the same as UpdateUser with the addition of
1947// the ability to pass a context and additional request options.
1948//
1949// See UpdateUser for details on how to use this API operation.
1950//
1951// The context must be non-nil and will be used for request cancellation. If
1952// the context is nil a panic will occur. In the future the SDK may create
1953// sub-contexts for http.Requests. See https://golang.org/pkg/context/
1954// for more information on using Contexts.
1955func (c *MQ) UpdateUserWithContext(ctx aws.Context, input *UpdateUserRequest, opts ...request.Option) (*UpdateUserOutput, error) {
1956	req, out := c.UpdateUserRequest(input)
1957	req.SetContext(ctx)
1958	req.ApplyOptions(opts...)
1959	return out, req.Send()
1960}
1961
1962// Name of the availability zone.
1963type AvailabilityZone struct {
1964	_ struct{} `type:"structure"`
1965
1966	// Id for the availability zone.
1967	Name *string `locationName:"name" type:"string"`
1968}
1969
1970// String returns the string representation
1971func (s AvailabilityZone) String() string {
1972	return awsutil.Prettify(s)
1973}
1974
1975// GoString returns the string representation
1976func (s AvailabilityZone) GoString() string {
1977	return s.String()
1978}
1979
1980// SetName sets the Name field's value.
1981func (s *AvailabilityZone) SetName(v string) *AvailabilityZone {
1982	s.Name = &v
1983	return s
1984}
1985
1986// Returns information about an error.
1987type BadRequestException struct {
1988	_            struct{} `type:"structure"`
1989	respMetadata protocol.ResponseMetadata
1990
1991	ErrorAttribute *string `locationName:"errorAttribute" type:"string"`
1992
1993	Message_ *string `locationName:"message" type:"string"`
1994}
1995
1996// String returns the string representation
1997func (s BadRequestException) String() string {
1998	return awsutil.Prettify(s)
1999}
2000
2001// GoString returns the string representation
2002func (s BadRequestException) GoString() string {
2003	return s.String()
2004}
2005
2006func newErrorBadRequestException(v protocol.ResponseMetadata) error {
2007	return &BadRequestException{
2008		respMetadata: v,
2009	}
2010}
2011
2012// Code returns the exception type name.
2013func (s BadRequestException) Code() string {
2014	return "BadRequestException"
2015}
2016
2017// Message returns the exception's message.
2018func (s BadRequestException) Message() string {
2019	if s.Message_ != nil {
2020		return *s.Message_
2021	}
2022	return ""
2023}
2024
2025// OrigErr always returns nil, satisfies awserr.Error interface.
2026func (s BadRequestException) OrigErr() error {
2027	return nil
2028}
2029
2030func (s BadRequestException) Error() string {
2031	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
2032}
2033
2034// Status code returns the HTTP status code for the request's response error.
2035func (s BadRequestException) StatusCode() int {
2036	return s.respMetadata.StatusCode
2037}
2038
2039// RequestID returns the service's response RequestID for request.
2040func (s BadRequestException) RequestID() string {
2041	return s.respMetadata.RequestID
2042}
2043
2044// Types of broker engines.
2045type BrokerEngineType struct {
2046	_ struct{} `type:"structure"`
2047
2048	// The type of broker engine.
2049	EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
2050
2051	// The list of engine versions.
2052	EngineVersions []*EngineVersion `locationName:"engineVersions" type:"list"`
2053}
2054
2055// String returns the string representation
2056func (s BrokerEngineType) String() string {
2057	return awsutil.Prettify(s)
2058}
2059
2060// GoString returns the string representation
2061func (s BrokerEngineType) GoString() string {
2062	return s.String()
2063}
2064
2065// SetEngineType sets the EngineType field's value.
2066func (s *BrokerEngineType) SetEngineType(v string) *BrokerEngineType {
2067	s.EngineType = &v
2068	return s
2069}
2070
2071// SetEngineVersions sets the EngineVersions field's value.
2072func (s *BrokerEngineType) SetEngineVersions(v []*EngineVersion) *BrokerEngineType {
2073	s.EngineVersions = v
2074	return s
2075}
2076
2077// Returns information about all brokers.
2078type BrokerInstance struct {
2079	_ struct{} `type:"structure"`
2080
2081	// The URL of the broker's ActiveMQ Web Console.
2082	ConsoleURL *string `locationName:"consoleURL" type:"string"`
2083
2084	// The broker's wire-level protocol endpoints.
2085	Endpoints []*string `locationName:"endpoints" type:"list"`
2086
2087	// The IP address of the Elastic Network Interface (ENI) attached to the broker.
2088	IpAddress *string `locationName:"ipAddress" type:"string"`
2089}
2090
2091// String returns the string representation
2092func (s BrokerInstance) String() string {
2093	return awsutil.Prettify(s)
2094}
2095
2096// GoString returns the string representation
2097func (s BrokerInstance) GoString() string {
2098	return s.String()
2099}
2100
2101// SetConsoleURL sets the ConsoleURL field's value.
2102func (s *BrokerInstance) SetConsoleURL(v string) *BrokerInstance {
2103	s.ConsoleURL = &v
2104	return s
2105}
2106
2107// SetEndpoints sets the Endpoints field's value.
2108func (s *BrokerInstance) SetEndpoints(v []*string) *BrokerInstance {
2109	s.Endpoints = v
2110	return s
2111}
2112
2113// SetIpAddress sets the IpAddress field's value.
2114func (s *BrokerInstance) SetIpAddress(v string) *BrokerInstance {
2115	s.IpAddress = &v
2116	return s
2117}
2118
2119// Option for host instance type.
2120type BrokerInstanceOption struct {
2121	_ struct{} `type:"structure"`
2122
2123	// The list of available az.
2124	AvailabilityZones []*AvailabilityZone `locationName:"availabilityZones" type:"list"`
2125
2126	// The type of broker engine.
2127	EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
2128
2129	// The type of broker instance.
2130	HostInstanceType *string `locationName:"hostInstanceType" type:"string"`
2131
2132	// The broker's storage type.
2133	StorageType *string `locationName:"storageType" type:"string" enum:"BrokerStorageType"`
2134
2135	// The list of supported deployment modes.
2136	SupportedDeploymentModes []*string `locationName:"supportedDeploymentModes" type:"list"`
2137
2138	// The list of supported engine versions.
2139	SupportedEngineVersions []*string `locationName:"supportedEngineVersions" type:"list"`
2140}
2141
2142// String returns the string representation
2143func (s BrokerInstanceOption) String() string {
2144	return awsutil.Prettify(s)
2145}
2146
2147// GoString returns the string representation
2148func (s BrokerInstanceOption) GoString() string {
2149	return s.String()
2150}
2151
2152// SetAvailabilityZones sets the AvailabilityZones field's value.
2153func (s *BrokerInstanceOption) SetAvailabilityZones(v []*AvailabilityZone) *BrokerInstanceOption {
2154	s.AvailabilityZones = v
2155	return s
2156}
2157
2158// SetEngineType sets the EngineType field's value.
2159func (s *BrokerInstanceOption) SetEngineType(v string) *BrokerInstanceOption {
2160	s.EngineType = &v
2161	return s
2162}
2163
2164// SetHostInstanceType sets the HostInstanceType field's value.
2165func (s *BrokerInstanceOption) SetHostInstanceType(v string) *BrokerInstanceOption {
2166	s.HostInstanceType = &v
2167	return s
2168}
2169
2170// SetStorageType sets the StorageType field's value.
2171func (s *BrokerInstanceOption) SetStorageType(v string) *BrokerInstanceOption {
2172	s.StorageType = &v
2173	return s
2174}
2175
2176// SetSupportedDeploymentModes sets the SupportedDeploymentModes field's value.
2177func (s *BrokerInstanceOption) SetSupportedDeploymentModes(v []*string) *BrokerInstanceOption {
2178	s.SupportedDeploymentModes = v
2179	return s
2180}
2181
2182// SetSupportedEngineVersions sets the SupportedEngineVersions field's value.
2183func (s *BrokerInstanceOption) SetSupportedEngineVersions(v []*string) *BrokerInstanceOption {
2184	s.SupportedEngineVersions = v
2185	return s
2186}
2187
2188// The Amazon Resource Name (ARN) of the broker.
2189type BrokerSummary struct {
2190	_ struct{} `type:"structure"`
2191
2192	// The Amazon Resource Name (ARN) of the broker.
2193	BrokerArn *string `locationName:"brokerArn" type:"string"`
2194
2195	// The unique ID that Amazon MQ generates for the broker.
2196	BrokerId *string `locationName:"brokerId" type:"string"`
2197
2198	// The name of the broker. This value must be unique in your AWS account, 1-50
2199	// characters long, must contain only letters, numbers, dashes, and underscores,
2200	// and must not contain whitespaces, brackets, wildcard characters, or special
2201	// characters.
2202	BrokerName *string `locationName:"brokerName" type:"string"`
2203
2204	// The status of the broker.
2205	BrokerState *string `locationName:"brokerState" type:"string" enum:"BrokerState"`
2206
2207	// The time when the broker was created.
2208	Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"iso8601"`
2209
2210	// Required. The deployment mode of the broker.
2211	DeploymentMode *string `locationName:"deploymentMode" type:"string" enum:"DeploymentMode"`
2212
2213	// The broker's instance type.
2214	HostInstanceType *string `locationName:"hostInstanceType" type:"string"`
2215}
2216
2217// String returns the string representation
2218func (s BrokerSummary) String() string {
2219	return awsutil.Prettify(s)
2220}
2221
2222// GoString returns the string representation
2223func (s BrokerSummary) GoString() string {
2224	return s.String()
2225}
2226
2227// SetBrokerArn sets the BrokerArn field's value.
2228func (s *BrokerSummary) SetBrokerArn(v string) *BrokerSummary {
2229	s.BrokerArn = &v
2230	return s
2231}
2232
2233// SetBrokerId sets the BrokerId field's value.
2234func (s *BrokerSummary) SetBrokerId(v string) *BrokerSummary {
2235	s.BrokerId = &v
2236	return s
2237}
2238
2239// SetBrokerName sets the BrokerName field's value.
2240func (s *BrokerSummary) SetBrokerName(v string) *BrokerSummary {
2241	s.BrokerName = &v
2242	return s
2243}
2244
2245// SetBrokerState sets the BrokerState field's value.
2246func (s *BrokerSummary) SetBrokerState(v string) *BrokerSummary {
2247	s.BrokerState = &v
2248	return s
2249}
2250
2251// SetCreated sets the Created field's value.
2252func (s *BrokerSummary) SetCreated(v time.Time) *BrokerSummary {
2253	s.Created = &v
2254	return s
2255}
2256
2257// SetDeploymentMode sets the DeploymentMode field's value.
2258func (s *BrokerSummary) SetDeploymentMode(v string) *BrokerSummary {
2259	s.DeploymentMode = &v
2260	return s
2261}
2262
2263// SetHostInstanceType sets the HostInstanceType field's value.
2264func (s *BrokerSummary) SetHostInstanceType(v string) *BrokerSummary {
2265	s.HostInstanceType = &v
2266	return s
2267}
2268
2269// Returns information about all configurations.
2270type Configuration struct {
2271	_ struct{} `type:"structure"`
2272
2273	// Required. The ARN of the configuration.
2274	Arn *string `locationName:"arn" type:"string"`
2275
2276	// Required. The date and time of the configuration revision.
2277	Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"iso8601"`
2278
2279	// Required. The description of the configuration.
2280	Description *string `locationName:"description" type:"string"`
2281
2282	// Required. The type of broker engine. Note: Currently, Amazon MQ supports
2283	// only ACTIVEMQ.
2284	EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
2285
2286	// Required. The version of the broker engine. For a list of supported engine
2287	// versions, see https://docs.aws.amazon.com/amazon-mq/latest/developer-guide/broker-engine.html
2288	EngineVersion *string `locationName:"engineVersion" type:"string"`
2289
2290	// Required. The unique ID that Amazon MQ generates for the configuration.
2291	Id *string `locationName:"id" type:"string"`
2292
2293	// Required. The latest revision of the configuration.
2294	LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"`
2295
2296	// Required. The name of the configuration. This value can contain only alphanumeric
2297	// characters, dashes, periods, underscores, and tildes (- . _ ~). This value
2298	// must be 1-150 characters long.
2299	Name *string `locationName:"name" type:"string"`
2300
2301	// The list of all tags associated with this configuration.
2302	Tags map[string]*string `locationName:"tags" type:"map"`
2303}
2304
2305// String returns the string representation
2306func (s Configuration) String() string {
2307	return awsutil.Prettify(s)
2308}
2309
2310// GoString returns the string representation
2311func (s Configuration) GoString() string {
2312	return s.String()
2313}
2314
2315// SetArn sets the Arn field's value.
2316func (s *Configuration) SetArn(v string) *Configuration {
2317	s.Arn = &v
2318	return s
2319}
2320
2321// SetCreated sets the Created field's value.
2322func (s *Configuration) SetCreated(v time.Time) *Configuration {
2323	s.Created = &v
2324	return s
2325}
2326
2327// SetDescription sets the Description field's value.
2328func (s *Configuration) SetDescription(v string) *Configuration {
2329	s.Description = &v
2330	return s
2331}
2332
2333// SetEngineType sets the EngineType field's value.
2334func (s *Configuration) SetEngineType(v string) *Configuration {
2335	s.EngineType = &v
2336	return s
2337}
2338
2339// SetEngineVersion sets the EngineVersion field's value.
2340func (s *Configuration) SetEngineVersion(v string) *Configuration {
2341	s.EngineVersion = &v
2342	return s
2343}
2344
2345// SetId sets the Id field's value.
2346func (s *Configuration) SetId(v string) *Configuration {
2347	s.Id = &v
2348	return s
2349}
2350
2351// SetLatestRevision sets the LatestRevision field's value.
2352func (s *Configuration) SetLatestRevision(v *ConfigurationRevision) *Configuration {
2353	s.LatestRevision = v
2354	return s
2355}
2356
2357// SetName sets the Name field's value.
2358func (s *Configuration) SetName(v string) *Configuration {
2359	s.Name = &v
2360	return s
2361}
2362
2363// SetTags sets the Tags field's value.
2364func (s *Configuration) SetTags(v map[string]*string) *Configuration {
2365	s.Tags = v
2366	return s
2367}
2368
2369// A list of information about the configuration.
2370type ConfigurationId struct {
2371	_ struct{} `type:"structure"`
2372
2373	// Required. The unique ID that Amazon MQ generates for the configuration.
2374	Id *string `locationName:"id" type:"string"`
2375
2376	// The revision number of the configuration.
2377	Revision *int64 `locationName:"revision" type:"integer"`
2378}
2379
2380// String returns the string representation
2381func (s ConfigurationId) String() string {
2382	return awsutil.Prettify(s)
2383}
2384
2385// GoString returns the string representation
2386func (s ConfigurationId) GoString() string {
2387	return s.String()
2388}
2389
2390// SetId sets the Id field's value.
2391func (s *ConfigurationId) SetId(v string) *ConfigurationId {
2392	s.Id = &v
2393	return s
2394}
2395
2396// SetRevision sets the Revision field's value.
2397func (s *ConfigurationId) SetRevision(v int64) *ConfigurationId {
2398	s.Revision = &v
2399	return s
2400}
2401
2402// Returns information about the specified configuration revision.
2403type ConfigurationRevision struct {
2404	_ struct{} `type:"structure"`
2405
2406	// Required. The date and time of the configuration revision.
2407	Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"iso8601"`
2408
2409	// The description of the configuration revision.
2410	Description *string `locationName:"description" type:"string"`
2411
2412	// Required. The revision number of the configuration.
2413	Revision *int64 `locationName:"revision" type:"integer"`
2414}
2415
2416// String returns the string representation
2417func (s ConfigurationRevision) String() string {
2418	return awsutil.Prettify(s)
2419}
2420
2421// GoString returns the string representation
2422func (s ConfigurationRevision) GoString() string {
2423	return s.String()
2424}
2425
2426// SetCreated sets the Created field's value.
2427func (s *ConfigurationRevision) SetCreated(v time.Time) *ConfigurationRevision {
2428	s.Created = &v
2429	return s
2430}
2431
2432// SetDescription sets the Description field's value.
2433func (s *ConfigurationRevision) SetDescription(v string) *ConfigurationRevision {
2434	s.Description = &v
2435	return s
2436}
2437
2438// SetRevision sets the Revision field's value.
2439func (s *ConfigurationRevision) SetRevision(v int64) *ConfigurationRevision {
2440	s.Revision = &v
2441	return s
2442}
2443
2444// Broker configuration information
2445type Configurations struct {
2446	_ struct{} `type:"structure"`
2447
2448	// The current configuration of the broker.
2449	Current *ConfigurationId `locationName:"current" type:"structure"`
2450
2451	// The history of configurations applied to the broker.
2452	History []*ConfigurationId `locationName:"history" type:"list"`
2453
2454	// The pending configuration of the broker.
2455	Pending *ConfigurationId `locationName:"pending" type:"structure"`
2456}
2457
2458// String returns the string representation
2459func (s Configurations) String() string {
2460	return awsutil.Prettify(s)
2461}
2462
2463// GoString returns the string representation
2464func (s Configurations) GoString() string {
2465	return s.String()
2466}
2467
2468// SetCurrent sets the Current field's value.
2469func (s *Configurations) SetCurrent(v *ConfigurationId) *Configurations {
2470	s.Current = v
2471	return s
2472}
2473
2474// SetHistory sets the History field's value.
2475func (s *Configurations) SetHistory(v []*ConfigurationId) *Configurations {
2476	s.History = v
2477	return s
2478}
2479
2480// SetPending sets the Pending field's value.
2481func (s *Configurations) SetPending(v *ConfigurationId) *Configurations {
2482	s.Pending = v
2483	return s
2484}
2485
2486// Returns information about an error.
2487type ConflictException struct {
2488	_            struct{} `type:"structure"`
2489	respMetadata protocol.ResponseMetadata
2490
2491	ErrorAttribute *string `locationName:"errorAttribute" type:"string"`
2492
2493	Message_ *string `locationName:"message" type:"string"`
2494}
2495
2496// String returns the string representation
2497func (s ConflictException) String() string {
2498	return awsutil.Prettify(s)
2499}
2500
2501// GoString returns the string representation
2502func (s ConflictException) GoString() string {
2503	return s.String()
2504}
2505
2506func newErrorConflictException(v protocol.ResponseMetadata) error {
2507	return &ConflictException{
2508		respMetadata: v,
2509	}
2510}
2511
2512// Code returns the exception type name.
2513func (s ConflictException) Code() string {
2514	return "ConflictException"
2515}
2516
2517// Message returns the exception's message.
2518func (s ConflictException) Message() string {
2519	if s.Message_ != nil {
2520		return *s.Message_
2521	}
2522	return ""
2523}
2524
2525// OrigErr always returns nil, satisfies awserr.Error interface.
2526func (s ConflictException) OrigErr() error {
2527	return nil
2528}
2529
2530func (s ConflictException) Error() string {
2531	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
2532}
2533
2534// Status code returns the HTTP status code for the request's response error.
2535func (s ConflictException) StatusCode() int {
2536	return s.respMetadata.StatusCode
2537}
2538
2539// RequestID returns the service's response RequestID for request.
2540func (s ConflictException) RequestID() string {
2541	return s.respMetadata.RequestID
2542}
2543
2544type CreateBrokerRequest struct {
2545	_ struct{} `type:"structure"`
2546
2547	AutoMinorVersionUpgrade *bool `locationName:"autoMinorVersionUpgrade" type:"boolean"`
2548
2549	BrokerName *string `locationName:"brokerName" type:"string"`
2550
2551	// A list of information about the configuration.
2552	Configuration *ConfigurationId `locationName:"configuration" type:"structure"`
2553
2554	CreatorRequestId *string `locationName:"creatorRequestId" type:"string" idempotencyToken:"true"`
2555
2556	// The deployment mode of the broker.
2557	DeploymentMode *string `locationName:"deploymentMode" type:"string" enum:"DeploymentMode"`
2558
2559	// Encryption options for the broker.
2560	EncryptionOptions *EncryptionOptions `locationName:"encryptionOptions" type:"structure"`
2561
2562	// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ.
2563	EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
2564
2565	EngineVersion *string `locationName:"engineVersion" type:"string"`
2566
2567	HostInstanceType *string `locationName:"hostInstanceType" type:"string"`
2568
2569	// The list of information about logs to be enabled for the specified broker.
2570	Logs *Logs `locationName:"logs" type:"structure"`
2571
2572	// The scheduled time period relative to UTC during which Amazon MQ begins to
2573	// apply pending updates or patches to the broker.
2574	MaintenanceWindowStartTime *WeeklyStartTime `locationName:"maintenanceWindowStartTime" type:"structure"`
2575
2576	PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"`
2577
2578	SecurityGroups []*string `locationName:"securityGroups" type:"list"`
2579
2580	// The storage type of the broker.
2581	StorageType *string `locationName:"storageType" type:"string" enum:"BrokerStorageType"`
2582
2583	SubnetIds []*string `locationName:"subnetIds" type:"list"`
2584
2585	Tags map[string]*string `locationName:"tags" type:"map"`
2586
2587	Users []*User `locationName:"users" type:"list"`
2588}
2589
2590// String returns the string representation
2591func (s CreateBrokerRequest) String() string {
2592	return awsutil.Prettify(s)
2593}
2594
2595// GoString returns the string representation
2596func (s CreateBrokerRequest) GoString() string {
2597	return s.String()
2598}
2599
2600// Validate inspects the fields of the type to determine if they are valid.
2601func (s *CreateBrokerRequest) Validate() error {
2602	invalidParams := request.ErrInvalidParams{Context: "CreateBrokerRequest"}
2603	if s.EncryptionOptions != nil {
2604		if err := s.EncryptionOptions.Validate(); err != nil {
2605			invalidParams.AddNested("EncryptionOptions", err.(request.ErrInvalidParams))
2606		}
2607	}
2608
2609	if invalidParams.Len() > 0 {
2610		return invalidParams
2611	}
2612	return nil
2613}
2614
2615// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
2616func (s *CreateBrokerRequest) SetAutoMinorVersionUpgrade(v bool) *CreateBrokerRequest {
2617	s.AutoMinorVersionUpgrade = &v
2618	return s
2619}
2620
2621// SetBrokerName sets the BrokerName field's value.
2622func (s *CreateBrokerRequest) SetBrokerName(v string) *CreateBrokerRequest {
2623	s.BrokerName = &v
2624	return s
2625}
2626
2627// SetConfiguration sets the Configuration field's value.
2628func (s *CreateBrokerRequest) SetConfiguration(v *ConfigurationId) *CreateBrokerRequest {
2629	s.Configuration = v
2630	return s
2631}
2632
2633// SetCreatorRequestId sets the CreatorRequestId field's value.
2634func (s *CreateBrokerRequest) SetCreatorRequestId(v string) *CreateBrokerRequest {
2635	s.CreatorRequestId = &v
2636	return s
2637}
2638
2639// SetDeploymentMode sets the DeploymentMode field's value.
2640func (s *CreateBrokerRequest) SetDeploymentMode(v string) *CreateBrokerRequest {
2641	s.DeploymentMode = &v
2642	return s
2643}
2644
2645// SetEncryptionOptions sets the EncryptionOptions field's value.
2646func (s *CreateBrokerRequest) SetEncryptionOptions(v *EncryptionOptions) *CreateBrokerRequest {
2647	s.EncryptionOptions = v
2648	return s
2649}
2650
2651// SetEngineType sets the EngineType field's value.
2652func (s *CreateBrokerRequest) SetEngineType(v string) *CreateBrokerRequest {
2653	s.EngineType = &v
2654	return s
2655}
2656
2657// SetEngineVersion sets the EngineVersion field's value.
2658func (s *CreateBrokerRequest) SetEngineVersion(v string) *CreateBrokerRequest {
2659	s.EngineVersion = &v
2660	return s
2661}
2662
2663// SetHostInstanceType sets the HostInstanceType field's value.
2664func (s *CreateBrokerRequest) SetHostInstanceType(v string) *CreateBrokerRequest {
2665	s.HostInstanceType = &v
2666	return s
2667}
2668
2669// SetLogs sets the Logs field's value.
2670func (s *CreateBrokerRequest) SetLogs(v *Logs) *CreateBrokerRequest {
2671	s.Logs = v
2672	return s
2673}
2674
2675// SetMaintenanceWindowStartTime sets the MaintenanceWindowStartTime field's value.
2676func (s *CreateBrokerRequest) SetMaintenanceWindowStartTime(v *WeeklyStartTime) *CreateBrokerRequest {
2677	s.MaintenanceWindowStartTime = v
2678	return s
2679}
2680
2681// SetPubliclyAccessible sets the PubliclyAccessible field's value.
2682func (s *CreateBrokerRequest) SetPubliclyAccessible(v bool) *CreateBrokerRequest {
2683	s.PubliclyAccessible = &v
2684	return s
2685}
2686
2687// SetSecurityGroups sets the SecurityGroups field's value.
2688func (s *CreateBrokerRequest) SetSecurityGroups(v []*string) *CreateBrokerRequest {
2689	s.SecurityGroups = v
2690	return s
2691}
2692
2693// SetStorageType sets the StorageType field's value.
2694func (s *CreateBrokerRequest) SetStorageType(v string) *CreateBrokerRequest {
2695	s.StorageType = &v
2696	return s
2697}
2698
2699// SetSubnetIds sets the SubnetIds field's value.
2700func (s *CreateBrokerRequest) SetSubnetIds(v []*string) *CreateBrokerRequest {
2701	s.SubnetIds = v
2702	return s
2703}
2704
2705// SetTags sets the Tags field's value.
2706func (s *CreateBrokerRequest) SetTags(v map[string]*string) *CreateBrokerRequest {
2707	s.Tags = v
2708	return s
2709}
2710
2711// SetUsers sets the Users field's value.
2712func (s *CreateBrokerRequest) SetUsers(v []*User) *CreateBrokerRequest {
2713	s.Users = v
2714	return s
2715}
2716
2717type CreateBrokerResponse struct {
2718	_ struct{} `type:"structure"`
2719
2720	BrokerArn *string `locationName:"brokerArn" type:"string"`
2721
2722	BrokerId *string `locationName:"brokerId" type:"string"`
2723}
2724
2725// String returns the string representation
2726func (s CreateBrokerResponse) String() string {
2727	return awsutil.Prettify(s)
2728}
2729
2730// GoString returns the string representation
2731func (s CreateBrokerResponse) GoString() string {
2732	return s.String()
2733}
2734
2735// SetBrokerArn sets the BrokerArn field's value.
2736func (s *CreateBrokerResponse) SetBrokerArn(v string) *CreateBrokerResponse {
2737	s.BrokerArn = &v
2738	return s
2739}
2740
2741// SetBrokerId sets the BrokerId field's value.
2742func (s *CreateBrokerResponse) SetBrokerId(v string) *CreateBrokerResponse {
2743	s.BrokerId = &v
2744	return s
2745}
2746
2747type CreateConfigurationRequest struct {
2748	_ struct{} `type:"structure"`
2749
2750	// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ.
2751	EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
2752
2753	EngineVersion *string `locationName:"engineVersion" type:"string"`
2754
2755	Name *string `locationName:"name" type:"string"`
2756
2757	Tags map[string]*string `locationName:"tags" type:"map"`
2758}
2759
2760// String returns the string representation
2761func (s CreateConfigurationRequest) String() string {
2762	return awsutil.Prettify(s)
2763}
2764
2765// GoString returns the string representation
2766func (s CreateConfigurationRequest) GoString() string {
2767	return s.String()
2768}
2769
2770// SetEngineType sets the EngineType field's value.
2771func (s *CreateConfigurationRequest) SetEngineType(v string) *CreateConfigurationRequest {
2772	s.EngineType = &v
2773	return s
2774}
2775
2776// SetEngineVersion sets the EngineVersion field's value.
2777func (s *CreateConfigurationRequest) SetEngineVersion(v string) *CreateConfigurationRequest {
2778	s.EngineVersion = &v
2779	return s
2780}
2781
2782// SetName sets the Name field's value.
2783func (s *CreateConfigurationRequest) SetName(v string) *CreateConfigurationRequest {
2784	s.Name = &v
2785	return s
2786}
2787
2788// SetTags sets the Tags field's value.
2789func (s *CreateConfigurationRequest) SetTags(v map[string]*string) *CreateConfigurationRequest {
2790	s.Tags = v
2791	return s
2792}
2793
2794type CreateConfigurationResponse struct {
2795	_ struct{} `type:"structure"`
2796
2797	Arn *string `locationName:"arn" type:"string"`
2798
2799	Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"iso8601"`
2800
2801	Id *string `locationName:"id" type:"string"`
2802
2803	// Returns information about the specified configuration revision.
2804	LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"`
2805
2806	Name *string `locationName:"name" type:"string"`
2807}
2808
2809// String returns the string representation
2810func (s CreateConfigurationResponse) String() string {
2811	return awsutil.Prettify(s)
2812}
2813
2814// GoString returns the string representation
2815func (s CreateConfigurationResponse) GoString() string {
2816	return s.String()
2817}
2818
2819// SetArn sets the Arn field's value.
2820func (s *CreateConfigurationResponse) SetArn(v string) *CreateConfigurationResponse {
2821	s.Arn = &v
2822	return s
2823}
2824
2825// SetCreated sets the Created field's value.
2826func (s *CreateConfigurationResponse) SetCreated(v time.Time) *CreateConfigurationResponse {
2827	s.Created = &v
2828	return s
2829}
2830
2831// SetId sets the Id field's value.
2832func (s *CreateConfigurationResponse) SetId(v string) *CreateConfigurationResponse {
2833	s.Id = &v
2834	return s
2835}
2836
2837// SetLatestRevision sets the LatestRevision field's value.
2838func (s *CreateConfigurationResponse) SetLatestRevision(v *ConfigurationRevision) *CreateConfigurationResponse {
2839	s.LatestRevision = v
2840	return s
2841}
2842
2843// SetName sets the Name field's value.
2844func (s *CreateConfigurationResponse) SetName(v string) *CreateConfigurationResponse {
2845	s.Name = &v
2846	return s
2847}
2848
2849type CreateTagsInput struct {
2850	_ struct{} `type:"structure"`
2851
2852	// ResourceArn is a required field
2853	ResourceArn *string `location:"uri" locationName:"resource-arn" type:"string" required:"true"`
2854
2855	Tags map[string]*string `locationName:"tags" type:"map"`
2856}
2857
2858// String returns the string representation
2859func (s CreateTagsInput) String() string {
2860	return awsutil.Prettify(s)
2861}
2862
2863// GoString returns the string representation
2864func (s CreateTagsInput) GoString() string {
2865	return s.String()
2866}
2867
2868// Validate inspects the fields of the type to determine if they are valid.
2869func (s *CreateTagsInput) Validate() error {
2870	invalidParams := request.ErrInvalidParams{Context: "CreateTagsInput"}
2871	if s.ResourceArn == nil {
2872		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
2873	}
2874	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
2875		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
2876	}
2877
2878	if invalidParams.Len() > 0 {
2879		return invalidParams
2880	}
2881	return nil
2882}
2883
2884// SetResourceArn sets the ResourceArn field's value.
2885func (s *CreateTagsInput) SetResourceArn(v string) *CreateTagsInput {
2886	s.ResourceArn = &v
2887	return s
2888}
2889
2890// SetTags sets the Tags field's value.
2891func (s *CreateTagsInput) SetTags(v map[string]*string) *CreateTagsInput {
2892	s.Tags = v
2893	return s
2894}
2895
2896type CreateTagsOutput struct {
2897	_ struct{} `type:"structure"`
2898}
2899
2900// String returns the string representation
2901func (s CreateTagsOutput) String() string {
2902	return awsutil.Prettify(s)
2903}
2904
2905// GoString returns the string representation
2906func (s CreateTagsOutput) GoString() string {
2907	return s.String()
2908}
2909
2910type CreateUserOutput struct {
2911	_ struct{} `type:"structure"`
2912}
2913
2914// String returns the string representation
2915func (s CreateUserOutput) String() string {
2916	return awsutil.Prettify(s)
2917}
2918
2919// GoString returns the string representation
2920func (s CreateUserOutput) GoString() string {
2921	return s.String()
2922}
2923
2924type CreateUserRequest struct {
2925	_ struct{} `type:"structure"`
2926
2927	// BrokerId is a required field
2928	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
2929
2930	ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"`
2931
2932	Groups []*string `locationName:"groups" type:"list"`
2933
2934	Password *string `locationName:"password" type:"string"`
2935
2936	// Username is a required field
2937	Username *string `location:"uri" locationName:"username" type:"string" required:"true"`
2938}
2939
2940// String returns the string representation
2941func (s CreateUserRequest) String() string {
2942	return awsutil.Prettify(s)
2943}
2944
2945// GoString returns the string representation
2946func (s CreateUserRequest) GoString() string {
2947	return s.String()
2948}
2949
2950// Validate inspects the fields of the type to determine if they are valid.
2951func (s *CreateUserRequest) Validate() error {
2952	invalidParams := request.ErrInvalidParams{Context: "CreateUserRequest"}
2953	if s.BrokerId == nil {
2954		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
2955	}
2956	if s.BrokerId != nil && len(*s.BrokerId) < 1 {
2957		invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1))
2958	}
2959	if s.Username == nil {
2960		invalidParams.Add(request.NewErrParamRequired("Username"))
2961	}
2962	if s.Username != nil && len(*s.Username) < 1 {
2963		invalidParams.Add(request.NewErrParamMinLen("Username", 1))
2964	}
2965
2966	if invalidParams.Len() > 0 {
2967		return invalidParams
2968	}
2969	return nil
2970}
2971
2972// SetBrokerId sets the BrokerId field's value.
2973func (s *CreateUserRequest) SetBrokerId(v string) *CreateUserRequest {
2974	s.BrokerId = &v
2975	return s
2976}
2977
2978// SetConsoleAccess sets the ConsoleAccess field's value.
2979func (s *CreateUserRequest) SetConsoleAccess(v bool) *CreateUserRequest {
2980	s.ConsoleAccess = &v
2981	return s
2982}
2983
2984// SetGroups sets the Groups field's value.
2985func (s *CreateUserRequest) SetGroups(v []*string) *CreateUserRequest {
2986	s.Groups = v
2987	return s
2988}
2989
2990// SetPassword sets the Password field's value.
2991func (s *CreateUserRequest) SetPassword(v string) *CreateUserRequest {
2992	s.Password = &v
2993	return s
2994}
2995
2996// SetUsername sets the Username field's value.
2997func (s *CreateUserRequest) SetUsername(v string) *CreateUserRequest {
2998	s.Username = &v
2999	return s
3000}
3001
3002type DeleteBrokerInput struct {
3003	_ struct{} `type:"structure"`
3004
3005	// BrokerId is a required field
3006	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
3007}
3008
3009// String returns the string representation
3010func (s DeleteBrokerInput) String() string {
3011	return awsutil.Prettify(s)
3012}
3013
3014// GoString returns the string representation
3015func (s DeleteBrokerInput) GoString() string {
3016	return s.String()
3017}
3018
3019// Validate inspects the fields of the type to determine if they are valid.
3020func (s *DeleteBrokerInput) Validate() error {
3021	invalidParams := request.ErrInvalidParams{Context: "DeleteBrokerInput"}
3022	if s.BrokerId == nil {
3023		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
3024	}
3025	if s.BrokerId != nil && len(*s.BrokerId) < 1 {
3026		invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1))
3027	}
3028
3029	if invalidParams.Len() > 0 {
3030		return invalidParams
3031	}
3032	return nil
3033}
3034
3035// SetBrokerId sets the BrokerId field's value.
3036func (s *DeleteBrokerInput) SetBrokerId(v string) *DeleteBrokerInput {
3037	s.BrokerId = &v
3038	return s
3039}
3040
3041type DeleteBrokerResponse struct {
3042	_ struct{} `type:"structure"`
3043
3044	BrokerId *string `locationName:"brokerId" type:"string"`
3045}
3046
3047// String returns the string representation
3048func (s DeleteBrokerResponse) String() string {
3049	return awsutil.Prettify(s)
3050}
3051
3052// GoString returns the string representation
3053func (s DeleteBrokerResponse) GoString() string {
3054	return s.String()
3055}
3056
3057// SetBrokerId sets the BrokerId field's value.
3058func (s *DeleteBrokerResponse) SetBrokerId(v string) *DeleteBrokerResponse {
3059	s.BrokerId = &v
3060	return s
3061}
3062
3063type DeleteTagsInput struct {
3064	_ struct{} `type:"structure"`
3065
3066	// ResourceArn is a required field
3067	ResourceArn *string `location:"uri" locationName:"resource-arn" type:"string" required:"true"`
3068
3069	// TagKeys is a required field
3070	TagKeys []*string `location:"querystring" locationName:"tagKeys" type:"list" required:"true"`
3071}
3072
3073// String returns the string representation
3074func (s DeleteTagsInput) String() string {
3075	return awsutil.Prettify(s)
3076}
3077
3078// GoString returns the string representation
3079func (s DeleteTagsInput) GoString() string {
3080	return s.String()
3081}
3082
3083// Validate inspects the fields of the type to determine if they are valid.
3084func (s *DeleteTagsInput) Validate() error {
3085	invalidParams := request.ErrInvalidParams{Context: "DeleteTagsInput"}
3086	if s.ResourceArn == nil {
3087		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
3088	}
3089	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
3090		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
3091	}
3092	if s.TagKeys == nil {
3093		invalidParams.Add(request.NewErrParamRequired("TagKeys"))
3094	}
3095
3096	if invalidParams.Len() > 0 {
3097		return invalidParams
3098	}
3099	return nil
3100}
3101
3102// SetResourceArn sets the ResourceArn field's value.
3103func (s *DeleteTagsInput) SetResourceArn(v string) *DeleteTagsInput {
3104	s.ResourceArn = &v
3105	return s
3106}
3107
3108// SetTagKeys sets the TagKeys field's value.
3109func (s *DeleteTagsInput) SetTagKeys(v []*string) *DeleteTagsInput {
3110	s.TagKeys = v
3111	return s
3112}
3113
3114type DeleteTagsOutput struct {
3115	_ struct{} `type:"structure"`
3116}
3117
3118// String returns the string representation
3119func (s DeleteTagsOutput) String() string {
3120	return awsutil.Prettify(s)
3121}
3122
3123// GoString returns the string representation
3124func (s DeleteTagsOutput) GoString() string {
3125	return s.String()
3126}
3127
3128type DeleteUserInput struct {
3129	_ struct{} `type:"structure"`
3130
3131	// BrokerId is a required field
3132	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
3133
3134	// Username is a required field
3135	Username *string `location:"uri" locationName:"username" type:"string" required:"true"`
3136}
3137
3138// String returns the string representation
3139func (s DeleteUserInput) String() string {
3140	return awsutil.Prettify(s)
3141}
3142
3143// GoString returns the string representation
3144func (s DeleteUserInput) GoString() string {
3145	return s.String()
3146}
3147
3148// Validate inspects the fields of the type to determine if they are valid.
3149func (s *DeleteUserInput) Validate() error {
3150	invalidParams := request.ErrInvalidParams{Context: "DeleteUserInput"}
3151	if s.BrokerId == nil {
3152		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
3153	}
3154	if s.BrokerId != nil && len(*s.BrokerId) < 1 {
3155		invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1))
3156	}
3157	if s.Username == nil {
3158		invalidParams.Add(request.NewErrParamRequired("Username"))
3159	}
3160	if s.Username != nil && len(*s.Username) < 1 {
3161		invalidParams.Add(request.NewErrParamMinLen("Username", 1))
3162	}
3163
3164	if invalidParams.Len() > 0 {
3165		return invalidParams
3166	}
3167	return nil
3168}
3169
3170// SetBrokerId sets the BrokerId field's value.
3171func (s *DeleteUserInput) SetBrokerId(v string) *DeleteUserInput {
3172	s.BrokerId = &v
3173	return s
3174}
3175
3176// SetUsername sets the Username field's value.
3177func (s *DeleteUserInput) SetUsername(v string) *DeleteUserInput {
3178	s.Username = &v
3179	return s
3180}
3181
3182type DeleteUserOutput struct {
3183	_ struct{} `type:"structure"`
3184}
3185
3186// String returns the string representation
3187func (s DeleteUserOutput) String() string {
3188	return awsutil.Prettify(s)
3189}
3190
3191// GoString returns the string representation
3192func (s DeleteUserOutput) GoString() string {
3193	return s.String()
3194}
3195
3196type DescribeBrokerEngineTypesInput struct {
3197	_ struct{} `type:"structure"`
3198
3199	EngineType *string `location:"querystring" locationName:"engineType" type:"string"`
3200
3201	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
3202
3203	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
3204}
3205
3206// String returns the string representation
3207func (s DescribeBrokerEngineTypesInput) String() string {
3208	return awsutil.Prettify(s)
3209}
3210
3211// GoString returns the string representation
3212func (s DescribeBrokerEngineTypesInput) GoString() string {
3213	return s.String()
3214}
3215
3216// Validate inspects the fields of the type to determine if they are valid.
3217func (s *DescribeBrokerEngineTypesInput) Validate() error {
3218	invalidParams := request.ErrInvalidParams{Context: "DescribeBrokerEngineTypesInput"}
3219	if s.MaxResults != nil && *s.MaxResults < 1 {
3220		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
3221	}
3222
3223	if invalidParams.Len() > 0 {
3224		return invalidParams
3225	}
3226	return nil
3227}
3228
3229// SetEngineType sets the EngineType field's value.
3230func (s *DescribeBrokerEngineTypesInput) SetEngineType(v string) *DescribeBrokerEngineTypesInput {
3231	s.EngineType = &v
3232	return s
3233}
3234
3235// SetMaxResults sets the MaxResults field's value.
3236func (s *DescribeBrokerEngineTypesInput) SetMaxResults(v int64) *DescribeBrokerEngineTypesInput {
3237	s.MaxResults = &v
3238	return s
3239}
3240
3241// SetNextToken sets the NextToken field's value.
3242func (s *DescribeBrokerEngineTypesInput) SetNextToken(v string) *DescribeBrokerEngineTypesInput {
3243	s.NextToken = &v
3244	return s
3245}
3246
3247type DescribeBrokerEngineTypesOutput struct {
3248	_ struct{} `type:"structure"`
3249
3250	BrokerEngineTypes []*BrokerEngineType `locationName:"brokerEngineTypes" type:"list"`
3251
3252	MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"`
3253
3254	NextToken *string `locationName:"nextToken" type:"string"`
3255}
3256
3257// String returns the string representation
3258func (s DescribeBrokerEngineTypesOutput) String() string {
3259	return awsutil.Prettify(s)
3260}
3261
3262// GoString returns the string representation
3263func (s DescribeBrokerEngineTypesOutput) GoString() string {
3264	return s.String()
3265}
3266
3267// SetBrokerEngineTypes sets the BrokerEngineTypes field's value.
3268func (s *DescribeBrokerEngineTypesOutput) SetBrokerEngineTypes(v []*BrokerEngineType) *DescribeBrokerEngineTypesOutput {
3269	s.BrokerEngineTypes = v
3270	return s
3271}
3272
3273// SetMaxResults sets the MaxResults field's value.
3274func (s *DescribeBrokerEngineTypesOutput) SetMaxResults(v int64) *DescribeBrokerEngineTypesOutput {
3275	s.MaxResults = &v
3276	return s
3277}
3278
3279// SetNextToken sets the NextToken field's value.
3280func (s *DescribeBrokerEngineTypesOutput) SetNextToken(v string) *DescribeBrokerEngineTypesOutput {
3281	s.NextToken = &v
3282	return s
3283}
3284
3285type DescribeBrokerInput struct {
3286	_ struct{} `type:"structure"`
3287
3288	// BrokerId is a required field
3289	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
3290}
3291
3292// String returns the string representation
3293func (s DescribeBrokerInput) String() string {
3294	return awsutil.Prettify(s)
3295}
3296
3297// GoString returns the string representation
3298func (s DescribeBrokerInput) GoString() string {
3299	return s.String()
3300}
3301
3302// Validate inspects the fields of the type to determine if they are valid.
3303func (s *DescribeBrokerInput) Validate() error {
3304	invalidParams := request.ErrInvalidParams{Context: "DescribeBrokerInput"}
3305	if s.BrokerId == nil {
3306		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
3307	}
3308	if s.BrokerId != nil && len(*s.BrokerId) < 1 {
3309		invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1))
3310	}
3311
3312	if invalidParams.Len() > 0 {
3313		return invalidParams
3314	}
3315	return nil
3316}
3317
3318// SetBrokerId sets the BrokerId field's value.
3319func (s *DescribeBrokerInput) SetBrokerId(v string) *DescribeBrokerInput {
3320	s.BrokerId = &v
3321	return s
3322}
3323
3324type DescribeBrokerInstanceOptionsInput struct {
3325	_ struct{} `type:"structure"`
3326
3327	EngineType *string `location:"querystring" locationName:"engineType" type:"string"`
3328
3329	HostInstanceType *string `location:"querystring" locationName:"hostInstanceType" type:"string"`
3330
3331	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
3332
3333	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
3334
3335	StorageType *string `location:"querystring" locationName:"storageType" type:"string"`
3336}
3337
3338// String returns the string representation
3339func (s DescribeBrokerInstanceOptionsInput) String() string {
3340	return awsutil.Prettify(s)
3341}
3342
3343// GoString returns the string representation
3344func (s DescribeBrokerInstanceOptionsInput) GoString() string {
3345	return s.String()
3346}
3347
3348// Validate inspects the fields of the type to determine if they are valid.
3349func (s *DescribeBrokerInstanceOptionsInput) Validate() error {
3350	invalidParams := request.ErrInvalidParams{Context: "DescribeBrokerInstanceOptionsInput"}
3351	if s.MaxResults != nil && *s.MaxResults < 1 {
3352		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
3353	}
3354
3355	if invalidParams.Len() > 0 {
3356		return invalidParams
3357	}
3358	return nil
3359}
3360
3361// SetEngineType sets the EngineType field's value.
3362func (s *DescribeBrokerInstanceOptionsInput) SetEngineType(v string) *DescribeBrokerInstanceOptionsInput {
3363	s.EngineType = &v
3364	return s
3365}
3366
3367// SetHostInstanceType sets the HostInstanceType field's value.
3368func (s *DescribeBrokerInstanceOptionsInput) SetHostInstanceType(v string) *DescribeBrokerInstanceOptionsInput {
3369	s.HostInstanceType = &v
3370	return s
3371}
3372
3373// SetMaxResults sets the MaxResults field's value.
3374func (s *DescribeBrokerInstanceOptionsInput) SetMaxResults(v int64) *DescribeBrokerInstanceOptionsInput {
3375	s.MaxResults = &v
3376	return s
3377}
3378
3379// SetNextToken sets the NextToken field's value.
3380func (s *DescribeBrokerInstanceOptionsInput) SetNextToken(v string) *DescribeBrokerInstanceOptionsInput {
3381	s.NextToken = &v
3382	return s
3383}
3384
3385// SetStorageType sets the StorageType field's value.
3386func (s *DescribeBrokerInstanceOptionsInput) SetStorageType(v string) *DescribeBrokerInstanceOptionsInput {
3387	s.StorageType = &v
3388	return s
3389}
3390
3391type DescribeBrokerInstanceOptionsOutput struct {
3392	_ struct{} `type:"structure"`
3393
3394	BrokerInstanceOptions []*BrokerInstanceOption `locationName:"brokerInstanceOptions" type:"list"`
3395
3396	MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"`
3397
3398	NextToken *string `locationName:"nextToken" type:"string"`
3399}
3400
3401// String returns the string representation
3402func (s DescribeBrokerInstanceOptionsOutput) String() string {
3403	return awsutil.Prettify(s)
3404}
3405
3406// GoString returns the string representation
3407func (s DescribeBrokerInstanceOptionsOutput) GoString() string {
3408	return s.String()
3409}
3410
3411// SetBrokerInstanceOptions sets the BrokerInstanceOptions field's value.
3412func (s *DescribeBrokerInstanceOptionsOutput) SetBrokerInstanceOptions(v []*BrokerInstanceOption) *DescribeBrokerInstanceOptionsOutput {
3413	s.BrokerInstanceOptions = v
3414	return s
3415}
3416
3417// SetMaxResults sets the MaxResults field's value.
3418func (s *DescribeBrokerInstanceOptionsOutput) SetMaxResults(v int64) *DescribeBrokerInstanceOptionsOutput {
3419	s.MaxResults = &v
3420	return s
3421}
3422
3423// SetNextToken sets the NextToken field's value.
3424func (s *DescribeBrokerInstanceOptionsOutput) SetNextToken(v string) *DescribeBrokerInstanceOptionsOutput {
3425	s.NextToken = &v
3426	return s
3427}
3428
3429type DescribeBrokerResponse struct {
3430	_ struct{} `type:"structure"`
3431
3432	AutoMinorVersionUpgrade *bool `locationName:"autoMinorVersionUpgrade" type:"boolean"`
3433
3434	BrokerArn *string `locationName:"brokerArn" type:"string"`
3435
3436	BrokerId *string `locationName:"brokerId" type:"string"`
3437
3438	BrokerInstances []*BrokerInstance `locationName:"brokerInstances" type:"list"`
3439
3440	BrokerName *string `locationName:"brokerName" type:"string"`
3441
3442	// The status of the broker.
3443	BrokerState *string `locationName:"brokerState" type:"string" enum:"BrokerState"`
3444
3445	// Broker configuration information
3446	Configurations *Configurations `locationName:"configurations" type:"structure"`
3447
3448	Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"iso8601"`
3449
3450	// The deployment mode of the broker.
3451	DeploymentMode *string `locationName:"deploymentMode" type:"string" enum:"DeploymentMode"`
3452
3453	// Encryption options for the broker.
3454	EncryptionOptions *EncryptionOptions `locationName:"encryptionOptions" type:"structure"`
3455
3456	// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ.
3457	EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
3458
3459	EngineVersion *string `locationName:"engineVersion" type:"string"`
3460
3461	HostInstanceType *string `locationName:"hostInstanceType" type:"string"`
3462
3463	// The list of information about logs currently enabled and pending to be deployed
3464	// for the specified broker.
3465	Logs *LogsSummary `locationName:"logs" type:"structure"`
3466
3467	// The scheduled time period relative to UTC during which Amazon MQ begins to
3468	// apply pending updates or patches to the broker.
3469	MaintenanceWindowStartTime *WeeklyStartTime `locationName:"maintenanceWindowStartTime" type:"structure"`
3470
3471	PendingEngineVersion *string `locationName:"pendingEngineVersion" type:"string"`
3472
3473	PendingHostInstanceType *string `locationName:"pendingHostInstanceType" type:"string"`
3474
3475	PendingSecurityGroups []*string `locationName:"pendingSecurityGroups" type:"list"`
3476
3477	PubliclyAccessible *bool `locationName:"publiclyAccessible" type:"boolean"`
3478
3479	SecurityGroups []*string `locationName:"securityGroups" type:"list"`
3480
3481	// The storage type of the broker.
3482	StorageType *string `locationName:"storageType" type:"string" enum:"BrokerStorageType"`
3483
3484	SubnetIds []*string `locationName:"subnetIds" type:"list"`
3485
3486	Tags map[string]*string `locationName:"tags" type:"map"`
3487
3488	Users []*UserSummary `locationName:"users" type:"list"`
3489}
3490
3491// String returns the string representation
3492func (s DescribeBrokerResponse) String() string {
3493	return awsutil.Prettify(s)
3494}
3495
3496// GoString returns the string representation
3497func (s DescribeBrokerResponse) GoString() string {
3498	return s.String()
3499}
3500
3501// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
3502func (s *DescribeBrokerResponse) SetAutoMinorVersionUpgrade(v bool) *DescribeBrokerResponse {
3503	s.AutoMinorVersionUpgrade = &v
3504	return s
3505}
3506
3507// SetBrokerArn sets the BrokerArn field's value.
3508func (s *DescribeBrokerResponse) SetBrokerArn(v string) *DescribeBrokerResponse {
3509	s.BrokerArn = &v
3510	return s
3511}
3512
3513// SetBrokerId sets the BrokerId field's value.
3514func (s *DescribeBrokerResponse) SetBrokerId(v string) *DescribeBrokerResponse {
3515	s.BrokerId = &v
3516	return s
3517}
3518
3519// SetBrokerInstances sets the BrokerInstances field's value.
3520func (s *DescribeBrokerResponse) SetBrokerInstances(v []*BrokerInstance) *DescribeBrokerResponse {
3521	s.BrokerInstances = v
3522	return s
3523}
3524
3525// SetBrokerName sets the BrokerName field's value.
3526func (s *DescribeBrokerResponse) SetBrokerName(v string) *DescribeBrokerResponse {
3527	s.BrokerName = &v
3528	return s
3529}
3530
3531// SetBrokerState sets the BrokerState field's value.
3532func (s *DescribeBrokerResponse) SetBrokerState(v string) *DescribeBrokerResponse {
3533	s.BrokerState = &v
3534	return s
3535}
3536
3537// SetConfigurations sets the Configurations field's value.
3538func (s *DescribeBrokerResponse) SetConfigurations(v *Configurations) *DescribeBrokerResponse {
3539	s.Configurations = v
3540	return s
3541}
3542
3543// SetCreated sets the Created field's value.
3544func (s *DescribeBrokerResponse) SetCreated(v time.Time) *DescribeBrokerResponse {
3545	s.Created = &v
3546	return s
3547}
3548
3549// SetDeploymentMode sets the DeploymentMode field's value.
3550func (s *DescribeBrokerResponse) SetDeploymentMode(v string) *DescribeBrokerResponse {
3551	s.DeploymentMode = &v
3552	return s
3553}
3554
3555// SetEncryptionOptions sets the EncryptionOptions field's value.
3556func (s *DescribeBrokerResponse) SetEncryptionOptions(v *EncryptionOptions) *DescribeBrokerResponse {
3557	s.EncryptionOptions = v
3558	return s
3559}
3560
3561// SetEngineType sets the EngineType field's value.
3562func (s *DescribeBrokerResponse) SetEngineType(v string) *DescribeBrokerResponse {
3563	s.EngineType = &v
3564	return s
3565}
3566
3567// SetEngineVersion sets the EngineVersion field's value.
3568func (s *DescribeBrokerResponse) SetEngineVersion(v string) *DescribeBrokerResponse {
3569	s.EngineVersion = &v
3570	return s
3571}
3572
3573// SetHostInstanceType sets the HostInstanceType field's value.
3574func (s *DescribeBrokerResponse) SetHostInstanceType(v string) *DescribeBrokerResponse {
3575	s.HostInstanceType = &v
3576	return s
3577}
3578
3579// SetLogs sets the Logs field's value.
3580func (s *DescribeBrokerResponse) SetLogs(v *LogsSummary) *DescribeBrokerResponse {
3581	s.Logs = v
3582	return s
3583}
3584
3585// SetMaintenanceWindowStartTime sets the MaintenanceWindowStartTime field's value.
3586func (s *DescribeBrokerResponse) SetMaintenanceWindowStartTime(v *WeeklyStartTime) *DescribeBrokerResponse {
3587	s.MaintenanceWindowStartTime = v
3588	return s
3589}
3590
3591// SetPendingEngineVersion sets the PendingEngineVersion field's value.
3592func (s *DescribeBrokerResponse) SetPendingEngineVersion(v string) *DescribeBrokerResponse {
3593	s.PendingEngineVersion = &v
3594	return s
3595}
3596
3597// SetPendingHostInstanceType sets the PendingHostInstanceType field's value.
3598func (s *DescribeBrokerResponse) SetPendingHostInstanceType(v string) *DescribeBrokerResponse {
3599	s.PendingHostInstanceType = &v
3600	return s
3601}
3602
3603// SetPendingSecurityGroups sets the PendingSecurityGroups field's value.
3604func (s *DescribeBrokerResponse) SetPendingSecurityGroups(v []*string) *DescribeBrokerResponse {
3605	s.PendingSecurityGroups = v
3606	return s
3607}
3608
3609// SetPubliclyAccessible sets the PubliclyAccessible field's value.
3610func (s *DescribeBrokerResponse) SetPubliclyAccessible(v bool) *DescribeBrokerResponse {
3611	s.PubliclyAccessible = &v
3612	return s
3613}
3614
3615// SetSecurityGroups sets the SecurityGroups field's value.
3616func (s *DescribeBrokerResponse) SetSecurityGroups(v []*string) *DescribeBrokerResponse {
3617	s.SecurityGroups = v
3618	return s
3619}
3620
3621// SetStorageType sets the StorageType field's value.
3622func (s *DescribeBrokerResponse) SetStorageType(v string) *DescribeBrokerResponse {
3623	s.StorageType = &v
3624	return s
3625}
3626
3627// SetSubnetIds sets the SubnetIds field's value.
3628func (s *DescribeBrokerResponse) SetSubnetIds(v []*string) *DescribeBrokerResponse {
3629	s.SubnetIds = v
3630	return s
3631}
3632
3633// SetTags sets the Tags field's value.
3634func (s *DescribeBrokerResponse) SetTags(v map[string]*string) *DescribeBrokerResponse {
3635	s.Tags = v
3636	return s
3637}
3638
3639// SetUsers sets the Users field's value.
3640func (s *DescribeBrokerResponse) SetUsers(v []*UserSummary) *DescribeBrokerResponse {
3641	s.Users = v
3642	return s
3643}
3644
3645type DescribeConfigurationInput struct {
3646	_ struct{} `type:"structure"`
3647
3648	// ConfigurationId is a required field
3649	ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"`
3650}
3651
3652// String returns the string representation
3653func (s DescribeConfigurationInput) String() string {
3654	return awsutil.Prettify(s)
3655}
3656
3657// GoString returns the string representation
3658func (s DescribeConfigurationInput) GoString() string {
3659	return s.String()
3660}
3661
3662// Validate inspects the fields of the type to determine if they are valid.
3663func (s *DescribeConfigurationInput) Validate() error {
3664	invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationInput"}
3665	if s.ConfigurationId == nil {
3666		invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
3667	}
3668	if s.ConfigurationId != nil && len(*s.ConfigurationId) < 1 {
3669		invalidParams.Add(request.NewErrParamMinLen("ConfigurationId", 1))
3670	}
3671
3672	if invalidParams.Len() > 0 {
3673		return invalidParams
3674	}
3675	return nil
3676}
3677
3678// SetConfigurationId sets the ConfigurationId field's value.
3679func (s *DescribeConfigurationInput) SetConfigurationId(v string) *DescribeConfigurationInput {
3680	s.ConfigurationId = &v
3681	return s
3682}
3683
3684type DescribeConfigurationOutput struct {
3685	_ struct{} `type:"structure"`
3686
3687	Arn *string `locationName:"arn" type:"string"`
3688
3689	Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"iso8601"`
3690
3691	Description *string `locationName:"description" type:"string"`
3692
3693	// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ.
3694	EngineType *string `locationName:"engineType" type:"string" enum:"EngineType"`
3695
3696	EngineVersion *string `locationName:"engineVersion" type:"string"`
3697
3698	Id *string `locationName:"id" type:"string"`
3699
3700	// Returns information about the specified configuration revision.
3701	LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"`
3702
3703	Name *string `locationName:"name" type:"string"`
3704
3705	Tags map[string]*string `locationName:"tags" type:"map"`
3706}
3707
3708// String returns the string representation
3709func (s DescribeConfigurationOutput) String() string {
3710	return awsutil.Prettify(s)
3711}
3712
3713// GoString returns the string representation
3714func (s DescribeConfigurationOutput) GoString() string {
3715	return s.String()
3716}
3717
3718// SetArn sets the Arn field's value.
3719func (s *DescribeConfigurationOutput) SetArn(v string) *DescribeConfigurationOutput {
3720	s.Arn = &v
3721	return s
3722}
3723
3724// SetCreated sets the Created field's value.
3725func (s *DescribeConfigurationOutput) SetCreated(v time.Time) *DescribeConfigurationOutput {
3726	s.Created = &v
3727	return s
3728}
3729
3730// SetDescription sets the Description field's value.
3731func (s *DescribeConfigurationOutput) SetDescription(v string) *DescribeConfigurationOutput {
3732	s.Description = &v
3733	return s
3734}
3735
3736// SetEngineType sets the EngineType field's value.
3737func (s *DescribeConfigurationOutput) SetEngineType(v string) *DescribeConfigurationOutput {
3738	s.EngineType = &v
3739	return s
3740}
3741
3742// SetEngineVersion sets the EngineVersion field's value.
3743func (s *DescribeConfigurationOutput) SetEngineVersion(v string) *DescribeConfigurationOutput {
3744	s.EngineVersion = &v
3745	return s
3746}
3747
3748// SetId sets the Id field's value.
3749func (s *DescribeConfigurationOutput) SetId(v string) *DescribeConfigurationOutput {
3750	s.Id = &v
3751	return s
3752}
3753
3754// SetLatestRevision sets the LatestRevision field's value.
3755func (s *DescribeConfigurationOutput) SetLatestRevision(v *ConfigurationRevision) *DescribeConfigurationOutput {
3756	s.LatestRevision = v
3757	return s
3758}
3759
3760// SetName sets the Name field's value.
3761func (s *DescribeConfigurationOutput) SetName(v string) *DescribeConfigurationOutput {
3762	s.Name = &v
3763	return s
3764}
3765
3766// SetTags sets the Tags field's value.
3767func (s *DescribeConfigurationOutput) SetTags(v map[string]*string) *DescribeConfigurationOutput {
3768	s.Tags = v
3769	return s
3770}
3771
3772type DescribeConfigurationRevisionInput struct {
3773	_ struct{} `type:"structure"`
3774
3775	// ConfigurationId is a required field
3776	ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"`
3777
3778	// ConfigurationRevision is a required field
3779	ConfigurationRevision *string `location:"uri" locationName:"configuration-revision" type:"string" required:"true"`
3780}
3781
3782// String returns the string representation
3783func (s DescribeConfigurationRevisionInput) String() string {
3784	return awsutil.Prettify(s)
3785}
3786
3787// GoString returns the string representation
3788func (s DescribeConfigurationRevisionInput) GoString() string {
3789	return s.String()
3790}
3791
3792// Validate inspects the fields of the type to determine if they are valid.
3793func (s *DescribeConfigurationRevisionInput) Validate() error {
3794	invalidParams := request.ErrInvalidParams{Context: "DescribeConfigurationRevisionInput"}
3795	if s.ConfigurationId == nil {
3796		invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
3797	}
3798	if s.ConfigurationId != nil && len(*s.ConfigurationId) < 1 {
3799		invalidParams.Add(request.NewErrParamMinLen("ConfigurationId", 1))
3800	}
3801	if s.ConfigurationRevision == nil {
3802		invalidParams.Add(request.NewErrParamRequired("ConfigurationRevision"))
3803	}
3804	if s.ConfigurationRevision != nil && len(*s.ConfigurationRevision) < 1 {
3805		invalidParams.Add(request.NewErrParamMinLen("ConfigurationRevision", 1))
3806	}
3807
3808	if invalidParams.Len() > 0 {
3809		return invalidParams
3810	}
3811	return nil
3812}
3813
3814// SetConfigurationId sets the ConfigurationId field's value.
3815func (s *DescribeConfigurationRevisionInput) SetConfigurationId(v string) *DescribeConfigurationRevisionInput {
3816	s.ConfigurationId = &v
3817	return s
3818}
3819
3820// SetConfigurationRevision sets the ConfigurationRevision field's value.
3821func (s *DescribeConfigurationRevisionInput) SetConfigurationRevision(v string) *DescribeConfigurationRevisionInput {
3822	s.ConfigurationRevision = &v
3823	return s
3824}
3825
3826type DescribeConfigurationRevisionResponse struct {
3827	_ struct{} `type:"structure"`
3828
3829	ConfigurationId *string `locationName:"configurationId" type:"string"`
3830
3831	Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"iso8601"`
3832
3833	Data *string `locationName:"data" type:"string"`
3834
3835	Description *string `locationName:"description" type:"string"`
3836}
3837
3838// String returns the string representation
3839func (s DescribeConfigurationRevisionResponse) String() string {
3840	return awsutil.Prettify(s)
3841}
3842
3843// GoString returns the string representation
3844func (s DescribeConfigurationRevisionResponse) GoString() string {
3845	return s.String()
3846}
3847
3848// SetConfigurationId sets the ConfigurationId field's value.
3849func (s *DescribeConfigurationRevisionResponse) SetConfigurationId(v string) *DescribeConfigurationRevisionResponse {
3850	s.ConfigurationId = &v
3851	return s
3852}
3853
3854// SetCreated sets the Created field's value.
3855func (s *DescribeConfigurationRevisionResponse) SetCreated(v time.Time) *DescribeConfigurationRevisionResponse {
3856	s.Created = &v
3857	return s
3858}
3859
3860// SetData sets the Data field's value.
3861func (s *DescribeConfigurationRevisionResponse) SetData(v string) *DescribeConfigurationRevisionResponse {
3862	s.Data = &v
3863	return s
3864}
3865
3866// SetDescription sets the Description field's value.
3867func (s *DescribeConfigurationRevisionResponse) SetDescription(v string) *DescribeConfigurationRevisionResponse {
3868	s.Description = &v
3869	return s
3870}
3871
3872type DescribeUserInput struct {
3873	_ struct{} `type:"structure"`
3874
3875	// BrokerId is a required field
3876	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
3877
3878	// Username is a required field
3879	Username *string `location:"uri" locationName:"username" type:"string" required:"true"`
3880}
3881
3882// String returns the string representation
3883func (s DescribeUserInput) String() string {
3884	return awsutil.Prettify(s)
3885}
3886
3887// GoString returns the string representation
3888func (s DescribeUserInput) GoString() string {
3889	return s.String()
3890}
3891
3892// Validate inspects the fields of the type to determine if they are valid.
3893func (s *DescribeUserInput) Validate() error {
3894	invalidParams := request.ErrInvalidParams{Context: "DescribeUserInput"}
3895	if s.BrokerId == nil {
3896		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
3897	}
3898	if s.BrokerId != nil && len(*s.BrokerId) < 1 {
3899		invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1))
3900	}
3901	if s.Username == nil {
3902		invalidParams.Add(request.NewErrParamRequired("Username"))
3903	}
3904	if s.Username != nil && len(*s.Username) < 1 {
3905		invalidParams.Add(request.NewErrParamMinLen("Username", 1))
3906	}
3907
3908	if invalidParams.Len() > 0 {
3909		return invalidParams
3910	}
3911	return nil
3912}
3913
3914// SetBrokerId sets the BrokerId field's value.
3915func (s *DescribeUserInput) SetBrokerId(v string) *DescribeUserInput {
3916	s.BrokerId = &v
3917	return s
3918}
3919
3920// SetUsername sets the Username field's value.
3921func (s *DescribeUserInput) SetUsername(v string) *DescribeUserInput {
3922	s.Username = &v
3923	return s
3924}
3925
3926type DescribeUserResponse struct {
3927	_ struct{} `type:"structure"`
3928
3929	BrokerId *string `locationName:"brokerId" type:"string"`
3930
3931	ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"`
3932
3933	Groups []*string `locationName:"groups" type:"list"`
3934
3935	// Returns information about the status of the changes pending for the ActiveMQ
3936	// user.
3937	Pending *UserPendingChanges `locationName:"pending" type:"structure"`
3938
3939	Username *string `locationName:"username" type:"string"`
3940}
3941
3942// String returns the string representation
3943func (s DescribeUserResponse) String() string {
3944	return awsutil.Prettify(s)
3945}
3946
3947// GoString returns the string representation
3948func (s DescribeUserResponse) GoString() string {
3949	return s.String()
3950}
3951
3952// SetBrokerId sets the BrokerId field's value.
3953func (s *DescribeUserResponse) SetBrokerId(v string) *DescribeUserResponse {
3954	s.BrokerId = &v
3955	return s
3956}
3957
3958// SetConsoleAccess sets the ConsoleAccess field's value.
3959func (s *DescribeUserResponse) SetConsoleAccess(v bool) *DescribeUserResponse {
3960	s.ConsoleAccess = &v
3961	return s
3962}
3963
3964// SetGroups sets the Groups field's value.
3965func (s *DescribeUserResponse) SetGroups(v []*string) *DescribeUserResponse {
3966	s.Groups = v
3967	return s
3968}
3969
3970// SetPending sets the Pending field's value.
3971func (s *DescribeUserResponse) SetPending(v *UserPendingChanges) *DescribeUserResponse {
3972	s.Pending = v
3973	return s
3974}
3975
3976// SetUsername sets the Username field's value.
3977func (s *DescribeUserResponse) SetUsername(v string) *DescribeUserResponse {
3978	s.Username = &v
3979	return s
3980}
3981
3982// Encryption options for the broker.
3983type EncryptionOptions struct {
3984	_ struct{} `type:"structure"`
3985
3986	// The customer master key (CMK) to use for the AWS Key Management Service (KMS).
3987	// This key is used to encrypt your data at rest. If not provided, Amazon MQ
3988	// will use a default CMK to encrypt your data.
3989	KmsKeyId *string `locationName:"kmsKeyId" type:"string"`
3990
3991	// Enables the use of an AWS owned CMK using AWS Key Management Service (KMS).
3992	//
3993	// UseAwsOwnedKey is a required field
3994	UseAwsOwnedKey *bool `locationName:"useAwsOwnedKey" type:"boolean" required:"true"`
3995}
3996
3997// String returns the string representation
3998func (s EncryptionOptions) String() string {
3999	return awsutil.Prettify(s)
4000}
4001
4002// GoString returns the string representation
4003func (s EncryptionOptions) GoString() string {
4004	return s.String()
4005}
4006
4007// Validate inspects the fields of the type to determine if they are valid.
4008func (s *EncryptionOptions) Validate() error {
4009	invalidParams := request.ErrInvalidParams{Context: "EncryptionOptions"}
4010	if s.UseAwsOwnedKey == nil {
4011		invalidParams.Add(request.NewErrParamRequired("UseAwsOwnedKey"))
4012	}
4013
4014	if invalidParams.Len() > 0 {
4015		return invalidParams
4016	}
4017	return nil
4018}
4019
4020// SetKmsKeyId sets the KmsKeyId field's value.
4021func (s *EncryptionOptions) SetKmsKeyId(v string) *EncryptionOptions {
4022	s.KmsKeyId = &v
4023	return s
4024}
4025
4026// SetUseAwsOwnedKey sets the UseAwsOwnedKey field's value.
4027func (s *EncryptionOptions) SetUseAwsOwnedKey(v bool) *EncryptionOptions {
4028	s.UseAwsOwnedKey = &v
4029	return s
4030}
4031
4032// Id of the engine version.
4033type EngineVersion struct {
4034	_ struct{} `type:"structure"`
4035
4036	// Id for the version.
4037	Name *string `locationName:"name" type:"string"`
4038}
4039
4040// String returns the string representation
4041func (s EngineVersion) String() string {
4042	return awsutil.Prettify(s)
4043}
4044
4045// GoString returns the string representation
4046func (s EngineVersion) GoString() string {
4047	return s.String()
4048}
4049
4050// SetName sets the Name field's value.
4051func (s *EngineVersion) SetName(v string) *EngineVersion {
4052	s.Name = &v
4053	return s
4054}
4055
4056// Returns information about an error.
4057type ForbiddenException struct {
4058	_            struct{} `type:"structure"`
4059	respMetadata protocol.ResponseMetadata
4060
4061	ErrorAttribute *string `locationName:"errorAttribute" type:"string"`
4062
4063	Message_ *string `locationName:"message" type:"string"`
4064}
4065
4066// String returns the string representation
4067func (s ForbiddenException) String() string {
4068	return awsutil.Prettify(s)
4069}
4070
4071// GoString returns the string representation
4072func (s ForbiddenException) GoString() string {
4073	return s.String()
4074}
4075
4076func newErrorForbiddenException(v protocol.ResponseMetadata) error {
4077	return &ForbiddenException{
4078		respMetadata: v,
4079	}
4080}
4081
4082// Code returns the exception type name.
4083func (s ForbiddenException) Code() string {
4084	return "ForbiddenException"
4085}
4086
4087// Message returns the exception's message.
4088func (s ForbiddenException) Message() string {
4089	if s.Message_ != nil {
4090		return *s.Message_
4091	}
4092	return ""
4093}
4094
4095// OrigErr always returns nil, satisfies awserr.Error interface.
4096func (s ForbiddenException) OrigErr() error {
4097	return nil
4098}
4099
4100func (s ForbiddenException) Error() string {
4101	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
4102}
4103
4104// Status code returns the HTTP status code for the request's response error.
4105func (s ForbiddenException) StatusCode() int {
4106	return s.respMetadata.StatusCode
4107}
4108
4109// RequestID returns the service's response RequestID for request.
4110func (s ForbiddenException) RequestID() string {
4111	return s.respMetadata.RequestID
4112}
4113
4114// Returns information about an error.
4115type InternalServerErrorException struct {
4116	_            struct{} `type:"structure"`
4117	respMetadata protocol.ResponseMetadata
4118
4119	ErrorAttribute *string `locationName:"errorAttribute" type:"string"`
4120
4121	Message_ *string `locationName:"message" type:"string"`
4122}
4123
4124// String returns the string representation
4125func (s InternalServerErrorException) String() string {
4126	return awsutil.Prettify(s)
4127}
4128
4129// GoString returns the string representation
4130func (s InternalServerErrorException) GoString() string {
4131	return s.String()
4132}
4133
4134func newErrorInternalServerErrorException(v protocol.ResponseMetadata) error {
4135	return &InternalServerErrorException{
4136		respMetadata: v,
4137	}
4138}
4139
4140// Code returns the exception type name.
4141func (s InternalServerErrorException) Code() string {
4142	return "InternalServerErrorException"
4143}
4144
4145// Message returns the exception's message.
4146func (s InternalServerErrorException) Message() string {
4147	if s.Message_ != nil {
4148		return *s.Message_
4149	}
4150	return ""
4151}
4152
4153// OrigErr always returns nil, satisfies awserr.Error interface.
4154func (s InternalServerErrorException) OrigErr() error {
4155	return nil
4156}
4157
4158func (s InternalServerErrorException) Error() string {
4159	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
4160}
4161
4162// Status code returns the HTTP status code for the request's response error.
4163func (s InternalServerErrorException) StatusCode() int {
4164	return s.respMetadata.StatusCode
4165}
4166
4167// RequestID returns the service's response RequestID for request.
4168func (s InternalServerErrorException) RequestID() string {
4169	return s.respMetadata.RequestID
4170}
4171
4172type ListBrokersInput struct {
4173	_ struct{} `type:"structure"`
4174
4175	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
4176
4177	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
4178}
4179
4180// String returns the string representation
4181func (s ListBrokersInput) String() string {
4182	return awsutil.Prettify(s)
4183}
4184
4185// GoString returns the string representation
4186func (s ListBrokersInput) GoString() string {
4187	return s.String()
4188}
4189
4190// Validate inspects the fields of the type to determine if they are valid.
4191func (s *ListBrokersInput) Validate() error {
4192	invalidParams := request.ErrInvalidParams{Context: "ListBrokersInput"}
4193	if s.MaxResults != nil && *s.MaxResults < 1 {
4194		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
4195	}
4196
4197	if invalidParams.Len() > 0 {
4198		return invalidParams
4199	}
4200	return nil
4201}
4202
4203// SetMaxResults sets the MaxResults field's value.
4204func (s *ListBrokersInput) SetMaxResults(v int64) *ListBrokersInput {
4205	s.MaxResults = &v
4206	return s
4207}
4208
4209// SetNextToken sets the NextToken field's value.
4210func (s *ListBrokersInput) SetNextToken(v string) *ListBrokersInput {
4211	s.NextToken = &v
4212	return s
4213}
4214
4215type ListBrokersResponse struct {
4216	_ struct{} `type:"structure"`
4217
4218	BrokerSummaries []*BrokerSummary `locationName:"brokerSummaries" type:"list"`
4219
4220	NextToken *string `locationName:"nextToken" type:"string"`
4221}
4222
4223// String returns the string representation
4224func (s ListBrokersResponse) String() string {
4225	return awsutil.Prettify(s)
4226}
4227
4228// GoString returns the string representation
4229func (s ListBrokersResponse) GoString() string {
4230	return s.String()
4231}
4232
4233// SetBrokerSummaries sets the BrokerSummaries field's value.
4234func (s *ListBrokersResponse) SetBrokerSummaries(v []*BrokerSummary) *ListBrokersResponse {
4235	s.BrokerSummaries = v
4236	return s
4237}
4238
4239// SetNextToken sets the NextToken field's value.
4240func (s *ListBrokersResponse) SetNextToken(v string) *ListBrokersResponse {
4241	s.NextToken = &v
4242	return s
4243}
4244
4245type ListConfigurationRevisionsInput struct {
4246	_ struct{} `type:"structure"`
4247
4248	// ConfigurationId is a required field
4249	ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"`
4250
4251	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
4252
4253	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
4254}
4255
4256// String returns the string representation
4257func (s ListConfigurationRevisionsInput) String() string {
4258	return awsutil.Prettify(s)
4259}
4260
4261// GoString returns the string representation
4262func (s ListConfigurationRevisionsInput) GoString() string {
4263	return s.String()
4264}
4265
4266// Validate inspects the fields of the type to determine if they are valid.
4267func (s *ListConfigurationRevisionsInput) Validate() error {
4268	invalidParams := request.ErrInvalidParams{Context: "ListConfigurationRevisionsInput"}
4269	if s.ConfigurationId == nil {
4270		invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
4271	}
4272	if s.ConfigurationId != nil && len(*s.ConfigurationId) < 1 {
4273		invalidParams.Add(request.NewErrParamMinLen("ConfigurationId", 1))
4274	}
4275	if s.MaxResults != nil && *s.MaxResults < 1 {
4276		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
4277	}
4278
4279	if invalidParams.Len() > 0 {
4280		return invalidParams
4281	}
4282	return nil
4283}
4284
4285// SetConfigurationId sets the ConfigurationId field's value.
4286func (s *ListConfigurationRevisionsInput) SetConfigurationId(v string) *ListConfigurationRevisionsInput {
4287	s.ConfigurationId = &v
4288	return s
4289}
4290
4291// SetMaxResults sets the MaxResults field's value.
4292func (s *ListConfigurationRevisionsInput) SetMaxResults(v int64) *ListConfigurationRevisionsInput {
4293	s.MaxResults = &v
4294	return s
4295}
4296
4297// SetNextToken sets the NextToken field's value.
4298func (s *ListConfigurationRevisionsInput) SetNextToken(v string) *ListConfigurationRevisionsInput {
4299	s.NextToken = &v
4300	return s
4301}
4302
4303type ListConfigurationRevisionsResponse struct {
4304	_ struct{} `type:"structure"`
4305
4306	ConfigurationId *string `locationName:"configurationId" type:"string"`
4307
4308	MaxResults *int64 `locationName:"maxResults" type:"integer"`
4309
4310	NextToken *string `locationName:"nextToken" type:"string"`
4311
4312	Revisions []*ConfigurationRevision `locationName:"revisions" type:"list"`
4313}
4314
4315// String returns the string representation
4316func (s ListConfigurationRevisionsResponse) String() string {
4317	return awsutil.Prettify(s)
4318}
4319
4320// GoString returns the string representation
4321func (s ListConfigurationRevisionsResponse) GoString() string {
4322	return s.String()
4323}
4324
4325// SetConfigurationId sets the ConfigurationId field's value.
4326func (s *ListConfigurationRevisionsResponse) SetConfigurationId(v string) *ListConfigurationRevisionsResponse {
4327	s.ConfigurationId = &v
4328	return s
4329}
4330
4331// SetMaxResults sets the MaxResults field's value.
4332func (s *ListConfigurationRevisionsResponse) SetMaxResults(v int64) *ListConfigurationRevisionsResponse {
4333	s.MaxResults = &v
4334	return s
4335}
4336
4337// SetNextToken sets the NextToken field's value.
4338func (s *ListConfigurationRevisionsResponse) SetNextToken(v string) *ListConfigurationRevisionsResponse {
4339	s.NextToken = &v
4340	return s
4341}
4342
4343// SetRevisions sets the Revisions field's value.
4344func (s *ListConfigurationRevisionsResponse) SetRevisions(v []*ConfigurationRevision) *ListConfigurationRevisionsResponse {
4345	s.Revisions = v
4346	return s
4347}
4348
4349type ListConfigurationsInput struct {
4350	_ struct{} `type:"structure"`
4351
4352	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
4353
4354	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
4355}
4356
4357// String returns the string representation
4358func (s ListConfigurationsInput) String() string {
4359	return awsutil.Prettify(s)
4360}
4361
4362// GoString returns the string representation
4363func (s ListConfigurationsInput) GoString() string {
4364	return s.String()
4365}
4366
4367// Validate inspects the fields of the type to determine if they are valid.
4368func (s *ListConfigurationsInput) Validate() error {
4369	invalidParams := request.ErrInvalidParams{Context: "ListConfigurationsInput"}
4370	if s.MaxResults != nil && *s.MaxResults < 1 {
4371		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
4372	}
4373
4374	if invalidParams.Len() > 0 {
4375		return invalidParams
4376	}
4377	return nil
4378}
4379
4380// SetMaxResults sets the MaxResults field's value.
4381func (s *ListConfigurationsInput) SetMaxResults(v int64) *ListConfigurationsInput {
4382	s.MaxResults = &v
4383	return s
4384}
4385
4386// SetNextToken sets the NextToken field's value.
4387func (s *ListConfigurationsInput) SetNextToken(v string) *ListConfigurationsInput {
4388	s.NextToken = &v
4389	return s
4390}
4391
4392type ListConfigurationsResponse struct {
4393	_ struct{} `type:"structure"`
4394
4395	Configurations []*Configuration `locationName:"configurations" type:"list"`
4396
4397	MaxResults *int64 `locationName:"maxResults" type:"integer"`
4398
4399	NextToken *string `locationName:"nextToken" type:"string"`
4400}
4401
4402// String returns the string representation
4403func (s ListConfigurationsResponse) String() string {
4404	return awsutil.Prettify(s)
4405}
4406
4407// GoString returns the string representation
4408func (s ListConfigurationsResponse) GoString() string {
4409	return s.String()
4410}
4411
4412// SetConfigurations sets the Configurations field's value.
4413func (s *ListConfigurationsResponse) SetConfigurations(v []*Configuration) *ListConfigurationsResponse {
4414	s.Configurations = v
4415	return s
4416}
4417
4418// SetMaxResults sets the MaxResults field's value.
4419func (s *ListConfigurationsResponse) SetMaxResults(v int64) *ListConfigurationsResponse {
4420	s.MaxResults = &v
4421	return s
4422}
4423
4424// SetNextToken sets the NextToken field's value.
4425func (s *ListConfigurationsResponse) SetNextToken(v string) *ListConfigurationsResponse {
4426	s.NextToken = &v
4427	return s
4428}
4429
4430type ListTagsInput struct {
4431	_ struct{} `type:"structure"`
4432
4433	// ResourceArn is a required field
4434	ResourceArn *string `location:"uri" locationName:"resource-arn" type:"string" required:"true"`
4435}
4436
4437// String returns the string representation
4438func (s ListTagsInput) String() string {
4439	return awsutil.Prettify(s)
4440}
4441
4442// GoString returns the string representation
4443func (s ListTagsInput) GoString() string {
4444	return s.String()
4445}
4446
4447// Validate inspects the fields of the type to determine if they are valid.
4448func (s *ListTagsInput) Validate() error {
4449	invalidParams := request.ErrInvalidParams{Context: "ListTagsInput"}
4450	if s.ResourceArn == nil {
4451		invalidParams.Add(request.NewErrParamRequired("ResourceArn"))
4452	}
4453	if s.ResourceArn != nil && len(*s.ResourceArn) < 1 {
4454		invalidParams.Add(request.NewErrParamMinLen("ResourceArn", 1))
4455	}
4456
4457	if invalidParams.Len() > 0 {
4458		return invalidParams
4459	}
4460	return nil
4461}
4462
4463// SetResourceArn sets the ResourceArn field's value.
4464func (s *ListTagsInput) SetResourceArn(v string) *ListTagsInput {
4465	s.ResourceArn = &v
4466	return s
4467}
4468
4469type ListTagsOutput struct {
4470	_ struct{} `type:"structure"`
4471
4472	Tags map[string]*string `locationName:"tags" type:"map"`
4473}
4474
4475// String returns the string representation
4476func (s ListTagsOutput) String() string {
4477	return awsutil.Prettify(s)
4478}
4479
4480// GoString returns the string representation
4481func (s ListTagsOutput) GoString() string {
4482	return s.String()
4483}
4484
4485// SetTags sets the Tags field's value.
4486func (s *ListTagsOutput) SetTags(v map[string]*string) *ListTagsOutput {
4487	s.Tags = v
4488	return s
4489}
4490
4491type ListUsersInput struct {
4492	_ struct{} `type:"structure"`
4493
4494	// BrokerId is a required field
4495	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
4496
4497	MaxResults *int64 `location:"querystring" locationName:"maxResults" min:"1" type:"integer"`
4498
4499	NextToken *string `location:"querystring" locationName:"nextToken" type:"string"`
4500}
4501
4502// String returns the string representation
4503func (s ListUsersInput) String() string {
4504	return awsutil.Prettify(s)
4505}
4506
4507// GoString returns the string representation
4508func (s ListUsersInput) GoString() string {
4509	return s.String()
4510}
4511
4512// Validate inspects the fields of the type to determine if they are valid.
4513func (s *ListUsersInput) Validate() error {
4514	invalidParams := request.ErrInvalidParams{Context: "ListUsersInput"}
4515	if s.BrokerId == nil {
4516		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
4517	}
4518	if s.BrokerId != nil && len(*s.BrokerId) < 1 {
4519		invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1))
4520	}
4521	if s.MaxResults != nil && *s.MaxResults < 1 {
4522		invalidParams.Add(request.NewErrParamMinValue("MaxResults", 1))
4523	}
4524
4525	if invalidParams.Len() > 0 {
4526		return invalidParams
4527	}
4528	return nil
4529}
4530
4531// SetBrokerId sets the BrokerId field's value.
4532func (s *ListUsersInput) SetBrokerId(v string) *ListUsersInput {
4533	s.BrokerId = &v
4534	return s
4535}
4536
4537// SetMaxResults sets the MaxResults field's value.
4538func (s *ListUsersInput) SetMaxResults(v int64) *ListUsersInput {
4539	s.MaxResults = &v
4540	return s
4541}
4542
4543// SetNextToken sets the NextToken field's value.
4544func (s *ListUsersInput) SetNextToken(v string) *ListUsersInput {
4545	s.NextToken = &v
4546	return s
4547}
4548
4549type ListUsersResponse struct {
4550	_ struct{} `type:"structure"`
4551
4552	BrokerId *string `locationName:"brokerId" type:"string"`
4553
4554	MaxResults *int64 `locationName:"maxResults" min:"5" type:"integer"`
4555
4556	NextToken *string `locationName:"nextToken" type:"string"`
4557
4558	Users []*UserSummary `locationName:"users" type:"list"`
4559}
4560
4561// String returns the string representation
4562func (s ListUsersResponse) String() string {
4563	return awsutil.Prettify(s)
4564}
4565
4566// GoString returns the string representation
4567func (s ListUsersResponse) GoString() string {
4568	return s.String()
4569}
4570
4571// SetBrokerId sets the BrokerId field's value.
4572func (s *ListUsersResponse) SetBrokerId(v string) *ListUsersResponse {
4573	s.BrokerId = &v
4574	return s
4575}
4576
4577// SetMaxResults sets the MaxResults field's value.
4578func (s *ListUsersResponse) SetMaxResults(v int64) *ListUsersResponse {
4579	s.MaxResults = &v
4580	return s
4581}
4582
4583// SetNextToken sets the NextToken field's value.
4584func (s *ListUsersResponse) SetNextToken(v string) *ListUsersResponse {
4585	s.NextToken = &v
4586	return s
4587}
4588
4589// SetUsers sets the Users field's value.
4590func (s *ListUsersResponse) SetUsers(v []*UserSummary) *ListUsersResponse {
4591	s.Users = v
4592	return s
4593}
4594
4595// The list of information about logs to be enabled for the specified broker.
4596type Logs struct {
4597	_ struct{} `type:"structure"`
4598
4599	// Enables audit logging. Every user management action made using JMX or the
4600	// ActiveMQ Web Console is logged.
4601	Audit *bool `locationName:"audit" type:"boolean"`
4602
4603	// Enables general logging.
4604	General *bool `locationName:"general" type:"boolean"`
4605}
4606
4607// String returns the string representation
4608func (s Logs) String() string {
4609	return awsutil.Prettify(s)
4610}
4611
4612// GoString returns the string representation
4613func (s Logs) GoString() string {
4614	return s.String()
4615}
4616
4617// SetAudit sets the Audit field's value.
4618func (s *Logs) SetAudit(v bool) *Logs {
4619	s.Audit = &v
4620	return s
4621}
4622
4623// SetGeneral sets the General field's value.
4624func (s *Logs) SetGeneral(v bool) *Logs {
4625	s.General = &v
4626	return s
4627}
4628
4629// The list of information about logs currently enabled and pending to be deployed
4630// for the specified broker.
4631type LogsSummary struct {
4632	_ struct{} `type:"structure"`
4633
4634	// Enables audit logging. Every user management action made using JMX or the
4635	// ActiveMQ Web Console is logged.
4636	Audit *bool `locationName:"audit" type:"boolean"`
4637
4638	// The location of the CloudWatch Logs log group where audit logs are sent.
4639	AuditLogGroup *string `locationName:"auditLogGroup" type:"string"`
4640
4641	// Enables general logging.
4642	General *bool `locationName:"general" type:"boolean"`
4643
4644	// The location of the CloudWatch Logs log group where general logs are sent.
4645	GeneralLogGroup *string `locationName:"generalLogGroup" type:"string"`
4646
4647	// The list of information about logs pending to be deployed for the specified
4648	// broker.
4649	Pending *PendingLogs `locationName:"pending" type:"structure"`
4650}
4651
4652// String returns the string representation
4653func (s LogsSummary) String() string {
4654	return awsutil.Prettify(s)
4655}
4656
4657// GoString returns the string representation
4658func (s LogsSummary) GoString() string {
4659	return s.String()
4660}
4661
4662// SetAudit sets the Audit field's value.
4663func (s *LogsSummary) SetAudit(v bool) *LogsSummary {
4664	s.Audit = &v
4665	return s
4666}
4667
4668// SetAuditLogGroup sets the AuditLogGroup field's value.
4669func (s *LogsSummary) SetAuditLogGroup(v string) *LogsSummary {
4670	s.AuditLogGroup = &v
4671	return s
4672}
4673
4674// SetGeneral sets the General field's value.
4675func (s *LogsSummary) SetGeneral(v bool) *LogsSummary {
4676	s.General = &v
4677	return s
4678}
4679
4680// SetGeneralLogGroup sets the GeneralLogGroup field's value.
4681func (s *LogsSummary) SetGeneralLogGroup(v string) *LogsSummary {
4682	s.GeneralLogGroup = &v
4683	return s
4684}
4685
4686// SetPending sets the Pending field's value.
4687func (s *LogsSummary) SetPending(v *PendingLogs) *LogsSummary {
4688	s.Pending = v
4689	return s
4690}
4691
4692// Returns information about an error.
4693type NotFoundException struct {
4694	_            struct{} `type:"structure"`
4695	respMetadata protocol.ResponseMetadata
4696
4697	ErrorAttribute *string `locationName:"errorAttribute" type:"string"`
4698
4699	Message_ *string `locationName:"message" type:"string"`
4700}
4701
4702// String returns the string representation
4703func (s NotFoundException) String() string {
4704	return awsutil.Prettify(s)
4705}
4706
4707// GoString returns the string representation
4708func (s NotFoundException) GoString() string {
4709	return s.String()
4710}
4711
4712func newErrorNotFoundException(v protocol.ResponseMetadata) error {
4713	return &NotFoundException{
4714		respMetadata: v,
4715	}
4716}
4717
4718// Code returns the exception type name.
4719func (s NotFoundException) Code() string {
4720	return "NotFoundException"
4721}
4722
4723// Message returns the exception's message.
4724func (s NotFoundException) Message() string {
4725	if s.Message_ != nil {
4726		return *s.Message_
4727	}
4728	return ""
4729}
4730
4731// OrigErr always returns nil, satisfies awserr.Error interface.
4732func (s NotFoundException) OrigErr() error {
4733	return nil
4734}
4735
4736func (s NotFoundException) Error() string {
4737	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
4738}
4739
4740// Status code returns the HTTP status code for the request's response error.
4741func (s NotFoundException) StatusCode() int {
4742	return s.respMetadata.StatusCode
4743}
4744
4745// RequestID returns the service's response RequestID for request.
4746func (s NotFoundException) RequestID() string {
4747	return s.respMetadata.RequestID
4748}
4749
4750// The list of information about logs to be enabled for the specified broker.
4751type PendingLogs struct {
4752	_ struct{} `type:"structure"`
4753
4754	// Enables audit logging. Every user management action made using JMX or the
4755	// ActiveMQ Web Console is logged.
4756	Audit *bool `locationName:"audit" type:"boolean"`
4757
4758	// Enables general logging.
4759	General *bool `locationName:"general" type:"boolean"`
4760}
4761
4762// String returns the string representation
4763func (s PendingLogs) String() string {
4764	return awsutil.Prettify(s)
4765}
4766
4767// GoString returns the string representation
4768func (s PendingLogs) GoString() string {
4769	return s.String()
4770}
4771
4772// SetAudit sets the Audit field's value.
4773func (s *PendingLogs) SetAudit(v bool) *PendingLogs {
4774	s.Audit = &v
4775	return s
4776}
4777
4778// SetGeneral sets the General field's value.
4779func (s *PendingLogs) SetGeneral(v bool) *PendingLogs {
4780	s.General = &v
4781	return s
4782}
4783
4784type RebootBrokerInput struct {
4785	_ struct{} `type:"structure"`
4786
4787	// BrokerId is a required field
4788	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
4789}
4790
4791// String returns the string representation
4792func (s RebootBrokerInput) String() string {
4793	return awsutil.Prettify(s)
4794}
4795
4796// GoString returns the string representation
4797func (s RebootBrokerInput) GoString() string {
4798	return s.String()
4799}
4800
4801// Validate inspects the fields of the type to determine if they are valid.
4802func (s *RebootBrokerInput) Validate() error {
4803	invalidParams := request.ErrInvalidParams{Context: "RebootBrokerInput"}
4804	if s.BrokerId == nil {
4805		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
4806	}
4807	if s.BrokerId != nil && len(*s.BrokerId) < 1 {
4808		invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1))
4809	}
4810
4811	if invalidParams.Len() > 0 {
4812		return invalidParams
4813	}
4814	return nil
4815}
4816
4817// SetBrokerId sets the BrokerId field's value.
4818func (s *RebootBrokerInput) SetBrokerId(v string) *RebootBrokerInput {
4819	s.BrokerId = &v
4820	return s
4821}
4822
4823type RebootBrokerOutput struct {
4824	_ struct{} `type:"structure"`
4825}
4826
4827// String returns the string representation
4828func (s RebootBrokerOutput) String() string {
4829	return awsutil.Prettify(s)
4830}
4831
4832// GoString returns the string representation
4833func (s RebootBrokerOutput) GoString() string {
4834	return s.String()
4835}
4836
4837// Returns information about the XML element or attribute that was sanitized
4838// in the configuration.
4839type SanitizationWarning struct {
4840	_ struct{} `type:"structure"`
4841
4842	// The name of the XML attribute that has been sanitized.
4843	AttributeName *string `locationName:"attributeName" type:"string"`
4844
4845	// The name of the XML element that has been sanitized.
4846	ElementName *string `locationName:"elementName" type:"string"`
4847
4848	// Required. The reason for which the XML elements or attributes were sanitized.
4849	Reason *string `locationName:"reason" type:"string" enum:"SanitizationWarningReason"`
4850}
4851
4852// String returns the string representation
4853func (s SanitizationWarning) String() string {
4854	return awsutil.Prettify(s)
4855}
4856
4857// GoString returns the string representation
4858func (s SanitizationWarning) GoString() string {
4859	return s.String()
4860}
4861
4862// SetAttributeName sets the AttributeName field's value.
4863func (s *SanitizationWarning) SetAttributeName(v string) *SanitizationWarning {
4864	s.AttributeName = &v
4865	return s
4866}
4867
4868// SetElementName sets the ElementName field's value.
4869func (s *SanitizationWarning) SetElementName(v string) *SanitizationWarning {
4870	s.ElementName = &v
4871	return s
4872}
4873
4874// SetReason sets the Reason field's value.
4875func (s *SanitizationWarning) SetReason(v string) *SanitizationWarning {
4876	s.Reason = &v
4877	return s
4878}
4879
4880// Returns information about an error.
4881type UnauthorizedException struct {
4882	_            struct{} `type:"structure"`
4883	respMetadata protocol.ResponseMetadata
4884
4885	ErrorAttribute *string `locationName:"errorAttribute" type:"string"`
4886
4887	Message_ *string `locationName:"message" type:"string"`
4888}
4889
4890// String returns the string representation
4891func (s UnauthorizedException) String() string {
4892	return awsutil.Prettify(s)
4893}
4894
4895// GoString returns the string representation
4896func (s UnauthorizedException) GoString() string {
4897	return s.String()
4898}
4899
4900func newErrorUnauthorizedException(v protocol.ResponseMetadata) error {
4901	return &UnauthorizedException{
4902		respMetadata: v,
4903	}
4904}
4905
4906// Code returns the exception type name.
4907func (s UnauthorizedException) Code() string {
4908	return "UnauthorizedException"
4909}
4910
4911// Message returns the exception's message.
4912func (s UnauthorizedException) Message() string {
4913	if s.Message_ != nil {
4914		return *s.Message_
4915	}
4916	return ""
4917}
4918
4919// OrigErr always returns nil, satisfies awserr.Error interface.
4920func (s UnauthorizedException) OrigErr() error {
4921	return nil
4922}
4923
4924func (s UnauthorizedException) Error() string {
4925	return fmt.Sprintf("%s: %s\n%s", s.Code(), s.Message(), s.String())
4926}
4927
4928// Status code returns the HTTP status code for the request's response error.
4929func (s UnauthorizedException) StatusCode() int {
4930	return s.respMetadata.StatusCode
4931}
4932
4933// RequestID returns the service's response RequestID for request.
4934func (s UnauthorizedException) RequestID() string {
4935	return s.respMetadata.RequestID
4936}
4937
4938type UpdateBrokerRequest struct {
4939	_ struct{} `type:"structure"`
4940
4941	AutoMinorVersionUpgrade *bool `locationName:"autoMinorVersionUpgrade" type:"boolean"`
4942
4943	// BrokerId is a required field
4944	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
4945
4946	// A list of information about the configuration.
4947	Configuration *ConfigurationId `locationName:"configuration" type:"structure"`
4948
4949	EngineVersion *string `locationName:"engineVersion" type:"string"`
4950
4951	HostInstanceType *string `locationName:"hostInstanceType" type:"string"`
4952
4953	// The list of information about logs to be enabled for the specified broker.
4954	Logs *Logs `locationName:"logs" type:"structure"`
4955
4956	SecurityGroups []*string `locationName:"securityGroups" type:"list"`
4957}
4958
4959// String returns the string representation
4960func (s UpdateBrokerRequest) String() string {
4961	return awsutil.Prettify(s)
4962}
4963
4964// GoString returns the string representation
4965func (s UpdateBrokerRequest) GoString() string {
4966	return s.String()
4967}
4968
4969// Validate inspects the fields of the type to determine if they are valid.
4970func (s *UpdateBrokerRequest) Validate() error {
4971	invalidParams := request.ErrInvalidParams{Context: "UpdateBrokerRequest"}
4972	if s.BrokerId == nil {
4973		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
4974	}
4975	if s.BrokerId != nil && len(*s.BrokerId) < 1 {
4976		invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1))
4977	}
4978
4979	if invalidParams.Len() > 0 {
4980		return invalidParams
4981	}
4982	return nil
4983}
4984
4985// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
4986func (s *UpdateBrokerRequest) SetAutoMinorVersionUpgrade(v bool) *UpdateBrokerRequest {
4987	s.AutoMinorVersionUpgrade = &v
4988	return s
4989}
4990
4991// SetBrokerId sets the BrokerId field's value.
4992func (s *UpdateBrokerRequest) SetBrokerId(v string) *UpdateBrokerRequest {
4993	s.BrokerId = &v
4994	return s
4995}
4996
4997// SetConfiguration sets the Configuration field's value.
4998func (s *UpdateBrokerRequest) SetConfiguration(v *ConfigurationId) *UpdateBrokerRequest {
4999	s.Configuration = v
5000	return s
5001}
5002
5003// SetEngineVersion sets the EngineVersion field's value.
5004func (s *UpdateBrokerRequest) SetEngineVersion(v string) *UpdateBrokerRequest {
5005	s.EngineVersion = &v
5006	return s
5007}
5008
5009// SetHostInstanceType sets the HostInstanceType field's value.
5010func (s *UpdateBrokerRequest) SetHostInstanceType(v string) *UpdateBrokerRequest {
5011	s.HostInstanceType = &v
5012	return s
5013}
5014
5015// SetLogs sets the Logs field's value.
5016func (s *UpdateBrokerRequest) SetLogs(v *Logs) *UpdateBrokerRequest {
5017	s.Logs = v
5018	return s
5019}
5020
5021// SetSecurityGroups sets the SecurityGroups field's value.
5022func (s *UpdateBrokerRequest) SetSecurityGroups(v []*string) *UpdateBrokerRequest {
5023	s.SecurityGroups = v
5024	return s
5025}
5026
5027type UpdateBrokerResponse struct {
5028	_ struct{} `type:"structure"`
5029
5030	AutoMinorVersionUpgrade *bool `locationName:"autoMinorVersionUpgrade" type:"boolean"`
5031
5032	BrokerId *string `locationName:"brokerId" type:"string"`
5033
5034	// A list of information about the configuration.
5035	Configuration *ConfigurationId `locationName:"configuration" type:"structure"`
5036
5037	EngineVersion *string `locationName:"engineVersion" type:"string"`
5038
5039	HostInstanceType *string `locationName:"hostInstanceType" type:"string"`
5040
5041	// The list of information about logs to be enabled for the specified broker.
5042	Logs *Logs `locationName:"logs" type:"structure"`
5043
5044	SecurityGroups []*string `locationName:"securityGroups" type:"list"`
5045}
5046
5047// String returns the string representation
5048func (s UpdateBrokerResponse) String() string {
5049	return awsutil.Prettify(s)
5050}
5051
5052// GoString returns the string representation
5053func (s UpdateBrokerResponse) GoString() string {
5054	return s.String()
5055}
5056
5057// SetAutoMinorVersionUpgrade sets the AutoMinorVersionUpgrade field's value.
5058func (s *UpdateBrokerResponse) SetAutoMinorVersionUpgrade(v bool) *UpdateBrokerResponse {
5059	s.AutoMinorVersionUpgrade = &v
5060	return s
5061}
5062
5063// SetBrokerId sets the BrokerId field's value.
5064func (s *UpdateBrokerResponse) SetBrokerId(v string) *UpdateBrokerResponse {
5065	s.BrokerId = &v
5066	return s
5067}
5068
5069// SetConfiguration sets the Configuration field's value.
5070func (s *UpdateBrokerResponse) SetConfiguration(v *ConfigurationId) *UpdateBrokerResponse {
5071	s.Configuration = v
5072	return s
5073}
5074
5075// SetEngineVersion sets the EngineVersion field's value.
5076func (s *UpdateBrokerResponse) SetEngineVersion(v string) *UpdateBrokerResponse {
5077	s.EngineVersion = &v
5078	return s
5079}
5080
5081// SetHostInstanceType sets the HostInstanceType field's value.
5082func (s *UpdateBrokerResponse) SetHostInstanceType(v string) *UpdateBrokerResponse {
5083	s.HostInstanceType = &v
5084	return s
5085}
5086
5087// SetLogs sets the Logs field's value.
5088func (s *UpdateBrokerResponse) SetLogs(v *Logs) *UpdateBrokerResponse {
5089	s.Logs = v
5090	return s
5091}
5092
5093// SetSecurityGroups sets the SecurityGroups field's value.
5094func (s *UpdateBrokerResponse) SetSecurityGroups(v []*string) *UpdateBrokerResponse {
5095	s.SecurityGroups = v
5096	return s
5097}
5098
5099type UpdateConfigurationRequest struct {
5100	_ struct{} `type:"structure"`
5101
5102	// ConfigurationId is a required field
5103	ConfigurationId *string `location:"uri" locationName:"configuration-id" type:"string" required:"true"`
5104
5105	Data *string `locationName:"data" type:"string"`
5106
5107	Description *string `locationName:"description" type:"string"`
5108}
5109
5110// String returns the string representation
5111func (s UpdateConfigurationRequest) String() string {
5112	return awsutil.Prettify(s)
5113}
5114
5115// GoString returns the string representation
5116func (s UpdateConfigurationRequest) GoString() string {
5117	return s.String()
5118}
5119
5120// Validate inspects the fields of the type to determine if they are valid.
5121func (s *UpdateConfigurationRequest) Validate() error {
5122	invalidParams := request.ErrInvalidParams{Context: "UpdateConfigurationRequest"}
5123	if s.ConfigurationId == nil {
5124		invalidParams.Add(request.NewErrParamRequired("ConfigurationId"))
5125	}
5126	if s.ConfigurationId != nil && len(*s.ConfigurationId) < 1 {
5127		invalidParams.Add(request.NewErrParamMinLen("ConfigurationId", 1))
5128	}
5129
5130	if invalidParams.Len() > 0 {
5131		return invalidParams
5132	}
5133	return nil
5134}
5135
5136// SetConfigurationId sets the ConfigurationId field's value.
5137func (s *UpdateConfigurationRequest) SetConfigurationId(v string) *UpdateConfigurationRequest {
5138	s.ConfigurationId = &v
5139	return s
5140}
5141
5142// SetData sets the Data field's value.
5143func (s *UpdateConfigurationRequest) SetData(v string) *UpdateConfigurationRequest {
5144	s.Data = &v
5145	return s
5146}
5147
5148// SetDescription sets the Description field's value.
5149func (s *UpdateConfigurationRequest) SetDescription(v string) *UpdateConfigurationRequest {
5150	s.Description = &v
5151	return s
5152}
5153
5154type UpdateConfigurationResponse struct {
5155	_ struct{} `type:"structure"`
5156
5157	Arn *string `locationName:"arn" type:"string"`
5158
5159	Created *time.Time `locationName:"created" type:"timestamp" timestampFormat:"iso8601"`
5160
5161	Id *string `locationName:"id" type:"string"`
5162
5163	// Returns information about the specified configuration revision.
5164	LatestRevision *ConfigurationRevision `locationName:"latestRevision" type:"structure"`
5165
5166	Name *string `locationName:"name" type:"string"`
5167
5168	Warnings []*SanitizationWarning `locationName:"warnings" type:"list"`
5169}
5170
5171// String returns the string representation
5172func (s UpdateConfigurationResponse) String() string {
5173	return awsutil.Prettify(s)
5174}
5175
5176// GoString returns the string representation
5177func (s UpdateConfigurationResponse) GoString() string {
5178	return s.String()
5179}
5180
5181// SetArn sets the Arn field's value.
5182func (s *UpdateConfigurationResponse) SetArn(v string) *UpdateConfigurationResponse {
5183	s.Arn = &v
5184	return s
5185}
5186
5187// SetCreated sets the Created field's value.
5188func (s *UpdateConfigurationResponse) SetCreated(v time.Time) *UpdateConfigurationResponse {
5189	s.Created = &v
5190	return s
5191}
5192
5193// SetId sets the Id field's value.
5194func (s *UpdateConfigurationResponse) SetId(v string) *UpdateConfigurationResponse {
5195	s.Id = &v
5196	return s
5197}
5198
5199// SetLatestRevision sets the LatestRevision field's value.
5200func (s *UpdateConfigurationResponse) SetLatestRevision(v *ConfigurationRevision) *UpdateConfigurationResponse {
5201	s.LatestRevision = v
5202	return s
5203}
5204
5205// SetName sets the Name field's value.
5206func (s *UpdateConfigurationResponse) SetName(v string) *UpdateConfigurationResponse {
5207	s.Name = &v
5208	return s
5209}
5210
5211// SetWarnings sets the Warnings field's value.
5212func (s *UpdateConfigurationResponse) SetWarnings(v []*SanitizationWarning) *UpdateConfigurationResponse {
5213	s.Warnings = v
5214	return s
5215}
5216
5217type UpdateUserOutput struct {
5218	_ struct{} `type:"structure"`
5219}
5220
5221// String returns the string representation
5222func (s UpdateUserOutput) String() string {
5223	return awsutil.Prettify(s)
5224}
5225
5226// GoString returns the string representation
5227func (s UpdateUserOutput) GoString() string {
5228	return s.String()
5229}
5230
5231type UpdateUserRequest struct {
5232	_ struct{} `type:"structure"`
5233
5234	// BrokerId is a required field
5235	BrokerId *string `location:"uri" locationName:"broker-id" type:"string" required:"true"`
5236
5237	ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"`
5238
5239	Groups []*string `locationName:"groups" type:"list"`
5240
5241	Password *string `locationName:"password" type:"string"`
5242
5243	// Username is a required field
5244	Username *string `location:"uri" locationName:"username" type:"string" required:"true"`
5245}
5246
5247// String returns the string representation
5248func (s UpdateUserRequest) String() string {
5249	return awsutil.Prettify(s)
5250}
5251
5252// GoString returns the string representation
5253func (s UpdateUserRequest) GoString() string {
5254	return s.String()
5255}
5256
5257// Validate inspects the fields of the type to determine if they are valid.
5258func (s *UpdateUserRequest) Validate() error {
5259	invalidParams := request.ErrInvalidParams{Context: "UpdateUserRequest"}
5260	if s.BrokerId == nil {
5261		invalidParams.Add(request.NewErrParamRequired("BrokerId"))
5262	}
5263	if s.BrokerId != nil && len(*s.BrokerId) < 1 {
5264		invalidParams.Add(request.NewErrParamMinLen("BrokerId", 1))
5265	}
5266	if s.Username == nil {
5267		invalidParams.Add(request.NewErrParamRequired("Username"))
5268	}
5269	if s.Username != nil && len(*s.Username) < 1 {
5270		invalidParams.Add(request.NewErrParamMinLen("Username", 1))
5271	}
5272
5273	if invalidParams.Len() > 0 {
5274		return invalidParams
5275	}
5276	return nil
5277}
5278
5279// SetBrokerId sets the BrokerId field's value.
5280func (s *UpdateUserRequest) SetBrokerId(v string) *UpdateUserRequest {
5281	s.BrokerId = &v
5282	return s
5283}
5284
5285// SetConsoleAccess sets the ConsoleAccess field's value.
5286func (s *UpdateUserRequest) SetConsoleAccess(v bool) *UpdateUserRequest {
5287	s.ConsoleAccess = &v
5288	return s
5289}
5290
5291// SetGroups sets the Groups field's value.
5292func (s *UpdateUserRequest) SetGroups(v []*string) *UpdateUserRequest {
5293	s.Groups = v
5294	return s
5295}
5296
5297// SetPassword sets the Password field's value.
5298func (s *UpdateUserRequest) SetPassword(v string) *UpdateUserRequest {
5299	s.Password = &v
5300	return s
5301}
5302
5303// SetUsername sets the Username field's value.
5304func (s *UpdateUserRequest) SetUsername(v string) *UpdateUserRequest {
5305	s.Username = &v
5306	return s
5307}
5308
5309// An ActiveMQ user associated with the broker.
5310type User struct {
5311	_ struct{} `type:"structure"`
5312
5313	// Enables access to the the ActiveMQ Web Console for the ActiveMQ user.
5314	ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"`
5315
5316	// The list of groups (20 maximum) to which the ActiveMQ user belongs. This
5317	// value can contain only alphanumeric characters, dashes, periods, underscores,
5318	// and tildes (- . _ ~). This value must be 2-100 characters long.
5319	Groups []*string `locationName:"groups" type:"list"`
5320
5321	// Required. The password of the ActiveMQ user. This value must be at least
5322	// 12 characters long, must contain at least 4 unique characters, and must not
5323	// contain commas.
5324	Password *string `locationName:"password" type:"string"`
5325
5326	// Required. The username of the ActiveMQ user. This value can contain only
5327	// alphanumeric characters, dashes, periods, underscores, and tildes (- . _
5328	// ~). This value must be 2-100 characters long.
5329	Username *string `locationName:"username" type:"string"`
5330}
5331
5332// String returns the string representation
5333func (s User) String() string {
5334	return awsutil.Prettify(s)
5335}
5336
5337// GoString returns the string representation
5338func (s User) GoString() string {
5339	return s.String()
5340}
5341
5342// SetConsoleAccess sets the ConsoleAccess field's value.
5343func (s *User) SetConsoleAccess(v bool) *User {
5344	s.ConsoleAccess = &v
5345	return s
5346}
5347
5348// SetGroups sets the Groups field's value.
5349func (s *User) SetGroups(v []*string) *User {
5350	s.Groups = v
5351	return s
5352}
5353
5354// SetPassword sets the Password field's value.
5355func (s *User) SetPassword(v string) *User {
5356	s.Password = &v
5357	return s
5358}
5359
5360// SetUsername sets the Username field's value.
5361func (s *User) SetUsername(v string) *User {
5362	s.Username = &v
5363	return s
5364}
5365
5366// Returns information about the status of the changes pending for the ActiveMQ
5367// user.
5368type UserPendingChanges struct {
5369	_ struct{} `type:"structure"`
5370
5371	// Enables access to the the ActiveMQ Web Console for the ActiveMQ user.
5372	ConsoleAccess *bool `locationName:"consoleAccess" type:"boolean"`
5373
5374	// The list of groups (20 maximum) to which the ActiveMQ user belongs. This
5375	// value can contain only alphanumeric characters, dashes, periods, underscores,
5376	// and tildes (- . _ ~). This value must be 2-100 characters long.
5377	Groups []*string `locationName:"groups" type:"list"`
5378
5379	// Required. The type of change pending for the ActiveMQ user.
5380	PendingChange *string `locationName:"pendingChange" type:"string" enum:"ChangeType"`
5381}
5382
5383// String returns the string representation
5384func (s UserPendingChanges) String() string {
5385	return awsutil.Prettify(s)
5386}
5387
5388// GoString returns the string representation
5389func (s UserPendingChanges) GoString() string {
5390	return s.String()
5391}
5392
5393// SetConsoleAccess sets the ConsoleAccess field's value.
5394func (s *UserPendingChanges) SetConsoleAccess(v bool) *UserPendingChanges {
5395	s.ConsoleAccess = &v
5396	return s
5397}
5398
5399// SetGroups sets the Groups field's value.
5400func (s *UserPendingChanges) SetGroups(v []*string) *UserPendingChanges {
5401	s.Groups = v
5402	return s
5403}
5404
5405// SetPendingChange sets the PendingChange field's value.
5406func (s *UserPendingChanges) SetPendingChange(v string) *UserPendingChanges {
5407	s.PendingChange = &v
5408	return s
5409}
5410
5411// Returns a list of all ActiveMQ users.
5412type UserSummary struct {
5413	_ struct{} `type:"structure"`
5414
5415	// The type of change pending for the ActiveMQ user.
5416	PendingChange *string `locationName:"pendingChange" type:"string" enum:"ChangeType"`
5417
5418	// Required. The username of the ActiveMQ user. This value can contain only
5419	// alphanumeric characters, dashes, periods, underscores, and tildes (- . _
5420	// ~). This value must be 2-100 characters long.
5421	Username *string `locationName:"username" type:"string"`
5422}
5423
5424// String returns the string representation
5425func (s UserSummary) String() string {
5426	return awsutil.Prettify(s)
5427}
5428
5429// GoString returns the string representation
5430func (s UserSummary) GoString() string {
5431	return s.String()
5432}
5433
5434// SetPendingChange sets the PendingChange field's value.
5435func (s *UserSummary) SetPendingChange(v string) *UserSummary {
5436	s.PendingChange = &v
5437	return s
5438}
5439
5440// SetUsername sets the Username field's value.
5441func (s *UserSummary) SetUsername(v string) *UserSummary {
5442	s.Username = &v
5443	return s
5444}
5445
5446// The scheduled time period relative to UTC during which Amazon MQ begins to
5447// apply pending updates or patches to the broker.
5448type WeeklyStartTime struct {
5449	_ struct{} `type:"structure"`
5450
5451	// Required. The day of the week.
5452	DayOfWeek *string `locationName:"dayOfWeek" type:"string" enum:"DayOfWeek"`
5453
5454	// Required. The time, in 24-hour format.
5455	TimeOfDay *string `locationName:"timeOfDay" type:"string"`
5456
5457	// The time zone, UTC by default, in either the Country/City format, or the
5458	// UTC offset format.
5459	TimeZone *string `locationName:"timeZone" type:"string"`
5460}
5461
5462// String returns the string representation
5463func (s WeeklyStartTime) String() string {
5464	return awsutil.Prettify(s)
5465}
5466
5467// GoString returns the string representation
5468func (s WeeklyStartTime) GoString() string {
5469	return s.String()
5470}
5471
5472// SetDayOfWeek sets the DayOfWeek field's value.
5473func (s *WeeklyStartTime) SetDayOfWeek(v string) *WeeklyStartTime {
5474	s.DayOfWeek = &v
5475	return s
5476}
5477
5478// SetTimeOfDay sets the TimeOfDay field's value.
5479func (s *WeeklyStartTime) SetTimeOfDay(v string) *WeeklyStartTime {
5480	s.TimeOfDay = &v
5481	return s
5482}
5483
5484// SetTimeZone sets the TimeZone field's value.
5485func (s *WeeklyStartTime) SetTimeZone(v string) *WeeklyStartTime {
5486	s.TimeZone = &v
5487	return s
5488}
5489
5490// The status of the broker.
5491const (
5492	// BrokerStateCreationInProgress is a BrokerState enum value
5493	BrokerStateCreationInProgress = "CREATION_IN_PROGRESS"
5494
5495	// BrokerStateCreationFailed is a BrokerState enum value
5496	BrokerStateCreationFailed = "CREATION_FAILED"
5497
5498	// BrokerStateDeletionInProgress is a BrokerState enum value
5499	BrokerStateDeletionInProgress = "DELETION_IN_PROGRESS"
5500
5501	// BrokerStateRunning is a BrokerState enum value
5502	BrokerStateRunning = "RUNNING"
5503
5504	// BrokerStateRebootInProgress is a BrokerState enum value
5505	BrokerStateRebootInProgress = "REBOOT_IN_PROGRESS"
5506)
5507
5508// The storage type of the broker.
5509const (
5510	// BrokerStorageTypeEbs is a BrokerStorageType enum value
5511	BrokerStorageTypeEbs = "EBS"
5512
5513	// BrokerStorageTypeEfs is a BrokerStorageType enum value
5514	BrokerStorageTypeEfs = "EFS"
5515)
5516
5517// The type of change pending for the ActiveMQ user.
5518const (
5519	// ChangeTypeCreate is a ChangeType enum value
5520	ChangeTypeCreate = "CREATE"
5521
5522	// ChangeTypeUpdate is a ChangeType enum value
5523	ChangeTypeUpdate = "UPDATE"
5524
5525	// ChangeTypeDelete is a ChangeType enum value
5526	ChangeTypeDelete = "DELETE"
5527)
5528
5529const (
5530	// DayOfWeekMonday is a DayOfWeek enum value
5531	DayOfWeekMonday = "MONDAY"
5532
5533	// DayOfWeekTuesday is a DayOfWeek enum value
5534	DayOfWeekTuesday = "TUESDAY"
5535
5536	// DayOfWeekWednesday is a DayOfWeek enum value
5537	DayOfWeekWednesday = "WEDNESDAY"
5538
5539	// DayOfWeekThursday is a DayOfWeek enum value
5540	DayOfWeekThursday = "THURSDAY"
5541
5542	// DayOfWeekFriday is a DayOfWeek enum value
5543	DayOfWeekFriday = "FRIDAY"
5544
5545	// DayOfWeekSaturday is a DayOfWeek enum value
5546	DayOfWeekSaturday = "SATURDAY"
5547
5548	// DayOfWeekSunday is a DayOfWeek enum value
5549	DayOfWeekSunday = "SUNDAY"
5550)
5551
5552// The deployment mode of the broker.
5553const (
5554	// DeploymentModeSingleInstance is a DeploymentMode enum value
5555	DeploymentModeSingleInstance = "SINGLE_INSTANCE"
5556
5557	// DeploymentModeActiveStandbyMultiAz is a DeploymentMode enum value
5558	DeploymentModeActiveStandbyMultiAz = "ACTIVE_STANDBY_MULTI_AZ"
5559)
5560
5561// The type of broker engine. Note: Currently, Amazon MQ supports only ActiveMQ.
5562const (
5563	// EngineTypeActivemq is a EngineType enum value
5564	EngineTypeActivemq = "ACTIVEMQ"
5565)
5566
5567// The reason for which the XML elements or attributes were sanitized.
5568const (
5569	// SanitizationWarningReasonDisallowedElementRemoved is a SanitizationWarningReason enum value
5570	SanitizationWarningReasonDisallowedElementRemoved = "DISALLOWED_ELEMENT_REMOVED"
5571
5572	// SanitizationWarningReasonDisallowedAttributeRemoved is a SanitizationWarningReason enum value
5573	SanitizationWarningReasonDisallowedAttributeRemoved = "DISALLOWED_ATTRIBUTE_REMOVED"
5574
5575	// SanitizationWarningReasonInvalidAttributeValueRemoved is a SanitizationWarningReason enum value
5576	SanitizationWarningReasonInvalidAttributeValueRemoved = "INVALID_ATTRIBUTE_VALUE_REMOVED"
5577)
5578