« blib/lib/Paws/Pinpoint/UpdateVoiceChannelResponse.pm
↑ Summary
blib/lib/Paws/Pinpoint/UpdateVoiceTemplateResponse.pm »
| 1 | |||
| 2 | package Paws::Pinpoint::UpdateVoiceTemplate; | ||
| 3 | use Moose; | ||
| 4 | has CreateNewVersion => (is => 'ro', isa => 'Bool', traits => ['ParamInQuery'], query_name => 'create-new-version'); | ||
| 5 | has TemplateName => (is => 'ro', isa => 'Str', traits => ['ParamInURI'], uri_name => 'template-name', required => 1); | ||
| 6 | has Version => (is => 'ro', isa => 'Str', traits => ['ParamInQuery'], query_name => 'version'); | ||
| 7 | has VoiceTemplateRequest => (is => 'ro', isa => 'Paws::Pinpoint::VoiceTemplateRequest', required => 1); | ||
| 8 | |||
| 9 | use MooseX::ClassAttribute; | ||
| 10 | class_has _stream_param => (is => 'ro', default => 'VoiceTemplateRequest'); | ||
| 11 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'UpdateVoiceTemplate'); | ||
| 12 | class_has _api_uri => (isa => 'Str', is => 'ro', default => '/v1/templates/{template-name}/voice'); | ||
| 13 | class_has _api_method => (isa => 'Str', is => 'ro', default => 'PUT'); | ||
| 14 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::Pinpoint::UpdateVoiceTemplateResponse'); | ||
| 15 | 1; | ||
| 16 | |||
| 17 | ### main pod documentation begin ### | ||
| 18 | |||
| 19 | =head1 NAME | ||
| 20 | |||
| 21 | Paws::Pinpoint::UpdateVoiceTemplate - Arguments for method UpdateVoiceTemplate on L<Paws::Pinpoint> | ||
| 22 | |||
| 23 | =head1 DESCRIPTION | ||
| 24 | |||
| 25 | This class represents the parameters used for calling the method UpdateVoiceTemplate on the | ||
| 26 | L<Amazon Pinpoint|Paws::Pinpoint> service. Use the attributes of this class | ||
| 27 | as arguments to method UpdateVoiceTemplate. | ||
| 28 | |||
| 29 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to UpdateVoiceTemplate. | ||
| 30 | |||
| 31 | =head1 SYNOPSIS | ||
| 32 | |||
| 33 | my $pinpoint = Paws->service('Pinpoint'); | ||
| 34 | my $UpdateVoiceTemplateResponse = $pinpoint->UpdateVoiceTemplate( | ||
| 35 | TemplateName => 'My__string', | ||
| 36 | VoiceTemplateRequest => { | ||
| 37 | Body => 'My__string', | ||
| 38 | DefaultSubstitutions => 'My__string', | ||
| 39 | LanguageCode => 'My__string', | ||
| 40 | Tags => { 'My__string' => 'My__string', }, # OPTIONAL | ||
| 41 | TemplateDescription => 'My__string', | ||
| 42 | VoiceId => 'My__string', | ||
| 43 | }, | ||
| 44 | CreateNewVersion => 1, # OPTIONAL | ||
| 45 | Version => 'My__string', # OPTIONAL | ||
| 46 | ); | ||
| 47 | |||
| 48 | # Results: | ||
| 49 | my $MessageBody = $UpdateVoiceTemplateResponse->MessageBody; | ||
| 50 | |||
| 51 | # Returns a L<Paws::Pinpoint::UpdateVoiceTemplateResponse> object. | ||
| 52 | |||
| 53 | 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. | ||
| 54 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/pinpoint/UpdateVoiceTemplate> | ||
| 55 | |||
| 56 | =head1 ATTRIBUTES | ||
| 57 | |||
| 58 | |||
| 59 | =head2 CreateNewVersion => Bool | ||
| 60 | |||
| 61 | Specifies whether to save the updates as a new version of the message | ||
| 62 | template. Valid values are: true, save the updates as a new version; | ||
| 63 | and, false, save the updates to (overwrite) the latest existing version | ||
| 64 | of the template. | ||
| 65 | |||
| 66 | If you don't specify a value for this parameter, Amazon Pinpoint saves | ||
| 67 | the updates to (overwrites) the latest existing version of the | ||
| 68 | template. If you specify a value of true for this parameter, don't | ||
| 69 | specify a value for the version parameter. Otherwise, an error will | ||
| 70 | occur. | ||
| 71 | |||
| 72 | |||
| 73 | |||
| 74 | =head2 B<REQUIRED> TemplateName => Str | ||
| 75 | |||
| 76 | The name of the message template. A template name must start with an | ||
| 77 | alphanumeric character and can contain a maximum of 128 characters. The | ||
| 78 | characters can be alphanumeric characters, underscores (_), or hyphens | ||
| 79 | (-). Template names are case sensitive. | ||
| 80 | |||
| 81 | |||
| 82 | |||
| 83 | =head2 Version => Str | ||
| 84 | |||
| 85 | The unique identifier for the version of the message template to | ||
| 86 | update, retrieve information about, or delete. To retrieve identifiers | ||
| 87 | and other information for all the versions of a template, use the | ||
| 88 | |||
| 89 | Template Versions resource. | ||
| 90 | |||
| 91 | If specified, this value must match the identifier for an existing | ||
| 92 | template version. If specified for an update operation, this value must | ||
| 93 | match the identifier for the latest existing version of the template. | ||
| 94 | This restriction helps ensure that race conditions don't occur. | ||
| 95 | |||
| 96 | If you don't specify a value for this parameter, Amazon Pinpoint does | ||
| 97 | the following: | ||
| 98 | |||
| 99 | =over | ||
| 100 | |||
| 101 | =item * | ||
| 102 | |||
| 103 | For a get operation, retrieves information about the active version of | ||
| 104 | the template. | ||
| 105 | |||
| 106 | =item * | ||
| 107 | |||
| 108 | For an update operation, saves the updates to (overwrites) the latest | ||
| 109 | existing version of the template, if the create-new-version parameter | ||
| 110 | isn't used or is set to false. | ||
| 111 | |||
| 112 | =item * | ||
| 113 | |||
| 114 | For a delete operation, deletes the template, including all versions of | ||
| 115 | the template. | ||
| 116 | |||
| 117 | =back | ||
| 118 | |||
| 119 | |||
| 120 | |||
| 121 | |||
| 122 | =head2 B<REQUIRED> VoiceTemplateRequest => L<Paws::Pinpoint::VoiceTemplateRequest> | ||
| 123 | |||
| 124 | |||
| 125 | |||
| 126 | |||
| 127 | |||
| 128 | |||
| 129 | =head1 SEE ALSO | ||
| 130 | |||
| 131 | This class forms part of L<Paws>, documenting arguments for method UpdateVoiceTemplate in L<Paws::Pinpoint> | ||
| 132 | |||
| 133 | =head1 BUGS and CONTRIBUTIONS | ||
| 134 | |||
| 135 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 136 | |||
| 137 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 138 | |||
| 139 | =cut | ||
| 140 |