File: NetworkInterfaceSet.pm

package info (click to toggle)
libnet-amazon-ec2-perl 0.36-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 480 kB
  • sloc: perl: 3,323; makefile: 9
file content (116 lines) | stat: -rw-r--r-- 1,854 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
package Net::Amazon::EC2::NetworkInterfaceSet;
$Net::Amazon::EC2::NetworkInterfaceSet::VERSION = '0.36';
use strict;
use Moose;

=head1 NAME

Net::Amazon::EC2::NetworkInterfaceSet

=head1 DESCRIPTION

A class representing a network interface

=head1 ATTRIBUTES

=over

=item network_interface_id (required)

Network interface ID.

=item subnet_id (optional)

Subnet ID specific interface belongs to.

=item vpc_id (optional)

VPC ID specific interface belongs to.

=item description (optional)

Interface description

=item status (optional)

Current interface status.

=item mac_address (optional)

Interfaces mac address.

=item private_ip_address (optional)

Private IP address attached to the interface.

=item group_sets (optional)

An array of Net::Amazon::EC2::GroupSet objects which representing security groups attached to the interface.

=back

=cut

has 'network_interface_id' => (
   is       => 'ro',
   isa      => 'Str',
   required => 1,
);

has 'subnet_id' => (
   is       => 'ro',
   isa      => 'Str',
   required => 0,
);

has 'vpc_id' => (
   is       => 'ro',
   isa      => 'Str',
   required => 0,
);

has 'description' => (
   is       => 'ro',
   isa      => 'Maybe[Str]',
   required => 0,
);

has 'status' => (
   is       => 'ro',
   isa      => 'Str',
   required => 0,
);

has 'mac_address' => (
   is       => 'ro',
   isa      => 'Str',
   required => 0,
);

has 'private_ip_address' => (
   is       => 'ro',
   isa      => 'Str',
   required => 0,
);

has 'group_sets' => (
   is       => 'ro',
   isa      => 'Maybe[ArrayRef[Net::Amazon::EC2::GroupSet]]',
   required => 0,
);

__PACKAGE__->meta->make_immutable();

=head1 AUTHOR

Igor Tsigankov <tsiganenok@gmail.com>

=head1 COPYRIGHT

This program is free software; you can redistribute it and/or modify it
under the same terms as Perl itself.

=cut

no Moose;
1;