« blib/lib/Paws/LexModelsV2/CreateBotResponse.pm
↑ Summary
blib/lib/Paws/LexModelsV2/CreateBotVersionResponse.pm »
| 1 | |||
| 2 | package Paws::LexModelsV2::CreateBotVersion; | ||
| 3 | use Moose; | ||
| 4 | has BotId => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'botId', required => 1); | ||
| 5 | has BotVersionLocaleSpecification => (is => 'ro', isa => 'Paws::LexModelsV2::BotVersionLocaleSpecification', traits => ['NameInRequest'], request_name => 'botVersionLocaleSpecification', required => 1); | ||
| 6 | has Description => (is => 'ro', isa => 'Str', traits => ['NameInRequest'], request_name => 'description'); | ||
| 7 | |||
| 8 | use MooseX::ClassAttribute; | ||
| 9 | |||
| 10 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateBotVersion'); | ||
| 11 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/bots/{botId}/botversions/'); | ||
| 12 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 13 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LexModelsV2::CreateBotVersionResponse'); | ||
| 14 | 1; | ||
| 15 | |||
| 16 | ### main pod documentation begin ### | ||
| 17 | |||
| 18 | =head1 NAME | ||
| 19 | |||
| 20 | Paws::LexModelsV2::CreateBotVersion - Arguments for method CreateBotVersion on L<Paws::LexModelsV2> | ||
| 21 | |||
| 22 | =head1 DESCRIPTION | ||
| 23 | |||
| 24 | This class represents the parameters used for calling the method CreateBotVersion on the | ||
| 25 | L<Amazon Lex Model Building V2|Paws::LexModelsV2> service. Use the attributes of this class | ||
| 26 | as arguments to method CreateBotVersion. | ||
| 27 | |||
| 28 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateBotVersion. | ||
| 29 | |||
| 30 | =head1 SYNOPSIS | ||
| 31 | |||
| 32 | my $models-v2-lex = Paws->service('LexModelsV2'); | ||
| 33 | my $CreateBotVersionResponse = $models - v2 -lex->CreateBotVersion( | ||
| 34 | BotId => 'MyId', | ||
| 35 | BotVersionLocaleSpecification => { | ||
| 36 | 'MyLocaleId' => { | ||
| 37 | SourceBotVersion => 'MyBotVersion', # min: 1, max: 5 | ||
| 38 | |||
| 39 | }, | ||
| 40 | }, | ||
| 41 | Description => 'MyDescription', # OPTIONAL | ||
| 42 | ); | ||
| 43 | |||
| 44 | # Results: | ||
| 45 | my $BotId = $CreateBotVersionResponse->BotId; | ||
| 46 | my $BotStatus = $CreateBotVersionResponse->BotStatus; | ||
| 47 | my $BotVersion = $CreateBotVersionResponse->BotVersion; | ||
| 48 | my $BotVersionLocaleSpecification = | ||
| 49 | $CreateBotVersionResponse->BotVersionLocaleSpecification; | ||
| 50 | my $CreationDateTime = $CreateBotVersionResponse->CreationDateTime; | ||
| 51 | my $Description = $CreateBotVersionResponse->Description; | ||
| 52 | |||
| 53 | # Returns a L<Paws::LexModelsV2::CreateBotVersionResponse> object. | ||
| 54 | |||
| 55 | 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. | ||
| 56 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/models-v2-lex/CreateBotVersion> | ||
| 57 | |||
| 58 | =head1 ATTRIBUTES | ||
| 59 | |||
| 60 | |||
| 61 | =head2 B<REQUIRED> BotId => Str | ||
| 62 | |||
| 63 | The identifier of the bot to create the version for. | ||
| 64 | |||
| 65 | |||
| 66 | |||
| 67 | =head2 B<REQUIRED> BotVersionLocaleSpecification => L<Paws::LexModelsV2::BotVersionLocaleSpecification> | ||
| 68 | |||
| 69 | Specifies the locales that Amazon Lex adds to this version. You can | ||
| 70 | choose the C<Draft> version or any other previously published version | ||
| 71 | for each locale. When you specify a source version, the locale data is | ||
| 72 | copied from the source version to the new version. | ||
| 73 | |||
| 74 | |||
| 75 | |||
| 76 | =head2 Description => Str | ||
| 77 | |||
| 78 | A description of the version. Use the description to help identify the | ||
| 79 | version in lists. | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | |||
| 84 | =head1 SEE ALSO | ||
| 85 | |||
| 86 | This class forms part of L<Paws>, documenting arguments for method CreateBotVersion in L<Paws::LexModelsV2> | ||
| 87 | |||
| 88 | =head1 BUGS and CONTRIBUTIONS | ||
| 89 | |||
| 90 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 91 | |||
| 92 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 93 | |||
| 94 | =cut | ||
| 95 |