| 1 | package Net::Amazon::EC2::NetworkInterfaceSet; | ||
| 2 | 1 | $Net::Amazon::EC2::NetworkInterfaceSet::VERSION = '0.36'; | |
| 3 | 1 | ▶ | use strict; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 4 | 1 | ▶ | use Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 5 | |||
| 6 | =head1 NAME | ||
| 7 | |||
| 8 | Net::Amazon::EC2::NetworkInterfaceSet | ||
| 9 | |||
| 10 | =head1 DESCRIPTION | ||
| 11 | |||
| 12 | A class representing a network interface | ||
| 13 | |||
| 14 | =head1 ATTRIBUTES | ||
| 15 | |||
| 16 | =over | ||
| 17 | |||
| 18 | =item network_interface_id (required) | ||
| 19 | |||
| 20 | Network interface ID. | ||
| 21 | |||
| 22 | =item subnet_id (optional) | ||
| 23 | |||
| 24 | Subnet ID specific interface belongs to. | ||
| 25 | |||
| 26 | =item vpc_id (optional) | ||
| 27 | |||
| 28 | VPC ID specific interface belongs to. | ||
| 29 | |||
| 30 | =item description (optional) | ||
| 31 | |||
| 32 | Interface description | ||
| 33 | |||
| 34 | =item status (optional) | ||
| 35 | |||
| 36 | Current interface status. | ||
| 37 | |||
| 38 | =item mac_address (optional) | ||
| 39 | |||
| 40 | Interfaces mac address. | ||
| 41 | |||
| 42 | =item private_ip_address (optional) | ||
| 43 | |||
| 44 | Private IP address attached to the interface. | ||
| 45 | |||
| 46 | =item group_sets (optional) | ||
| 47 | |||
| 48 | An array of Net::Amazon::EC2::GroupSet objects which representing security groups attached to the interface. | ||
| 49 | |||
| 50 | =back | ||
| 51 | |||
| 52 | =cut | ||
| 53 | |||
| 54 | 1 | has 'network_interface_id' => ( | |
| 55 | is => 'ro', | ||
| 56 | isa => 'Str', | ||
| 57 | required => 1, | ||
| 58 | ); | ||
| 59 | |||
| 60 | 1 | has 'subnet_id' => ( | |
| 61 | is => 'ro', | ||
| 62 | isa => 'Str', | ||
| 63 | required => 0, | ||
| 64 | ); | ||
| 65 | |||
| 66 | 1 | has 'vpc_id' => ( | |
| 67 | is => 'ro', | ||
| 68 | isa => 'Str', | ||
| 69 | required => 0, | ||
| 70 | ); | ||
| 71 | |||
| 72 | 1 | has 'description' => ( | |
| 73 | is => 'ro', | ||
| 74 | isa => 'Maybe[Str]', | ||
| 75 | required => 0, | ||
| 76 | ); | ||
| 77 | |||
| 78 | 1 | has 'status' => ( | |
| 79 | is => 'ro', | ||
| 80 | isa => 'Str', | ||
| 81 | required => 0, | ||
| 82 | ); | ||
| 83 | |||
| 84 | 1 | has 'mac_address' => ( | |
| 85 | is => 'ro', | ||
| 86 | isa => 'Str', | ||
| 87 | required => 0, | ||
| 88 | ); | ||
| 89 | |||
| 90 | 1 | has 'private_ip_address' => ( | |
| 91 | is => 'ro', | ||
| 92 | isa => 'Str', | ||
| 93 | required => 0, | ||
| 94 | ); | ||
| 95 | |||
| 96 | 1 | has 'group_sets' => ( | |
| 97 | is => 'ro', | ||
| 98 | isa => 'Maybe[ArrayRef[Net::Amazon::EC2::GroupSet]]', | ||
| 99 | required => 0, | ||
| 100 | ); | ||
| 101 | |||
| 102 | 1 | __PACKAGE__->meta->make_immutable(); | |
| 103 | |||
| 104 | =head1 AUTHOR | ||
| 105 | |||
| 106 | Igor Tsigankov <tsiganenok@gmail.com> | ||
| 107 | |||
| 108 | =head1 COPYRIGHT | ||
| 109 | |||
| 110 | This program is free software; you can redistribute it and/or modify it | ||
| 111 | under the same terms as Perl itself. | ||
| 112 | |||
| 113 | =cut | ||
| 114 | |||
| 115 | 1 | ▶ | no Moose; |
|
Subroutine
BEGIN: called CC=1 SCAR=0.0
| |||
| 116 | 1 | 1; | |