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

Used as a response element in the PreviewAgents action.

See * Also:

AWS * API Reference

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

The hostname of the EC2 instance on which the Amazon Inspector Agent is * installed.

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

The hostname of the EC2 instance on which the Amazon Inspector Agent is * installed.

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

The hostname of the EC2 instance on which the Amazon Inspector Agent is * installed.

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

The hostname of the EC2 instance on which the Amazon Inspector Agent is * installed.

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

The hostname of the EC2 instance on which the Amazon Inspector Agent is * installed.

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

The hostname of the EC2 instance on which the Amazon Inspector Agent is * installed.

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

The hostname of the EC2 instance on which the Amazon Inspector Agent is * installed.

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

The hostname of the EC2 instance on which the Amazon Inspector Agent is * installed.

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

The ID of the EC2 instance where the agent is installed.

*/ inline const Aws::String& GetAgentId() const{ return m_agentId; } /** *

The ID of the EC2 instance where the agent is installed.

*/ inline bool AgentIdHasBeenSet() const { return m_agentIdHasBeenSet; } /** *

The ID of the EC2 instance where the agent is installed.

*/ inline void SetAgentId(const Aws::String& value) { m_agentIdHasBeenSet = true; m_agentId = value; } /** *

The ID of the EC2 instance where the agent is installed.

*/ inline void SetAgentId(Aws::String&& value) { m_agentIdHasBeenSet = true; m_agentId = std::move(value); } /** *

The ID of the EC2 instance where the agent is installed.

*/ inline void SetAgentId(const char* value) { m_agentIdHasBeenSet = true; m_agentId.assign(value); } /** *

The ID of the EC2 instance where the agent is installed.

*/ inline AgentPreview& WithAgentId(const Aws::String& value) { SetAgentId(value); return *this;} /** *

The ID of the EC2 instance where the agent is installed.

*/ inline AgentPreview& WithAgentId(Aws::String&& value) { SetAgentId(std::move(value)); return *this;} /** *

The ID of the EC2 instance where the agent is installed.

*/ inline AgentPreview& WithAgentId(const char* value) { SetAgentId(value); return *this;} /** *

The Auto Scaling group for the EC2 instance where the agent is installed.

*/ inline const Aws::String& GetAutoScalingGroup() const{ return m_autoScalingGroup; } /** *

The Auto Scaling group for the EC2 instance where the agent is installed.

*/ inline bool AutoScalingGroupHasBeenSet() const { return m_autoScalingGroupHasBeenSet; } /** *

The Auto Scaling group for the EC2 instance where the agent is installed.

*/ inline void SetAutoScalingGroup(const Aws::String& value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup = value; } /** *

The Auto Scaling group for the EC2 instance where the agent is installed.

*/ inline void SetAutoScalingGroup(Aws::String&& value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup = std::move(value); } /** *

The Auto Scaling group for the EC2 instance where the agent is installed.

*/ inline void SetAutoScalingGroup(const char* value) { m_autoScalingGroupHasBeenSet = true; m_autoScalingGroup.assign(value); } /** *

The Auto Scaling group for the EC2 instance where the agent is installed.

*/ inline AgentPreview& WithAutoScalingGroup(const Aws::String& value) { SetAutoScalingGroup(value); return *this;} /** *

The Auto Scaling group for the EC2 instance where the agent is installed.

*/ inline AgentPreview& WithAutoScalingGroup(Aws::String&& value) { SetAutoScalingGroup(std::move(value)); return *this;} /** *

The Auto Scaling group for the EC2 instance where the agent is installed.

*/ inline AgentPreview& WithAutoScalingGroup(const char* value) { SetAutoScalingGroup(value); return *this;} /** *

The health status of the Amazon Inspector Agent.

*/ inline const AgentHealth& GetAgentHealth() const{ return m_agentHealth; } /** *

The health status of the Amazon Inspector Agent.

*/ inline bool AgentHealthHasBeenSet() const { return m_agentHealthHasBeenSet; } /** *

The health status of the Amazon Inspector Agent.

*/ inline void SetAgentHealth(const AgentHealth& value) { m_agentHealthHasBeenSet = true; m_agentHealth = value; } /** *

The health status of the Amazon Inspector Agent.

*/ inline void SetAgentHealth(AgentHealth&& value) { m_agentHealthHasBeenSet = true; m_agentHealth = std::move(value); } /** *

The health status of the Amazon Inspector Agent.

*/ inline AgentPreview& WithAgentHealth(const AgentHealth& value) { SetAgentHealth(value); return *this;} /** *

The health status of the Amazon Inspector Agent.

*/ inline AgentPreview& WithAgentHealth(AgentHealth&& value) { SetAgentHealth(std::move(value)); return *this;} /** *

The version of the Amazon Inspector Agent.

*/ inline const Aws::String& GetAgentVersion() const{ return m_agentVersion; } /** *

The version of the Amazon Inspector Agent.

*/ inline bool AgentVersionHasBeenSet() const { return m_agentVersionHasBeenSet; } /** *

The version of the Amazon Inspector Agent.

*/ inline void SetAgentVersion(const Aws::String& value) { m_agentVersionHasBeenSet = true; m_agentVersion = value; } /** *

The version of the Amazon Inspector Agent.

*/ inline void SetAgentVersion(Aws::String&& value) { m_agentVersionHasBeenSet = true; m_agentVersion = std::move(value); } /** *

The version of the Amazon Inspector Agent.

*/ inline void SetAgentVersion(const char* value) { m_agentVersionHasBeenSet = true; m_agentVersion.assign(value); } /** *

The version of the Amazon Inspector Agent.

*/ inline AgentPreview& WithAgentVersion(const Aws::String& value) { SetAgentVersion(value); return *this;} /** *

The version of the Amazon Inspector Agent.

*/ inline AgentPreview& WithAgentVersion(Aws::String&& value) { SetAgentVersion(std::move(value)); return *this;} /** *

The version of the Amazon Inspector Agent.

*/ inline AgentPreview& WithAgentVersion(const char* value) { SetAgentVersion(value); return *this;} /** *

The operating system running on the EC2 instance on which the Amazon * Inspector Agent is installed.

*/ inline const Aws::String& GetOperatingSystem() const{ return m_operatingSystem; } /** *

The operating system running on the EC2 instance on which the Amazon * Inspector Agent is installed.

*/ inline bool OperatingSystemHasBeenSet() const { return m_operatingSystemHasBeenSet; } /** *

The operating system running on the EC2 instance on which the Amazon * Inspector Agent is installed.

*/ inline void SetOperatingSystem(const Aws::String& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = value; } /** *

The operating system running on the EC2 instance on which the Amazon * Inspector Agent is installed.

*/ inline void SetOperatingSystem(Aws::String&& value) { m_operatingSystemHasBeenSet = true; m_operatingSystem = std::move(value); } /** *

The operating system running on the EC2 instance on which the Amazon * Inspector Agent is installed.

*/ inline void SetOperatingSystem(const char* value) { m_operatingSystemHasBeenSet = true; m_operatingSystem.assign(value); } /** *

The operating system running on the EC2 instance on which the Amazon * Inspector Agent is installed.

*/ inline AgentPreview& WithOperatingSystem(const Aws::String& value) { SetOperatingSystem(value); return *this;} /** *

The operating system running on the EC2 instance on which the Amazon * Inspector Agent is installed.

*/ inline AgentPreview& WithOperatingSystem(Aws::String&& value) { SetOperatingSystem(std::move(value)); return *this;} /** *

The operating system running on the EC2 instance on which the Amazon * Inspector Agent is installed.

*/ inline AgentPreview& WithOperatingSystem(const char* value) { SetOperatingSystem(value); return *this;} /** *

The kernel version of the operating system running on the EC2 instance on * which the Amazon Inspector Agent is installed.

*/ inline const Aws::String& GetKernelVersion() const{ return m_kernelVersion; } /** *

The kernel version of the operating system running on the EC2 instance on * which the Amazon Inspector Agent is installed.

*/ inline bool KernelVersionHasBeenSet() const { return m_kernelVersionHasBeenSet; } /** *

The kernel version of the operating system running on the EC2 instance on * which the Amazon Inspector Agent is installed.

*/ inline void SetKernelVersion(const Aws::String& value) { m_kernelVersionHasBeenSet = true; m_kernelVersion = value; } /** *

The kernel version of the operating system running on the EC2 instance on * which the Amazon Inspector Agent is installed.

*/ inline void SetKernelVersion(Aws::String&& value) { m_kernelVersionHasBeenSet = true; m_kernelVersion = std::move(value); } /** *

The kernel version of the operating system running on the EC2 instance on * which the Amazon Inspector Agent is installed.

*/ inline void SetKernelVersion(const char* value) { m_kernelVersionHasBeenSet = true; m_kernelVersion.assign(value); } /** *

The kernel version of the operating system running on the EC2 instance on * which the Amazon Inspector Agent is installed.

*/ inline AgentPreview& WithKernelVersion(const Aws::String& value) { SetKernelVersion(value); return *this;} /** *

The kernel version of the operating system running on the EC2 instance on * which the Amazon Inspector Agent is installed.

*/ inline AgentPreview& WithKernelVersion(Aws::String&& value) { SetKernelVersion(std::move(value)); return *this;} /** *

The kernel version of the operating system running on the EC2 instance on * which the Amazon Inspector Agent is installed.

*/ inline AgentPreview& WithKernelVersion(const char* value) { SetKernelVersion(value); return *this;} /** *

The IP address of the EC2 instance on which the Amazon Inspector Agent is * installed.

*/ inline const Aws::String& GetIpv4Address() const{ return m_ipv4Address; } /** *

The IP address of the EC2 instance on which the Amazon Inspector Agent is * installed.

*/ inline bool Ipv4AddressHasBeenSet() const { return m_ipv4AddressHasBeenSet; } /** *

The IP address of the EC2 instance on which the Amazon Inspector Agent is * installed.

*/ inline void SetIpv4Address(const Aws::String& value) { m_ipv4AddressHasBeenSet = true; m_ipv4Address = value; } /** *

The IP address of the EC2 instance on which the Amazon Inspector Agent is * installed.

*/ inline void SetIpv4Address(Aws::String&& value) { m_ipv4AddressHasBeenSet = true; m_ipv4Address = std::move(value); } /** *

The IP address of the EC2 instance on which the Amazon Inspector Agent is * installed.

*/ inline void SetIpv4Address(const char* value) { m_ipv4AddressHasBeenSet = true; m_ipv4Address.assign(value); } /** *

The IP address of the EC2 instance on which the Amazon Inspector Agent is * installed.

*/ inline AgentPreview& WithIpv4Address(const Aws::String& value) { SetIpv4Address(value); return *this;} /** *

The IP address of the EC2 instance on which the Amazon Inspector Agent is * installed.

*/ inline AgentPreview& WithIpv4Address(Aws::String&& value) { SetIpv4Address(std::move(value)); return *this;} /** *

The IP address of the EC2 instance on which the Amazon Inspector Agent is * installed.

*/ inline AgentPreview& WithIpv4Address(const char* value) { SetIpv4Address(value); return *this;} private: Aws::String m_hostname; bool m_hostnameHasBeenSet; Aws::String m_agentId; bool m_agentIdHasBeenSet; Aws::String m_autoScalingGroup; bool m_autoScalingGroupHasBeenSet; AgentHealth m_agentHealth; bool m_agentHealthHasBeenSet; Aws::String m_agentVersion; bool m_agentVersionHasBeenSet; Aws::String m_operatingSystem; bool m_operatingSystemHasBeenSet; Aws::String m_kernelVersion; bool m_kernelVersionHasBeenSet; Aws::String m_ipv4Address; bool m_ipv4AddressHasBeenSet; }; } // namespace Model } // namespace Inspector } // namespace Aws