Class: Twilio::REST::Accounts::V1::CredentialList::AwsInstanceMetadata

Inherits:
InstanceResourceMetadata show all
Defined in:
lib/twilio-ruby/rest/accounts/v1/credential/aws.rb

Instance Method Summary collapse

Constructor Details

#initialize(version, aws_instance, headers, status_code) ⇒ AwsInstanceMetadata

Initializes a new AwsInstanceMetadata.

Parameters:

  • version (Version)

    Version that contains the resource

  • [}AwsInstance]

    aws_instance The instance associated with the metadata.

  • headers (Hash)

    Header object with response headers.

  • status_code (Integer)

    The HTTP status code of the response.



397
398
399
400
# File 'lib/twilio-ruby/rest/accounts/v1/credential/aws.rb', line 397

def initialize(version, aws_instance, headers, status_code)
    super(version, headers, status_code)
    @aws_instance = aws_instance
end

Instance Method Details

#awsObject



402
403
404
# File 'lib/twilio-ruby/rest/accounts/v1/credential/aws.rb', line 402

def aws
    @aws_instance
end

#headersObject



406
407
408
# File 'lib/twilio-ruby/rest/accounts/v1/credential/aws.rb', line 406

def headers
    @headers
end

#status_codeObject



410
411
412
# File 'lib/twilio-ruby/rest/accounts/v1/credential/aws.rb', line 410

def status_code
    @status_code
end

#to_sObject



414
415
416
# File 'lib/twilio-ruby/rest/accounts/v1/credential/aws.rb', line 414

def to_s
  "<Twilio.Api.V2010.AwsInstanceMetadata status=#{@status_code}>"
end