1 /** 2 * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. 3 * SPDX-License-Identifier: Apache-2.0. 4 */ 5 6 #pragma once 7 #include <aws/guardduty/GuardDuty_EXPORTS.h> 8 #include <aws/core/utils/memory/stl/AWSString.h> 9 #include <utility> 10 11 namespace Aws 12 { 13 namespace Utils 14 { 15 namespace Json 16 { 17 class JsonValue; 18 class JsonView; 19 } // namespace Json 20 } // namespace Utils 21 namespace GuardDuty 22 { 23 namespace Model 24 { 25 26 /** 27 * <p>Contains information about the security groups associated with the EC2 28 * instance.</p><p><h3>See Also:</h3> <a 29 * href="http://docs.aws.amazon.com/goto/WebAPI/guardduty-2017-11-28/SecurityGroup">AWS 30 * API Reference</a></p> 31 */ 32 class AWS_GUARDDUTY_API SecurityGroup 33 { 34 public: 35 SecurityGroup(); 36 SecurityGroup(Aws::Utils::Json::JsonView jsonValue); 37 SecurityGroup& operator=(Aws::Utils::Json::JsonView jsonValue); 38 Aws::Utils::Json::JsonValue Jsonize() const; 39 40 41 /** 42 * <p>The security group ID of the EC2 instance.</p> 43 */ GetGroupId()44 inline const Aws::String& GetGroupId() const{ return m_groupId; } 45 46 /** 47 * <p>The security group ID of the EC2 instance.</p> 48 */ GroupIdHasBeenSet()49 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; } 50 51 /** 52 * <p>The security group ID of the EC2 instance.</p> 53 */ SetGroupId(const Aws::String & value)54 inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; } 55 56 /** 57 * <p>The security group ID of the EC2 instance.</p> 58 */ SetGroupId(Aws::String && value)59 inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); } 60 61 /** 62 * <p>The security group ID of the EC2 instance.</p> 63 */ SetGroupId(const char * value)64 inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); } 65 66 /** 67 * <p>The security group ID of the EC2 instance.</p> 68 */ WithGroupId(const Aws::String & value)69 inline SecurityGroup& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;} 70 71 /** 72 * <p>The security group ID of the EC2 instance.</p> 73 */ WithGroupId(Aws::String && value)74 inline SecurityGroup& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;} 75 76 /** 77 * <p>The security group ID of the EC2 instance.</p> 78 */ WithGroupId(const char * value)79 inline SecurityGroup& WithGroupId(const char* value) { SetGroupId(value); return *this;} 80 81 82 /** 83 * <p>The security group name of the EC2 instance.</p> 84 */ GetGroupName()85 inline const Aws::String& GetGroupName() const{ return m_groupName; } 86 87 /** 88 * <p>The security group name of the EC2 instance.</p> 89 */ GroupNameHasBeenSet()90 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; } 91 92 /** 93 * <p>The security group name of the EC2 instance.</p> 94 */ SetGroupName(const Aws::String & value)95 inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; } 96 97 /** 98 * <p>The security group name of the EC2 instance.</p> 99 */ SetGroupName(Aws::String && value)100 inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); } 101 102 /** 103 * <p>The security group name of the EC2 instance.</p> 104 */ SetGroupName(const char * value)105 inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); } 106 107 /** 108 * <p>The security group name of the EC2 instance.</p> 109 */ WithGroupName(const Aws::String & value)110 inline SecurityGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;} 111 112 /** 113 * <p>The security group name of the EC2 instance.</p> 114 */ WithGroupName(Aws::String && value)115 inline SecurityGroup& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;} 116 117 /** 118 * <p>The security group name of the EC2 instance.</p> 119 */ WithGroupName(const char * value)120 inline SecurityGroup& WithGroupName(const char* value) { SetGroupName(value); return *this;} 121 122 private: 123 124 Aws::String m_groupId; 125 bool m_groupIdHasBeenSet; 126 127 Aws::String m_groupName; 128 bool m_groupNameHasBeenSet; 129 }; 130 131 } // namespace Model 132 } // namespace GuardDuty 133 } // namespace Aws 134