class
Amazonite::Ssm::AttachmentContent
- Amazonite::Ssm::AttachmentContent
- Reference
- Object
Overview
A structure that includes attributes that describe a document attachment.
Included Modules
- JSON::Serializable
Defined in:
ssm/attachment_content.crConstructors
- .new(pull : JSON::PullParser)
- .new(name : String | Nil = nil, size : Int64 | Nil = nil, hash : String | Nil = nil, hash_type : AttachmentHashType | Nil = nil, url : String | Nil = nil)
Instance Method Summary
-
#==(other : self)
Returns
trueif this reference is the same as other. -
#hash(hasher)
See
Object#hash(hasher) -
#hash : String | Nil
The cryptographic hash value of the document content.
-
#hash=(hash : String | Nil)
The cryptographic hash value of the document content.
-
#hash_type : AttachmentHashType | Nil
The hash algorithm used to calculate the hash value.
-
#hash_type=(hash_type : AttachmentHashType | Nil)
The hash algorithm used to calculate the hash value.
-
#name : String | Nil
The name of an attachment.
-
#name=(name : String | Nil)
The name of an attachment.
-
#size : Int64 | Nil
The size of an attachment in bytes.
-
#size=(size : Int64 | Nil)
The size of an attachment in bytes.
-
#url : String | Nil
The URL location of the attachment content.
-
#url=(url : String | Nil)
The URL location of the attachment content.
- #validate! : Nil
Constructor Detail
def self.new(name : String | Nil = nil, size : Int64 | Nil = nil, hash : String | Nil = nil, hash_type : AttachmentHashType | Nil = nil, url : String | Nil = nil)
#
Instance Method Detail
def ==(other : self)
#
Description copied from class Reference
Returns true if this reference is the same as other. Invokes same?.
def hash_type=(hash_type : AttachmentHashType | Nil)
#
The hash algorithm used to calculate the hash value.