« blib/lib/Paws/LexModelsV2/ListIntentsResponse.pm
↑ Summary
blib/lib/Paws/LexModelsV2/ListSlotTypesResponse.pm »
| 1 | |||
| 2 | package Paws::LexModelsV2::ListSlotTypes; | ||
| 3 | use Moose; | ||
| 4 | has BotId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'botId', required => 1); | ||
| 5 | has BotVersion => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'botVersion', required => 1); | ||
| 6 | has Filters => (is => 'ro', isa => 'ArrayRef[Paws::LexModelsV2::SlotTypeFilter]', traits => ['NameInRequest'], request_name => 'filters'); | ||
| 7 | has LocaleId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'localeId', required => 1); | ||
| 8 | has MaxResults => (is => 'ro', isa => 'Int', traits => ['NameInRequest'], request_name => 'maxResults'); | ||
| 9 | has NextToken => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'nextToken'); | ||
| 10 | has SortBy => (is => 'ro', isa => 'Paws::LexModelsV2::SlotTypeSortBy', traits => ['NameInRequest'], request_name => 'sortBy'); | ||
| 11 | |||
| 12 | use MooseX::ClassAttribute; | ||
| 13 | |||
| 14 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'ListSlotTypes'); | ||
| 15 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/'); | ||
| 16 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'POST'); | ||
| 17 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LexModelsV2::ListSlotTypesResponse'); | ||
| 18 | 1; | ||
| 19 | |||
| 20 | ### main pod documentation begin ### | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | Paws::LexModelsV2::ListSlotTypes - Arguments for method ListSlotTypes on L<Paws::LexModelsV2> | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | This class represents the parameters used for calling the method ListSlotTypes on the | ||
| 29 | L<Amazon Lex Model Building V2|Paws::LexModelsV2> service. Use the attributes of this class | ||
| 30 | as arguments to method ListSlotTypes. | ||
| 31 | |||
| 32 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to ListSlotTypes. | ||
| 33 | |||
| 34 | =head1 SYNOPSIS | ||
| 35 | |||
| 36 | my $models-v2-lex = Paws->service('LexModelsV2'); | ||
| 37 | my $ListSlotTypesResponse = $models - v2 -lex->ListSlotTypes( | ||
| 38 | BotId => 'MyId', | ||
| 39 | BotVersion => 'MyBotVersion', | ||
| 40 | LocaleId => 'MyLocaleId', | ||
| 41 | Filters => [ | ||
| 42 | { | ||
| 43 | Name => 'SlotTypeName', # values: SlotTypeName | ||
| 44 | Operator => 'CO', # values: CO, EQ | ||
| 45 | Values => [ | ||
| 46 | 'MyFilterValue', ... # min: 1, max: 100 | ||
| 47 | ], # min: 1, max: 1 | ||
| 48 | |||
| 49 | }, | ||
| 50 | ... | ||
| 51 | ], # OPTIONAL | ||
| 52 | MaxResults => 1, # OPTIONAL | ||
| 53 | NextToken => 'MyNextToken', # OPTIONAL | ||
| 54 | SortBy => { | ||
| 55 | Attribute => 'SlotTypeName', # values: SlotTypeName, LastUpdatedDateTime | ||
| 56 | Order => 'Ascending', # values: Ascending, Descending | ||
| 57 | |||
| 58 | }, # OPTIONAL | ||
| 59 | ); | ||
| 60 | |||
| 61 | # Results: | ||
| 62 | my $BotId = $ListSlotTypesResponse->BotId; | ||
| 63 | my $BotVersion = $ListSlotTypesResponse->BotVersion; | ||
| 64 | my $LocaleId = $ListSlotTypesResponse->LocaleId; | ||
| 65 | my $NextToken = $ListSlotTypesResponse->NextToken; | ||
| 66 | my $SlotTypeSummaries = $ListSlotTypesResponse->SlotTypeSummaries; | ||
| 67 | |||
| 68 | # Returns a L<Paws::LexModelsV2::ListSlotTypesResponse> object. | ||
| 69 | |||
| 70 | Values for attributes that are native types (Int, String, Float, etc) can passed as-is (scalar values). Values for complex Types (objects) can be passed as a HashRef. The keys and values of the hashref will be used to instance the underlying object. | ||
| 71 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/models-v2-lex/ListSlotTypes> | ||
| 72 | |||
| 73 | =head1 ATTRIBUTES | ||
| 74 | |||
| 75 | |||
| 76 | =head2 B<REQUIRED> BotId => Str | ||
| 77 | |||
| 78 | The unique identifier of the bot that contains the slot types. | ||
| 79 | |||
| 80 | |||
| 81 | |||
| 82 | =head2 B<REQUIRED> BotVersion => Str | ||
| 83 | |||
| 84 | The version of the bot that contains the slot type. | ||
| 85 | |||
| 86 | |||
| 87 | |||
| 88 | =head2 Filters => ArrayRef[L<Paws::LexModelsV2::SlotTypeFilter>] | ||
| 89 | |||
| 90 | Provides the specification of a filter used to limit the slot types in | ||
| 91 | the response to only those that match the filter specification. You can | ||
| 92 | only specify one filter and only one string to filter on. | ||
| 93 | |||
| 94 | |||
| 95 | |||
| 96 | =head2 B<REQUIRED> LocaleId => Str | ||
| 97 | |||
| 98 | The identifier of the language and locale of the slot types to list. | ||
| 99 | The string must match one of the supported locales. For more | ||
| 100 | information, see Supported languages | ||
| 101 | (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). | ||
| 102 | |||
| 103 | |||
| 104 | |||
| 105 | =head2 MaxResults => Int | ||
| 106 | |||
| 107 | The maximum number of slot types to return in each page of results. If | ||
| 108 | there are fewer results than the max page size, only the actual number | ||
| 109 | of results are returned. | ||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | =head2 NextToken => Str | ||
| 114 | |||
| 115 | If the response from the C<ListSlotTypes> operation contains more | ||
| 116 | results than specified in the C<maxResults> parameter, a token is | ||
| 117 | returned in the response. Use that token in the C<nextToken> parameter | ||
| 118 | to return the next page of results. | ||
| 119 | |||
| 120 | |||
| 121 | |||
| 122 | =head2 SortBy => L<Paws::LexModelsV2::SlotTypeSortBy> | ||
| 123 | |||
| 124 | Determines the sort order for the response from the C<ListSlotTypes> | ||
| 125 | operation. You can choose to sort by the slot type name or last updated | ||
| 126 | date in either ascending or descending order. | ||
| 127 | |||
| 128 | |||
| 129 | |||
| 130 | |||
| 131 | =head1 SEE ALSO | ||
| 132 | |||
| 133 | This class forms part of L<Paws>, documenting arguments for method ListSlotTypes in L<Paws::LexModelsV2> | ||
| 134 | |||
| 135 | =head1 BUGS and CONTRIBUTIONS | ||
| 136 | |||
| 137 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 138 | |||
| 139 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 140 | |||
| 141 | =cut | ||
| 142 |