/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include Describes the user data for an instance.See Also:
AWS API
* Reference
The user data. If you are using an Amazon Web Services SDK or command line * tool, Base64-encoding is performed for you, and you can load the text from a * file. Otherwise, you must provide Base64-encoded text.
*/ inline const Aws::String& GetData() const{ return m_data; } /** *The user data. If you are using an Amazon Web Services SDK or command line * tool, Base64-encoding is performed for you, and you can load the text from a * file. Otherwise, you must provide Base64-encoded text.
*/ inline bool DataHasBeenSet() const { return m_dataHasBeenSet; } /** *The user data. If you are using an Amazon Web Services SDK or command line * tool, Base64-encoding is performed for you, and you can load the text from a * file. Otherwise, you must provide Base64-encoded text.
*/ inline void SetData(const Aws::String& value) { m_dataHasBeenSet = true; m_data = value; } /** *The user data. If you are using an Amazon Web Services SDK or command line * tool, Base64-encoding is performed for you, and you can load the text from a * file. Otherwise, you must provide Base64-encoded text.
*/ inline void SetData(Aws::String&& value) { m_dataHasBeenSet = true; m_data = std::move(value); } /** *The user data. If you are using an Amazon Web Services SDK or command line * tool, Base64-encoding is performed for you, and you can load the text from a * file. Otherwise, you must provide Base64-encoded text.
*/ inline void SetData(const char* value) { m_dataHasBeenSet = true; m_data.assign(value); } /** *The user data. If you are using an Amazon Web Services SDK or command line * tool, Base64-encoding is performed for you, and you can load the text from a * file. Otherwise, you must provide Base64-encoded text.
*/ inline UserData& WithData(const Aws::String& value) { SetData(value); return *this;} /** *The user data. If you are using an Amazon Web Services SDK or command line * tool, Base64-encoding is performed for you, and you can load the text from a * file. Otherwise, you must provide Base64-encoded text.
*/ inline UserData& WithData(Aws::String&& value) { SetData(std::move(value)); return *this;} /** *The user data. If you are using an Amazon Web Services SDK or command line * tool, Base64-encoding is performed for you, and you can load the text from a * file. Otherwise, you must provide Base64-encoded text.
*/ inline UserData& WithData(const char* value) { SetData(value); return *this;} private: Aws::String m_data; bool m_dataHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws