« blib/lib/Paws/LexModelsV2/UpdateBotAliasResponse.pm
↑ Summary
blib/lib/Paws/LexModelsV2/UpdateBotLocaleResponse.pm »
| 1 | |||
| 2 | package Paws::LexModelsV2::UpdateBotLocale; | ||
| 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 NluIntentConfidenceThreshold => (is => 'ro', isa => 'Num', traits => ['NameInRequest'], request_name => 'nluIntentConfidenceThreshold', required => 1); | ||
| 9 | has VoiceSettings => (is => 'ro', isa => 'Paws::LexModelsV2::VoiceSettings', traits => ['NameInRequest'], request_name => 'voiceSettings'); | ||
| 10 | |||
| 11 | use MooseX::ClassAttribute; | ||
| 12 | |||
| 13 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateBotLocale'); | ||
| 14 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/bots/{botId}/botversions/{botVersion}/botlocales/{localeId}/'); | ||
| 15 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 16 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LexModelsV2::UpdateBotLocaleResponse'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::LexModelsV2::UpdateBotLocale - Arguments for method UpdateBotLocale on L<Paws::LexModelsV2> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method UpdateBotLocale on the | ||
| 28 | L<Amazon Lex Model Building V2|Paws::LexModelsV2> service. Use the attributes of this class | ||
| 29 | as arguments to method UpdateBotLocale. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateBotLocale. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $models-v2-lex = Paws->service('LexModelsV2'); | ||
| 36 | my $UpdateBotLocaleResponse = $models - v2 -lex->UpdateBotLocale( | ||
| 37 | BotId => 'MyId', | ||
| 38 | BotVersion => 'MyDraftBotVersion', | ||
| 39 | LocaleId => 'MyLocaleId', | ||
| 40 | NluIntentConfidenceThreshold => 1, | ||
| 41 | Description => 'MyDescription', # OPTIONAL | ||
| 42 | VoiceSettings => { | ||
| 43 | VoiceId => 'MyVoiceId', | ||
| 44 | |||
| 45 | }, # OPTIONAL | ||
| 46 | ); | ||
| 47 | |||
| 48 | # Results: | ||
| 49 | my $BotId = $UpdateBotLocaleResponse->BotId; | ||
| 50 | my $BotLocaleStatus = $UpdateBotLocaleResponse->BotLocaleStatus; | ||
| 51 | my $BotVersion = $UpdateBotLocaleResponse->BotVersion; | ||
| 52 | my $CreationDateTime = $UpdateBotLocaleResponse->CreationDateTime; | ||
| 53 | my $Description = $UpdateBotLocaleResponse->Description; | ||
| 54 | my $FailureReasons = $UpdateBotLocaleResponse->FailureReasons; | ||
| 55 | my $LastUpdatedDateTime = $UpdateBotLocaleResponse->LastUpdatedDateTime; | ||
| 56 | my $LocaleId = $UpdateBotLocaleResponse->LocaleId; | ||
| 57 | my $LocaleName = $UpdateBotLocaleResponse->LocaleName; | ||
| 58 | my $NluIntentConfidenceThreshold = | ||
| 59 | $UpdateBotLocaleResponse->NluIntentConfidenceThreshold; | ||
| 60 | my $VoiceSettings = $UpdateBotLocaleResponse->VoiceSettings; | ||
| 61 | |||
| 62 | # Returns a L<Paws::LexModelsV2::UpdateBotLocaleResponse> object. | ||
| 63 | |||
| 64 | 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. | ||
| 65 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/models-v2-lex/UpdateBotLocale> | ||
| 66 | |||
| 67 | =head1 ATTRIBUTES | ||
| 68 | |||
| 69 | |||
| 70 | =head2 B<REQUIRED> BotId => Str | ||
| 71 | |||
| 72 | The unique identifier of the bot that contains the locale. | ||
| 73 | |||
| 74 | |||
| 75 | |||
| 76 | =head2 B<REQUIRED> BotVersion => Str | ||
| 77 | |||
| 78 | The version of the bot that contains the locale to be updated. The | ||
| 79 | version can only be the C<DRAFT> version. | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | =head2 Description => Str | ||
| 84 | |||
| 85 | The new description of the locale. | ||
| 86 | |||
| 87 | |||
| 88 | |||
| 89 | =head2 B<REQUIRED> LocaleId => Str | ||
| 90 | |||
| 91 | The identifier of the language and locale to update. The string must | ||
| 92 | match one of the supported locales. For more information, see Supported | ||
| 93 | languages | ||
| 94 | (https://docs.aws.amazon.com/lexv2/latest/dg/how-languages.html). | ||
| 95 | |||
| 96 | |||
| 97 | |||
| 98 | =head2 B<REQUIRED> NluIntentConfidenceThreshold => Num | ||
| 99 | |||
| 100 | The new confidence threshold where Amazon Lex inserts the | ||
| 101 | C<AMAZON.FallbackIntent> and C<AMAZON.KendraSearchIntent> intents in | ||
| 102 | the list of possible intents for an utterance. | ||
| 103 | |||
| 104 | |||
| 105 | |||
| 106 | =head2 VoiceSettings => L<Paws::LexModelsV2::VoiceSettings> | ||
| 107 | |||
| 108 | The new Amazon Polly voice Amazon Lex should use for voice interaction | ||
| 109 | with the user. | ||
| 110 | |||
| 111 | |||
| 112 | |||
| 113 | |||
| 114 | =head1 SEE ALSO | ||
| 115 | |||
| 116 | This class forms part of L<Paws>, documenting arguments for method UpdateBotLocale in L<Paws::LexModelsV2> | ||
| 117 | |||
| 118 | =head1 BUGS and CONTRIBUTIONS | ||
| 119 | |||
| 120 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 121 | |||
| 122 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 123 | |||
| 124 | =cut | ||
| 125 |