« blib/lib/Paws/AlexaForBusiness/CreateConferenceProviderResponse.pm
↑ Summary
blib/lib/Paws/AlexaForBusiness/CreateContactResponse.pm »
| 1 | |||
| 2 | package Paws::AlexaForBusiness::CreateContact; | ||
| 3 | use Moose; | ||
| 4 | has ClientRequestToken => (is => 'ro', isa => 'Str'); | ||
| 5 | has DisplayName => (is => 'ro', isa => 'Str'); | ||
| 6 | has FirstName => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | has LastName => (is => 'ro', isa => 'Str'); | ||
| 8 | has PhoneNumber => (is => 'ro', isa => 'Str'); | ||
| 9 | has PhoneNumbers => (is => 'ro', isa => 'ArrayRef[Paws::AlexaForBusiness::PhoneNumber]'); | ||
| 10 | has SipAddresses => (is => 'ro', isa => 'ArrayRef[Paws::AlexaForBusiness::SipAddress]'); | ||
| 11 | has Tags => (is => 'ro', isa => 'ArrayRef[Paws::AlexaForBusiness::Tag]'); | ||
| 12 | |||
| 13 | use MooseX::ClassAttribute; | ||
| 14 | |||
| 15 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CreateContact'); | ||
| 16 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::AlexaForBusiness::CreateContactResponse'); | ||
| 17 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 18 | 1; | ||
| 19 | |||
| 20 | ### main pod documentation begin ### | ||
| 21 | |||
| 22 | =head1 NAME | ||
| 23 | |||
| 24 | Paws::AlexaForBusiness::CreateContact - Arguments for method CreateContact on L<Paws::AlexaForBusiness> | ||
| 25 | |||
| 26 | =head1 DESCRIPTION | ||
| 27 | |||
| 28 | This class represents the parameters used for calling the method CreateContact on the | ||
| 29 | L<Alexa For Business|Paws::AlexaForBusiness> service. Use the attributes of this class | ||
| 30 | as arguments to method CreateContact. | ||
| 31 | |||
| 32 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CreateContact. | ||
| 33 | |||
| 34 | =head1 SYNOPSIS | ||
| 35 | |||
| 36 | my $a4b = Paws->service('AlexaForBusiness'); | ||
| 37 | my $CreateContactResponse = $a4b->CreateContact( | ||
| 38 | FirstName => 'MyContactName', | ||
| 39 | ClientRequestToken => 'MyClientRequestToken', # OPTIONAL | ||
| 40 | DisplayName => 'MyContactName', # OPTIONAL | ||
| 41 | LastName => 'MyContactName', # OPTIONAL | ||
| 42 | PhoneNumber => 'MyRawPhoneNumber', # OPTIONAL | ||
| 43 | PhoneNumbers => [ | ||
| 44 | { | ||
| 45 | Number => 'MyRawPhoneNumber', # max: 50 | ||
| 46 | Type => 'MOBILE', # values: MOBILE, WORK, HOME | ||
| 47 | |||
| 48 | }, | ||
| 49 | ... | ||
| 50 | ], # OPTIONAL | ||
| 51 | SipAddresses => [ | ||
| 52 | { | ||
| 53 | Type => 'WORK', # values: WORK | ||
| 54 | Uri => 'MySipUri', # min: 1, max: 256 | ||
| 55 | |||
| 56 | }, | ||
| 57 | ... | ||
| 58 | ], # OPTIONAL | ||
| 59 | Tags => [ | ||
| 60 | { | ||
| 61 | Key => 'MyTagKey', # min: 1, max: 128 | ||
| 62 | Value => 'MyTagValue', # max: 256 | ||
| 63 | |||
| 64 | }, | ||
| 65 | ... | ||
| 66 | ], # OPTIONAL | ||
| 67 | ); | ||
| 68 | |||
| 69 | # Results: | ||
| 70 | my $ContactArn = $CreateContactResponse->ContactArn; | ||
| 71 | |||
| 72 | # Returns a L<Paws::AlexaForBusiness::CreateContactResponse> object. | ||
| 73 | |||
| 74 | 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. | ||
| 75 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/a4b/CreateContact> | ||
| 76 | |||
| 77 | =head1 ATTRIBUTES | ||
| 78 | |||
| 79 | |||
| 80 | =head2 ClientRequestToken => Str | ||
| 81 | |||
| 82 | A unique, user-specified identifier for this request that ensures | ||
| 83 | idempotency. | ||
| 84 | |||
| 85 | |||
| 86 | |||
| 87 | =head2 DisplayName => Str | ||
| 88 | |||
| 89 | The name of the contact to display on the console. | ||
| 90 | |||
| 91 | |||
| 92 | |||
| 93 | =head2 B<REQUIRED> FirstName => Str | ||
| 94 | |||
| 95 | The first name of the contact that is used to call the contact on the | ||
| 96 | device. | ||
| 97 | |||
| 98 | |||
| 99 | |||
| 100 | =head2 LastName => Str | ||
| 101 | |||
| 102 | The last name of the contact that is used to call the contact on the | ||
| 103 | device. | ||
| 104 | |||
| 105 | |||
| 106 | |||
| 107 | =head2 PhoneNumber => Str | ||
| 108 | |||
| 109 | The phone number of the contact in E.164 format. The phone number type | ||
| 110 | defaults to WORK. You can specify PhoneNumber or PhoneNumbers. We | ||
| 111 | recommend that you use PhoneNumbers, which lets you specify the phone | ||
| 112 | number type and multiple numbers. | ||
| 113 | |||
| 114 | |||
| 115 | |||
| 116 | =head2 PhoneNumbers => ArrayRef[L<Paws::AlexaForBusiness::PhoneNumber>] | ||
| 117 | |||
| 118 | The list of phone numbers for the contact. | ||
| 119 | |||
| 120 | |||
| 121 | |||
| 122 | =head2 SipAddresses => ArrayRef[L<Paws::AlexaForBusiness::SipAddress>] | ||
| 123 | |||
| 124 | The list of SIP addresses for the contact. | ||
| 125 | |||
| 126 | |||
| 127 | |||
| 128 | =head2 Tags => ArrayRef[L<Paws::AlexaForBusiness::Tag>] | ||
| 129 | |||
| 130 | The tags to be added to the specified resource. Do not provide system | ||
| 131 | tags. | ||
| 132 | |||
| 133 | |||
| 134 | |||
| 135 | |||
| 136 | =head1 SEE ALSO | ||
| 137 | |||
| 138 | This class forms part of L<Paws>, documenting arguments for method CreateContact in L<Paws::AlexaForBusiness> | ||
| 139 | |||
| 140 | =head1 BUGS and CONTRIBUTIONS | ||
| 141 | |||
| 142 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 143 | |||
| 144 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 145 | |||
| 146 | =cut | ||
| 147 |