« blib/lib/Paws/LexModelsV2/UpdateSlotResponse.pm
↑ Summary
blib/lib/Paws/LexModelsV2/UpdateSlotTypeResponse.pm »
| 1 | |||
| 2 | package Paws::LexModelsV2::UpdateSlotType; | ||
| 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 Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description'); | ||
| 7 | has LocaleId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'localeId', required => 1); | ||
| 8 | has ParentSlotTypeSignature => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'parentSlotTypeSignature'); | ||
| 9 | has SlotTypeId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'slotTypeId', required => 1); | ||
| 10 | has SlotTypeName => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'slotTypeName', required => 1); | ||
| 11 | has SlotTypeValues => (is => 'ro', isa => 'ArrayRef[Paws::LexModelsV2::SlotTypeValue]', traits => ['NameInRequest'], request_name => 'slotTypeValues'); | ||
| 12 | has ValueSelectionSetting => (is => 'ro', isa => 'Paws::LexModelsV2::SlotValueSelectionSetting', traits => ['NameInRequest'], request_name => 'valueSelectionSetting', required => 1); | ||
| 13 | |||
| 14 | use MooseX::ClassAttribute; | ||
| 15 | |||
| 16 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateSlotType'); | ||
| 17 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/slottypes/{slotTypeId}/'); | ||
| 18 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 19 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LexModelsV2::UpdateSlotTypeResponse'); | ||
| 20 | 1; | ||
| 21 | |||
| 22 | ### main pod documentation begin ### | ||
| 23 | |||
| 24 | =head1 NAME | ||
| 25 | |||
| 26 | Paws::LexModelsV2::UpdateSlotType - Arguments for method UpdateSlotType on L<Paws::LexModelsV2> | ||
| 27 | |||
| 28 | =head1 DESCRIPTION | ||
| 29 | |||
| 30 | This class represents the parameters used for calling the method UpdateSlotType on the | ||
| 31 | L<Amazon Lex Model Building V2|Paws::LexModelsV2> service. Use the attributes of this class | ||
| 32 | as arguments to method UpdateSlotType. | ||
| 33 | |||
| 34 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateSlotType. | ||
| 35 | |||
| 36 | =head1 SYNOPSIS | ||
| 37 | |||
| 38 | my $models-v2-lex = Paws->service('LexModelsV2'); | ||
| 39 | my $UpdateSlotTypeResponse = $models - v2 -lex->UpdateSlotType( | ||
| 40 | BotId => 'MyId', | ||
| 41 | BotVersion => 'MyDraftBotVersion', | ||
| 42 | LocaleId => 'MyLocaleId', | ||
| 43 | SlotTypeId => 'MyId', | ||
| 44 | SlotTypeName => 'MyName', | ||
| 45 | ValueSelectionSetting => { | ||
| 46 | ResolutionStrategy => | ||
| 47 | 'OriginalValue', # values: OriginalValue, TopResolution | ||
| 48 | RegexFilter => { | ||
| 49 | Pattern => 'MyRegexPattern', # min: 1, max: 100 | ||
| 50 | |||
| 51 | }, # OPTIONAL | ||
| 52 | }, | ||
| 53 | Description => 'MyDescription', # OPTIONAL | ||
| 54 | ParentSlotTypeSignature => 'MySlotTypeSignature', # OPTIONAL | ||
| 55 | SlotTypeValues => [ | ||
| 56 | { | ||
| 57 | SampleValue => { | ||
| 58 | Value => 'MyValue', # min: 1, max: 140 | ||
| 59 | |||
| 60 | }, # OPTIONAL | ||
| 61 | Synonyms => [ | ||
| 62 | { | ||
| 63 | Value => 'MyValue', # min: 1, max: 140 | ||
| 64 | |||
| 65 | }, | ||
| 66 | ... # OPTIONAL | ||
| 67 | ], # min: 1, max: 10000; OPTIONAL | ||
| 68 | }, | ||
| 69 | ... | ||
| 70 | ], # OPTIONAL | ||
| 71 | ); | ||
| 72 | |||
| 73 | # Results: | ||
| 74 | my $BotId = $UpdateSlotTypeResponse->BotId; | ||
| 75 | my $BotVersion = $UpdateSlotTypeResponse->BotVersion; | ||
| 76 | my $CreationDateTime = $UpdateSlotTypeResponse->CreationDateTime; | ||
| 77 | my $Description = $UpdateSlotTypeResponse->Description; | ||
| 78 | my $LastUpdatedDateTime = $UpdateSlotTypeResponse->LastUpdatedDateTime; | ||
| 79 | my $LocaleId = $UpdateSlotTypeResponse->LocaleId; | ||
| 80 | my $ParentSlotTypeSignature = | ||
| 81 | $UpdateSlotTypeResponse->ParentSlotTypeSignature; | ||
| 82 | my $SlotTypeId = $UpdateSlotTypeResponse->SlotTypeId; | ||
| 83 | my $SlotTypeName = $UpdateSlotTypeResponse->SlotTypeName; | ||
| 84 | my $SlotTypeValues = $UpdateSlotTypeResponse->SlotTypeValues; | ||
| 85 | my $ValueSelectionSetting = $UpdateSlotTypeResponse->ValueSelectionSetting; | ||
| 86 | |||
| 87 | # Returns a L<Paws::LexModelsV2::UpdateSlotTypeResponse> object. | ||
| 88 | |||
| 89 | 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. | ||
| 90 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/models-v2-lex/UpdateSlotType> | ||
| 91 | |||
| 92 | =head1 ATTRIBUTES | ||
| 93 | |||
| 94 | |||
| 95 | =head2 B<REQUIRED> BotId => Str | ||
| 96 | |||
| 97 | The identifier of the bot that contains the slot type. | ||
| 98 | |||
| 99 | |||
| 100 | |||
| 101 | =head2 B<REQUIRED> BotVersion => Str | ||
| 102 | |||
| 103 | The version of the bot that contains the slot type. Must be C<DRAFT>. | ||
| 104 | |||
| 105 | |||
| 106 | |||
| 107 | =head2 Description => Str | ||
| 108 | |||
| 109 | The new description of the slot type. | ||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | =head2 B<REQUIRED> LocaleId => Str | ||
| 114 | |||
| 115 | The identifier of the language and locale that contains the slot type. | ||
| 116 | The string must match one of the supported locales. For more | ||
| 117 | information, see Supported languages | ||
| 118 | (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). | ||
| 119 | |||
| 120 | |||
| 121 | |||
| 122 | =head2 ParentSlotTypeSignature => Str | ||
| 123 | |||
| 124 | The new built-in slot type that should be used as the parent of this | ||
| 125 | slot type. | ||
| 126 | |||
| 127 | |||
| 128 | |||
| 129 | =head2 B<REQUIRED> SlotTypeId => Str | ||
| 130 | |||
| 131 | The unique identifier of the slot type to update. | ||
| 132 | |||
| 133 | |||
| 134 | |||
| 135 | =head2 B<REQUIRED> SlotTypeName => Str | ||
| 136 | |||
| 137 | The new name of the slot type. | ||
| 138 | |||
| 139 | |||
| 140 | |||
| 141 | =head2 SlotTypeValues => ArrayRef[L<Paws::LexModelsV2::SlotTypeValue>] | ||
| 142 | |||
| 143 | A new list of values and their optional synonyms that define the values | ||
| 144 | that the slot type can take. | ||
| 145 | |||
| 146 | |||
| 147 | |||
| 148 | =head2 B<REQUIRED> ValueSelectionSetting => L<Paws::LexModelsV2::SlotValueSelectionSetting> | ||
| 149 | |||
| 150 | The strategy that Amazon Lex should use when deciding on a value from | ||
| 151 | the list of slot type values. | ||
| 152 | |||
| 153 | |||
| 154 | |||
| 155 | |||
| 156 | =head1 SEE ALSO | ||
| 157 | |||
| 158 | This class forms part of L<Paws>, documenting arguments for method UpdateSlotType in L<Paws::LexModelsV2> | ||
| 159 | |||
| 160 | =head1 BUGS and CONTRIBUTIONS | ||
| 161 | |||
| 162 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 163 | |||
| 164 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 165 | |||
| 166 | =cut | ||
| 167 |