/** * 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 { /** *

Represents a VM server location.

See Also:

AWS * API Reference

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

The ID of the VM manager.

*/ inline const Aws::String& GetVmManagerId() const{ return m_vmManagerId; } /** *

The ID of the VM manager.

*/ inline bool VmManagerIdHasBeenSet() const { return m_vmManagerIdHasBeenSet; } /** *

The ID of the VM manager.

*/ inline void SetVmManagerId(const Aws::String& value) { m_vmManagerIdHasBeenSet = true; m_vmManagerId = value; } /** *

The ID of the VM manager.

*/ inline void SetVmManagerId(Aws::String&& value) { m_vmManagerIdHasBeenSet = true; m_vmManagerId = std::move(value); } /** *

The ID of the VM manager.

*/ inline void SetVmManagerId(const char* value) { m_vmManagerIdHasBeenSet = true; m_vmManagerId.assign(value); } /** *

The ID of the VM manager.

*/ inline VmServerAddress& WithVmManagerId(const Aws::String& value) { SetVmManagerId(value); return *this;} /** *

The ID of the VM manager.

*/ inline VmServerAddress& WithVmManagerId(Aws::String&& value) { SetVmManagerId(std::move(value)); return *this;} /** *

The ID of the VM manager.

*/ inline VmServerAddress& WithVmManagerId(const char* value) { SetVmManagerId(value); return *this;} /** *

The ID of the VM.

*/ inline const Aws::String& GetVmId() const{ return m_vmId; } /** *

The ID of the VM.

*/ inline bool VmIdHasBeenSet() const { return m_vmIdHasBeenSet; } /** *

The ID of the VM.

*/ inline void SetVmId(const Aws::String& value) { m_vmIdHasBeenSet = true; m_vmId = value; } /** *

The ID of the VM.

*/ inline void SetVmId(Aws::String&& value) { m_vmIdHasBeenSet = true; m_vmId = std::move(value); } /** *

The ID of the VM.

*/ inline void SetVmId(const char* value) { m_vmIdHasBeenSet = true; m_vmId.assign(value); } /** *

The ID of the VM.

*/ inline VmServerAddress& WithVmId(const Aws::String& value) { SetVmId(value); return *this;} /** *

The ID of the VM.

*/ inline VmServerAddress& WithVmId(Aws::String&& value) { SetVmId(std::move(value)); return *this;} /** *

The ID of the VM.

*/ inline VmServerAddress& WithVmId(const char* value) { SetVmId(value); return *this;} private: Aws::String m_vmManagerId; bool m_vmManagerIdHasBeenSet; Aws::String m_vmId; bool m_vmIdHasBeenSet; }; } // namespace Model } // namespace SMS } // namespace Aws