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

Contains information about the security groups associated with the EC2 * instance.

See Also:

AWS * API Reference

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

The security group ID of the EC2 instance.

*/ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** *

The security group ID of the EC2 instance.

*/ inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } /** *

The security group ID of the EC2 instance.

*/ inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } /** *

The security group ID of the EC2 instance.

*/ inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } /** *

The security group ID of the EC2 instance.

*/ inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } /** *

The security group ID of the EC2 instance.

*/ inline SecurityGroup& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** *

The security group ID of the EC2 instance.

*/ inline SecurityGroup& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** *

The security group ID of the EC2 instance.

*/ inline SecurityGroup& WithGroupId(const char* value) { SetGroupId(value); return *this;} /** *

The security group name of the EC2 instance.

*/ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** *

The security group name of the EC2 instance.

*/ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** *

The security group name of the EC2 instance.

*/ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** *

The security group name of the EC2 instance.

*/ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** *

The security group name of the EC2 instance.

*/ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** *

The security group name of the EC2 instance.

*/ inline SecurityGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** *

The security group name of the EC2 instance.

*/ inline SecurityGroup& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** *

The security group name of the EC2 instance.

*/ inline SecurityGroup& WithGroupName(const char* value) { SetGroupName(value); return *this;} private: Aws::String m_groupId; bool m_groupIdHasBeenSet = false; Aws::String m_groupName; bool m_groupNameHasBeenSet = false; }; } // namespace Model } // namespace GuardDuty } // namespace Aws