/* * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * * Licensed under the Apache License, Version 2.0 (the "License"). * You may not use this file except in compliance with the License. * A copy of the License is located at * * http://aws.amazon.com/apache2.0 * * or in the "license" file accompanying this file. This file is distributed * on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either * express or implied. See the License for the specific language governing * permissions and limitations under the License. */ /* * Do not modify this file. This file is generated from the ssm-2014-11-06.normal.json service model. */ using System; using System.Collections.Generic; using System.Xml.Serialization; using System.Text; using System.IO; using System.Net; using Amazon.Runtime; using Amazon.Runtime.Internal; namespace Amazon.SimpleSystemsManagement.Model { /// /// A structure that includes attributes that describe a document attachment. /// public partial class AttachmentContent { private string _hash; private AttachmentHashType _hashType; private string _name; private long? _size; private string _url; /// /// Gets and sets the property Hash. /// /// The cryptographic hash value of the document content. /// /// [AWSProperty(Max=256)] public string Hash { get { return this._hash; } set { this._hash = value; } } // Check to see if Hash property is set internal bool IsSetHash() { return this._hash != null; } /// /// Gets and sets the property HashType. /// /// The hash algorithm used to calculate the hash value. /// /// public AttachmentHashType HashType { get { return this._hashType; } set { this._hashType = value; } } // Check to see if HashType property is set internal bool IsSetHashType() { return this._hashType != null; } /// /// Gets and sets the property Name. /// /// The name of an attachment. /// /// public string Name { get { return this._name; } set { this._name = value; } } // Check to see if Name property is set internal bool IsSetName() { return this._name != null; } /// /// Gets and sets the property Size. /// /// The size of an attachment in bytes. /// /// public long Size { get { return this._size.GetValueOrDefault(); } set { this._size = value; } } // Check to see if Size property is set internal bool IsSetSize() { return this._size.HasValue; } /// /// Gets and sets the property Url. /// /// The URL location of the attachment content. /// /// public string Url { get { return this._url; } set { this._url = value; } } // Check to see if Url property is set internal bool IsSetUrl() { return this._url != null; } } }