/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SMS { namespace Model { /** *

A script that runs on first launch of an Amazon EC2 instance. Used for * configuring the server during launch.

See Also:

AWS API * Reference

*/ class UserData { public: AWS_SMS_API UserData(); AWS_SMS_API UserData(Aws::Utils::Json::JsonView jsonValue); AWS_SMS_API UserData& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SMS_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

Amazon S3 location of the user-data script.

*/ inline const S3Location& GetS3Location() const{ return m_s3Location; } /** *

Amazon S3 location of the user-data script.

*/ inline bool S3LocationHasBeenSet() const { return m_s3LocationHasBeenSet; } /** *

Amazon S3 location of the user-data script.

*/ inline void SetS3Location(const S3Location& value) { m_s3LocationHasBeenSet = true; m_s3Location = value; } /** *

Amazon S3 location of the user-data script.

*/ inline void SetS3Location(S3Location&& value) { m_s3LocationHasBeenSet = true; m_s3Location = std::move(value); } /** *

Amazon S3 location of the user-data script.

*/ inline UserData& WithS3Location(const S3Location& value) { SetS3Location(value); return *this;} /** *

Amazon S3 location of the user-data script.

*/ inline UserData& WithS3Location(S3Location&& value) { SetS3Location(std::move(value)); return *this;} private: S3Location m_s3Location; bool m_s3LocationHasBeenSet = false; }; } // namespace Model } // namespace SMS } // namespace Aws