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/inspector/Inspector_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 Inspector
22 {
23 namespace Model
24 {
25 
26   /**
27    * <p>Contains information about a security group associated with a network
28    * interface. This data type is used as one of the elements of the
29    * <a>NetworkInterface</a> data type.</p><p><h3>See Also:</h3>   <a
30    * href="http://docs.aws.amazon.com/goto/WebAPI/inspector-2016-02-16/SecurityGroup">AWS
31    * API Reference</a></p>
32    */
33   class AWS_INSPECTOR_API SecurityGroup
34   {
35   public:
36     SecurityGroup();
37     SecurityGroup(Aws::Utils::Json::JsonView jsonValue);
38     SecurityGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
39     Aws::Utils::Json::JsonValue Jsonize() const;
40 
41 
42     /**
43      * <p>The name of the security group.</p>
44      */
GetGroupName()45     inline const Aws::String& GetGroupName() const{ return m_groupName; }
46 
47     /**
48      * <p>The name of the security group.</p>
49      */
GroupNameHasBeenSet()50     inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
51 
52     /**
53      * <p>The name of the security group.</p>
54      */
SetGroupName(const Aws::String & value)55     inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
56 
57     /**
58      * <p>The name of the security group.</p>
59      */
SetGroupName(Aws::String && value)60     inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
61 
62     /**
63      * <p>The name of the security group.</p>
64      */
SetGroupName(const char * value)65     inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
66 
67     /**
68      * <p>The name of the security group.</p>
69      */
WithGroupName(const Aws::String & value)70     inline SecurityGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
71 
72     /**
73      * <p>The name of the security group.</p>
74      */
WithGroupName(Aws::String && value)75     inline SecurityGroup& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
76 
77     /**
78      * <p>The name of the security group.</p>
79      */
WithGroupName(const char * value)80     inline SecurityGroup& WithGroupName(const char* value) { SetGroupName(value); return *this;}
81 
82 
83     /**
84      * <p>The ID of the security group.</p>
85      */
GetGroupId()86     inline const Aws::String& GetGroupId() const{ return m_groupId; }
87 
88     /**
89      * <p>The ID of the security group.</p>
90      */
GroupIdHasBeenSet()91     inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
92 
93     /**
94      * <p>The ID of the security group.</p>
95      */
SetGroupId(const Aws::String & value)96     inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
97 
98     /**
99      * <p>The ID of the security group.</p>
100      */
SetGroupId(Aws::String && value)101     inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
102 
103     /**
104      * <p>The ID of the security group.</p>
105      */
SetGroupId(const char * value)106     inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
107 
108     /**
109      * <p>The ID of the security group.</p>
110      */
WithGroupId(const Aws::String & value)111     inline SecurityGroup& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
112 
113     /**
114      * <p>The ID of the security group.</p>
115      */
WithGroupId(Aws::String && value)116     inline SecurityGroup& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
117 
118     /**
119      * <p>The ID of the security group.</p>
120      */
WithGroupId(const char * value)121     inline SecurityGroup& WithGroupId(const char* value) { SetGroupId(value); return *this;}
122 
123   private:
124 
125     Aws::String m_groupName;
126     bool m_groupNameHasBeenSet;
127 
128     Aws::String m_groupId;
129     bool m_groupIdHasBeenSet;
130   };
131 
132 } // namespace Model
133 } // namespace Inspector
134 } // namespace Aws
135