// NextPage retrieves the next DescribeInstancePatchStates page.
NextPage retrieves the next DescribeInstancePatchStates page.
// NextPage retrieves the next DescribeInstancePatchStates page .
func (p *DescribeInstancePatchStatesPaginator) NextPage(ctx context.Context, optFns ...func(*Options)) (*DescribeInstancePatchStatesOutput, error) {
	if !p.HasMorePages() {
		return nil, fmt.Errorf("no more pages available")
	}
	params := *p.params
	params.NextToken = p.nextToken
	params.MaxResults = p.options.Limit
	result, err := p.client.DescribeInstancePatchStates(ctx, &params, optFns...)
	if err != nil {
		return nil, err
	}
	p.firstPage = false
	prevToken := p.nextToken
	p.nextToken = result.NextToken
	if p.options.StopOnDuplicateToken && prevToken != nil && p.nextToken != nil && *prevToken == *p.nextToken {
		p.nextToken = nil
	}
	return result, nil
}
func ( p * DescribeInstancePatchStatesPaginator ) NextPage ( ctx context . Context , optFns ... func ( * Options ) ) ( * DescribeInstancePatchStatesOutput , error ) { if ! p . HasMorePages ( ) { return nil , fmt . Errorf ( " " ) } params := * p . params params . NextToken = p . nextToken params . MaxResults = p . options . Limit result , err := p . client . DescribeInstancePatchStates ( ctx , & params , optFns ... ) if err != nil { return nil , err } p . firstPage = false prevToken := p . nextToken p . nextToken = result . NextToken if p . options . StopOnDuplicateToken && prevToken != nil && p . nextToken != nil && * prevToken == * p . nextToken { p . nextToken = nil } return result , nil }
NextPage retrieves the next DescribeInstancePatchStates page.
NextPage retrieves the next DescribeInstancePatchStates page .