« blib/lib/Paws/LicenseManager/CheckoutBorrowLicenseResponse.pm
↑ Summary
blib/lib/Paws/LicenseManager/CheckoutLicenseResponse.pm »
| 1 | |||
| 2 | package Paws::LicenseManager::CheckoutLicense; | ||
| 3 | use Moose; | ||
| 4 | has Beneficiary => (is => 'ro', isa => 'Str'); | ||
| 5 | has CheckoutType => (is => 'ro', isa => 'Str', required => 1); | ||
| 6 | has ClientToken => (is => 'ro', isa => 'Str', required => 1); | ||
| 7 | has Entitlements => (is => 'ro', isa => 'ArrayRef[Paws::LicenseManager::EntitlementData]', required => 1); | ||
| 8 | has KeyFingerprint => (is => 'ro', isa => 'Str', required => 1); | ||
| 9 | has NodeId => (is => 'ro', isa => 'Str'); | ||
| 10 | has ProductSKU => (is => 'ro', isa => 'Str', required => 1); | ||
| 11 | |||
| 12 | use MooseX::ClassAttribute; | ||
| 13 | |||
| 14 | class_has _api_call => (isa => 'Str', is => 'ro', default => 'CheckoutLicense'); | ||
| 15 | class_has _returns => (isa => 'Str', is => 'ro', default => 'Paws::LicenseManager::CheckoutLicenseResponse'); | ||
| 16 | class_has _result_key => (isa => 'Str', is => 'ro'); | ||
| 17 | 1; | ||
| 18 | |||
| 19 | ### main pod documentation begin ### | ||
| 20 | |||
| 21 | =head1 NAME | ||
| 22 | |||
| 23 | Paws::LicenseManager::CheckoutLicense - Arguments for method CheckoutLicense on L<Paws::LicenseManager> | ||
| 24 | |||
| 25 | =head1 DESCRIPTION | ||
| 26 | |||
| 27 | This class represents the parameters used for calling the method CheckoutLicense on the | ||
| 28 | L<AWS License Manager|Paws::LicenseManager> service. Use the attributes of this class | ||
| 29 | as arguments to method CheckoutLicense. | ||
| 30 | |||
| 31 | You shouldn't make instances of this class. Each attribute should be used as a named argument in the call to CheckoutLicense. | ||
| 32 | |||
| 33 | =head1 SYNOPSIS | ||
| 34 | |||
| 35 | my $license-manager = Paws->service('LicenseManager'); | ||
| 36 | my $CheckoutLicenseResponse = $license -manager->CheckoutLicense( | ||
| 37 | CheckoutType => 'PROVISIONAL', | ||
| 38 | ClientToken => 'MyClientToken', | ||
| 39 | Entitlements => [ | ||
| 40 | { | ||
| 41 | Name => 'MyString', | ||
| 42 | Unit => 'Count' | ||
| 43 | , # values: Count, None, Seconds, Microseconds, Milliseconds, Bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, Bits, Kilobits, Megabits, Gigabits, Terabits, Percent, Bytes/Second, Kilobytes/Second, Megabytes/Second, Gigabytes/Second, Terabytes/Second, Bits/Second, Kilobits/Second, Megabits/Second, Gigabits/Second, Terabits/Second, Count/Second | ||
| 44 | Value => 'MyString', | ||
| 45 | }, | ||
| 46 | ... | ||
| 47 | ], | ||
| 48 | KeyFingerprint => 'MyString', | ||
| 49 | ProductSKU => 'MyString', | ||
| 50 | Beneficiary => 'MyString', # OPTIONAL | ||
| 51 | NodeId => 'MyString', # OPTIONAL | ||
| 52 | ); | ||
| 53 | |||
| 54 | # Results: | ||
| 55 | my $CheckoutType = $CheckoutLicenseResponse->CheckoutType; | ||
| 56 | my $EntitlementsAllowed = $CheckoutLicenseResponse->EntitlementsAllowed; | ||
| 57 | my $Expiration = $CheckoutLicenseResponse->Expiration; | ||
| 58 | my $IssuedAt = $CheckoutLicenseResponse->IssuedAt; | ||
| 59 | my $LicenseConsumptionToken = | ||
| 60 | $CheckoutLicenseResponse->LicenseConsumptionToken; | ||
| 61 | my $NodeId = $CheckoutLicenseResponse->NodeId; | ||
| 62 | my $SignedToken = $CheckoutLicenseResponse->SignedToken; | ||
| 63 | |||
| 64 | # Returns a L<Paws::LicenseManager::CheckoutLicenseResponse> object. | ||
| 65 | |||
| 66 | 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. | ||
| 67 | For the AWS API documentation, see L<https://docs.aws.amazon.com/goto/WebAPI/license-manager/CheckoutLicense> | ||
| 68 | |||
| 69 | =head1 ATTRIBUTES | ||
| 70 | |||
| 71 | |||
| 72 | =head2 Beneficiary => Str | ||
| 73 | |||
| 74 | License beneficiary. | ||
| 75 | |||
| 76 | |||
| 77 | |||
| 78 | =head2 B<REQUIRED> CheckoutType => Str | ||
| 79 | |||
| 80 | Checkout type. | ||
| 81 | |||
| 82 | Valid values are: C<"PROVISIONAL"> | ||
| 83 | |||
| 84 | =head2 B<REQUIRED> ClientToken => Str | ||
| 85 | |||
| 86 | Unique, case-sensitive identifier that you provide to ensure the | ||
| 87 | idempotency of the request. | ||
| 88 | |||
| 89 | |||
| 90 | |||
| 91 | =head2 B<REQUIRED> Entitlements => ArrayRef[L<Paws::LicenseManager::EntitlementData>] | ||
| 92 | |||
| 93 | License entitlements. | ||
| 94 | |||
| 95 | |||
| 96 | |||
| 97 | =head2 B<REQUIRED> KeyFingerprint => Str | ||
| 98 | |||
| 99 | Key fingerprint identifying the license. | ||
| 100 | |||
| 101 | |||
| 102 | |||
| 103 | =head2 NodeId => Str | ||
| 104 | |||
| 105 | Node ID. | ||
| 106 | |||
| 107 | |||
| 108 | |||
| 109 | =head2 B<REQUIRED> ProductSKU => Str | ||
| 110 | |||
| 111 | Product SKU. | ||
| 112 | |||
| 113 | |||
| 114 | |||
| 115 | |||
| 116 | =head1 SEE ALSO | ||
| 117 | |||
| 118 | This class forms part of L<Paws>, documenting arguments for method CheckoutLicense in L<Paws::LicenseManager> | ||
| 119 | |||
| 120 | =head1 BUGS and CONTRIBUTIONS | ||
| 121 | |||
| 122 | The source code is located here: L<https://github.com/pplu/aws-sdk-perl> | ||
| 123 | |||
| 124 | Please report bugs to: L<https://github.com/pplu/aws-sdk-perl/issues> | ||
| 125 | |||
| 126 | =cut | ||
| 127 |