/** * 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 SsmSap { namespace Model { /** *

Describes the properties of the associated host.

See Also:

* AWS * API Reference

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

The name of the host.

*/ inline const Aws::String& GetHostname() const{ return m_hostname; } /** *

The name of the host.

*/ inline bool HostnameHasBeenSet() const { return m_hostnameHasBeenSet; } /** *

The name of the host.

*/ inline void SetHostname(const Aws::String& value) { m_hostnameHasBeenSet = true; m_hostname = value; } /** *

The name of the host.

*/ inline void SetHostname(Aws::String&& value) { m_hostnameHasBeenSet = true; m_hostname = std::move(value); } /** *

The name of the host.

*/ inline void SetHostname(const char* value) { m_hostnameHasBeenSet = true; m_hostname.assign(value); } /** *

The name of the host.

*/ inline AssociatedHost& WithHostname(const Aws::String& value) { SetHostname(value); return *this;} /** *

The name of the host.

*/ inline AssociatedHost& WithHostname(Aws::String&& value) { SetHostname(std::move(value)); return *this;} /** *

The name of the host.

*/ inline AssociatedHost& WithHostname(const char* value) { SetHostname(value); return *this;} /** *

The ID of the Amazon EC2 instance.

*/ inline const Aws::String& GetEc2InstanceId() const{ return m_ec2InstanceId; } /** *

The ID of the Amazon EC2 instance.

*/ inline bool Ec2InstanceIdHasBeenSet() const { return m_ec2InstanceIdHasBeenSet; } /** *

The ID of the Amazon EC2 instance.

*/ inline void SetEc2InstanceId(const Aws::String& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = value; } /** *

The ID of the Amazon EC2 instance.

*/ inline void SetEc2InstanceId(Aws::String&& value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId = std::move(value); } /** *

The ID of the Amazon EC2 instance.

*/ inline void SetEc2InstanceId(const char* value) { m_ec2InstanceIdHasBeenSet = true; m_ec2InstanceId.assign(value); } /** *

The ID of the Amazon EC2 instance.

*/ inline AssociatedHost& WithEc2InstanceId(const Aws::String& value) { SetEc2InstanceId(value); return *this;} /** *

The ID of the Amazon EC2 instance.

*/ inline AssociatedHost& WithEc2InstanceId(Aws::String&& value) { SetEc2InstanceId(std::move(value)); return *this;} /** *

The ID of the Amazon EC2 instance.

*/ inline AssociatedHost& WithEc2InstanceId(const char* value) { SetEc2InstanceId(value); return *this;} /** *

The version of the operating system.

*/ inline const Aws::String& GetOsVersion() const{ return m_osVersion; } /** *

The version of the operating system.

*/ inline bool OsVersionHasBeenSet() const { return m_osVersionHasBeenSet; } /** *

The version of the operating system.

*/ inline void SetOsVersion(const Aws::String& value) { m_osVersionHasBeenSet = true; m_osVersion = value; } /** *

The version of the operating system.

*/ inline void SetOsVersion(Aws::String&& value) { m_osVersionHasBeenSet = true; m_osVersion = std::move(value); } /** *

The version of the operating system.

*/ inline void SetOsVersion(const char* value) { m_osVersionHasBeenSet = true; m_osVersion.assign(value); } /** *

The version of the operating system.

*/ inline AssociatedHost& WithOsVersion(const Aws::String& value) { SetOsVersion(value); return *this;} /** *

The version of the operating system.

*/ inline AssociatedHost& WithOsVersion(Aws::String&& value) { SetOsVersion(std::move(value)); return *this;} /** *

The version of the operating system.

*/ inline AssociatedHost& WithOsVersion(const char* value) { SetOsVersion(value); return *this;} private: Aws::String m_hostname; bool m_hostnameHasBeenSet = false; Aws::String m_ec2InstanceId; bool m_ec2InstanceIdHasBeenSet = false; Aws::String m_osVersion; bool m_osVersionHasBeenSet = false; }; } // namespace Model } // namespace SsmSap } // namespace Aws