You are viewing documentation for version 3 of the AWS SDK for Ruby. Version 2 documentation can be found here.

Class: Aws::MediaStoreData::Types::GetObjectResponse

Inherits:
Struct
  • Object
show all
Defined in:
gems/aws-sdk-mediastoredata/lib/aws-sdk-mediastoredata/types.rb

Overview

Instance Attribute Summary collapse

Instance Attribute Details

#bodyIO

The bytes of the object.

Returns:

  • (IO)


200
201
202
203
204
205
206
207
208
209
210
# File 'gems/aws-sdk-mediastoredata/lib/aws-sdk-mediastoredata/types.rb', line 200

class GetObjectResponse < Struct.new(
  :body,
  :cache_control,
  :content_range,
  :content_length,
  :content_type,
  :etag,
  :last_modified,
  :status_code)
  include Aws::Structure
end

#cache_controlString

An optional CacheControl header that allows the caller to control the object's cache behavior. Headers can be passed in as specified in the HTTP spec at https://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html#sec14.9.

Headers with a custom user-defined value are also accepted.

Returns:

  • (String)


200
201
202
203
204
205
206
207
208
209
210
# File 'gems/aws-sdk-mediastoredata/lib/aws-sdk-mediastoredata/types.rb', line 200

class GetObjectResponse < Struct.new(
  :body,
  :cache_control,
  :content_range,
  :content_length,
  :content_type,
  :etag,
  :last_modified,
  :status_code)
  include Aws::Structure
end

#content_lengthInteger

The length of the object in bytes.

Returns:

  • (Integer)


200
201
202
203
204
205
206
207
208
209
210
# File 'gems/aws-sdk-mediastoredata/lib/aws-sdk-mediastoredata/types.rb', line 200

class GetObjectResponse < Struct.new(
  :body,
  :cache_control,
  :content_range,
  :content_length,
  :content_type,
  :etag,
  :last_modified,
  :status_code)
  include Aws::Structure
end

#content_rangeString

The range of bytes to retrieve.

Returns:

  • (String)


200
201
202
203
204
205
206
207
208
209
210
# File 'gems/aws-sdk-mediastoredata/lib/aws-sdk-mediastoredata/types.rb', line 200

class GetObjectResponse < Struct.new(
  :body,
  :cache_control,
  :content_range,
  :content_length,
  :content_type,
  :etag,
  :last_modified,
  :status_code)
  include Aws::Structure
end

#content_typeString

The content type of the object.

Returns:

  • (String)


200
201
202
203
204
205
206
207
208
209
210
# File 'gems/aws-sdk-mediastoredata/lib/aws-sdk-mediastoredata/types.rb', line 200

class GetObjectResponse < Struct.new(
  :body,
  :cache_control,
  :content_range,
  :content_length,
  :content_type,
  :etag,
  :last_modified,
  :status_code)
  include Aws::Structure
end

#etagString

The ETag that represents a unique instance of the object.

Returns:

  • (String)


200
201
202
203
204
205
206
207
208
209
210
# File 'gems/aws-sdk-mediastoredata/lib/aws-sdk-mediastoredata/types.rb', line 200

class GetObjectResponse < Struct.new(
  :body,
  :cache_control,
  :content_range,
  :content_length,
  :content_type,
  :etag,
  :last_modified,
  :status_code)
  include Aws::Structure
end

#last_modifiedTime

The date and time that the object was last modified.

Returns:

  • (Time)


200
201
202
203
204
205
206
207
208
209
210
# File 'gems/aws-sdk-mediastoredata/lib/aws-sdk-mediastoredata/types.rb', line 200

class GetObjectResponse < Struct.new(
  :body,
  :cache_control,
  :content_range,
  :content_length,
  :content_type,
  :etag,
  :last_modified,
  :status_code)
  include Aws::Structure
end

#status_codeInteger

The HTML status code of the request. Status codes ranging from 200 to 299 indicate success. All other status codes indicate the type of error that occurred.

Returns:

  • (Integer)


200
201
202
203
204
205
206
207
208
209
210
# File 'gems/aws-sdk-mediastoredata/lib/aws-sdk-mediastoredata/types.rb', line 200

class GetObjectResponse < Struct.new(
  :body,
  :cache_control,
  :content_range,
  :content_length,
  :content_type,
  :etag,
  :last_modified,
  :status_code)
  include Aws::Structure
end