/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include A structure that includes attributes that describe a document
* attachment.See Also:
AWS
* API Reference
The name of an attachment.
*/ inline const Aws::String& GetName() const{ return m_name; } /** *The name of an attachment.
*/ inline bool NameHasBeenSet() const { return m_nameHasBeenSet; } /** *The name of an attachment.
*/ inline void SetName(const Aws::String& value) { m_nameHasBeenSet = true; m_name = value; } /** *The name of an attachment.
*/ inline void SetName(Aws::String&& value) { m_nameHasBeenSet = true; m_name = std::move(value); } /** *The name of an attachment.
*/ inline void SetName(const char* value) { m_nameHasBeenSet = true; m_name.assign(value); } /** *The name of an attachment.
*/ inline AttachmentContent& WithName(const Aws::String& value) { SetName(value); return *this;} /** *The name of an attachment.
*/ inline AttachmentContent& WithName(Aws::String&& value) { SetName(std::move(value)); return *this;} /** *The name of an attachment.
*/ inline AttachmentContent& WithName(const char* value) { SetName(value); return *this;} /** *The size of an attachment in bytes.
*/ inline long long GetSize() const{ return m_size; } /** *The size of an attachment in bytes.
*/ inline bool SizeHasBeenSet() const { return m_sizeHasBeenSet; } /** *The size of an attachment in bytes.
*/ inline void SetSize(long long value) { m_sizeHasBeenSet = true; m_size = value; } /** *The size of an attachment in bytes.
*/ inline AttachmentContent& WithSize(long long value) { SetSize(value); return *this;} /** *The cryptographic hash value of the document content.
*/ inline const Aws::String& GetHash() const{ return m_hash; } /** *The cryptographic hash value of the document content.
*/ inline bool HashHasBeenSet() const { return m_hashHasBeenSet; } /** *The cryptographic hash value of the document content.
*/ inline void SetHash(const Aws::String& value) { m_hashHasBeenSet = true; m_hash = value; } /** *The cryptographic hash value of the document content.
*/ inline void SetHash(Aws::String&& value) { m_hashHasBeenSet = true; m_hash = std::move(value); } /** *The cryptographic hash value of the document content.
*/ inline void SetHash(const char* value) { m_hashHasBeenSet = true; m_hash.assign(value); } /** *The cryptographic hash value of the document content.
*/ inline AttachmentContent& WithHash(const Aws::String& value) { SetHash(value); return *this;} /** *The cryptographic hash value of the document content.
*/ inline AttachmentContent& WithHash(Aws::String&& value) { SetHash(std::move(value)); return *this;} /** *The cryptographic hash value of the document content.
*/ inline AttachmentContent& WithHash(const char* value) { SetHash(value); return *this;} /** *The hash algorithm used to calculate the hash value.
*/ inline const AttachmentHashType& GetHashType() const{ return m_hashType; } /** *The hash algorithm used to calculate the hash value.
*/ inline bool HashTypeHasBeenSet() const { return m_hashTypeHasBeenSet; } /** *The hash algorithm used to calculate the hash value.
*/ inline void SetHashType(const AttachmentHashType& value) { m_hashTypeHasBeenSet = true; m_hashType = value; } /** *The hash algorithm used to calculate the hash value.
*/ inline void SetHashType(AttachmentHashType&& value) { m_hashTypeHasBeenSet = true; m_hashType = std::move(value); } /** *The hash algorithm used to calculate the hash value.
*/ inline AttachmentContent& WithHashType(const AttachmentHashType& value) { SetHashType(value); return *this;} /** *The hash algorithm used to calculate the hash value.
*/ inline AttachmentContent& WithHashType(AttachmentHashType&& value) { SetHashType(std::move(value)); return *this;} /** *The URL location of the attachment content.
*/ inline const Aws::String& GetUrl() const{ return m_url; } /** *The URL location of the attachment content.
*/ inline bool UrlHasBeenSet() const { return m_urlHasBeenSet; } /** *The URL location of the attachment content.
*/ inline void SetUrl(const Aws::String& value) { m_urlHasBeenSet = true; m_url = value; } /** *The URL location of the attachment content.
*/ inline void SetUrl(Aws::String&& value) { m_urlHasBeenSet = true; m_url = std::move(value); } /** *The URL location of the attachment content.
*/ inline void SetUrl(const char* value) { m_urlHasBeenSet = true; m_url.assign(value); } /** *The URL location of the attachment content.
*/ inline AttachmentContent& WithUrl(const Aws::String& value) { SetUrl(value); return *this;} /** *The URL location of the attachment content.
*/ inline AttachmentContent& WithUrl(Aws::String&& value) { SetUrl(std::move(value)); return *this;} /** *The URL location of the attachment content.
*/ inline AttachmentContent& WithUrl(const char* value) { SetUrl(value); return *this;} private: Aws::String m_name; bool m_nameHasBeenSet = false; long long m_size; bool m_sizeHasBeenSet = false; Aws::String m_hash; bool m_hashHasBeenSet = false; AttachmentHashType m_hashType; bool m_hashTypeHasBeenSet = false; Aws::String m_url; bool m_urlHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws