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

Contains information about a security group associated with a network * interface. This data type is used as one of the elements of the * NetworkInterface data type.

See Also:

AWS * API Reference

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

The name of the security group.

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

The name of the security group.

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

The name of the security group.

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

The name of the security group.

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

The name of the security group.

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

The name of the security group.

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

The name of the security group.

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

The name of the security group.

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

The ID of the security group.

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

The ID of the security group.

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

The ID of the security group.

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

The ID of the security group.

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

The ID of the security group.

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

The ID of the security group.

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

The ID of the security group.

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

The ID of the security group.

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