// Paginate pages iterates over the pages of a DescribeDomainControllersRequest operation,
// calling the Next method for each page. Using the paginators Next
// method will depict whether or not there are more pages.
//
// Note: This operation can generate multiple requests to a service.
//
//    // Example iterating over at most 3 pages of a DescribeDomainControllers operation.
//		req := client.DescribeDomainControllersRequest(input)
//		p := req.Paginate()
//		for p.Next() {
//			page := p.CurrentPage()
//		}
//
//		if err := p.Err(); err != nil {
//			return err
//		}
//
Paginate pages iterates over the pages of a DescribeDomainControllersRequest operation,
calling the Next method for each page. Using the paginators Next
method will depict whether or not there are more pages.

This operation can generate multiple requests to a service.

Example iterating over at most 3 pages of a DescribeDomainControllers operation.
req := client.DescribeDomainControllersRequest(input)
p := req.Paginate()
for p.Next() {
page := p.CurrentPage()
}


// Paginate pages iterates over the pages of a DescribeDomainControllersRequest operation // calling the Next method for each page . Using the paginators Next // method will depict whether or not there are more pages . // // Note : This operation can generate multiple requests to a service . // // // Example iterating over at most 3 pages of a DescribeDomainControllers operation . // req : = client . DescribeDomainControllersRequest ( input ) // p : = req . Paginate () // for p . Next () { // page : = p . CurrentPage () // } // // if err : = p . Err () ; err ! = nil { // return err // } //
func (p *DescribeDomainControllersRequest) Paginate(opts ...aws.Option) DescribeDomainControllersPager {
	return DescribeDomainControllersPager{
		Pager: aws.Pager{
			NewRequest: func() (*aws.Request, error) {
				var inCpy *DescribeDomainControllersInput
				if p.Input != nil {
					tmp := *p.Input
					inCpy = &tmp
				}
				req := p.Copy(inCpy)
				req.ApplyOptions(opts...)
				return req.Request, nil
			},
		},
	}
}
func ( p * DescribeDomainControllersRequest ) Paginate ( opts ... aws . Option ) DescribeDomainControllersPager { return DescribeDomainControllersPager { Pager : aws . Pager { NewRequest : func ( ) ( * aws . Request , error ) { var inCpy * DescribeDomainControllersInput if p . Input != nil { tmp := * p . Input inCpy = & tmp } req := p . Copy ( inCpy ) req . ApplyOptions ( opts ... ) return req . Request , nil } , } , } }
Paginate pages iterates over the pages of a DescribeDomainControllersRequest operation,
calling the Next method for each page.
Paginate pages iterates over the pages of a DescribeDomainControllersRequest operation calling the Next method for each page .