/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/securityhub/SecurityHub_EXPORTS.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace SecurityHub { namespace Model { /** * <p>A security group associated with the network interface.</p><p><h3>See * Also:</h3> <a * href="http://docs.aws.amazon.com/goto/WebAPI/securityhub-2018-10-26/AwsEc2NetworkInterfaceSecurityGroup">AWS * API Reference</a></p> */ class AwsEc2NetworkInterfaceSecurityGroup { public: AWS_SECURITYHUB_API AwsEc2NetworkInterfaceSecurityGroup(); AWS_SECURITYHUB_API AwsEc2NetworkInterfaceSecurityGroup(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API AwsEc2NetworkInterfaceSecurityGroup& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const; /** * <p>The name of the security group.</p> */ inline const Aws::String& GetGroupName() const{ return m_groupName; } /** * <p>The name of the security group.</p> */ inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } /** * <p>The name of the security group.</p> */ inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } /** * <p>The name of the security group.</p> */ inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } /** * <p>The name of the security group.</p> */ inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } /** * <p>The name of the security group.</p> */ inline AwsEc2NetworkInterfaceSecurityGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} /** * <p>The name of the security group.</p> */ inline AwsEc2NetworkInterfaceSecurityGroup& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} /** * <p>The name of the security group.</p> */ inline AwsEc2NetworkInterfaceSecurityGroup& WithGroupName(const char* value) { SetGroupName(value); return *this;} /** * <p>The ID of the security group.</p> */ inline const Aws::String& GetGroupId() const{ return m_groupId; } /** * <p>The ID of the security group.</p> */ inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } /** * <p>The ID of the security group.</p> */ inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } /** * <p>The ID of the security group.</p> */ inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } /** * <p>The ID of the security group.</p> */ inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } /** * <p>The ID of the security group.</p> */ inline AwsEc2NetworkInterfaceSecurityGroup& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} /** * <p>The ID of the security group.</p> */ inline AwsEc2NetworkInterfaceSecurityGroup& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} /** * <p>The ID of the security group.</p> */ inline AwsEc2NetworkInterfaceSecurityGroup& 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 SecurityHub } // namespace Aws