AWS SDK for C++  1.9.104
AWS SDK for C++
SecurityGroup.h
Go to the documentation of this file.
1 
6 #pragma once
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 
33  {
34  public:
39 
40 
44  inline const Aws::String& GetGroupId() const{ return m_groupId; }
45 
49  inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
50 
54  inline void SetGroupId(const Aws::String& value) { m_groupIdHasBeenSet = true; m_groupId = value; }
55 
59  inline void SetGroupId(Aws::String&& value) { m_groupIdHasBeenSet = true; m_groupId = std::move(value); }
60 
64  inline void SetGroupId(const char* value) { m_groupIdHasBeenSet = true; m_groupId.assign(value); }
65 
69  inline SecurityGroup& WithGroupId(const Aws::String& value) { SetGroupId(value); return *this;}
70 
74  inline SecurityGroup& WithGroupId(Aws::String&& value) { SetGroupId(std::move(value)); return *this;}
75 
79  inline SecurityGroup& WithGroupId(const char* value) { SetGroupId(value); return *this;}
80 
81 
85  inline const Aws::String& GetGroupName() const{ return m_groupName; }
86 
90  inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
91 
95  inline void SetGroupName(const Aws::String& value) { m_groupNameHasBeenSet = true; m_groupName = value; }
96 
100  inline void SetGroupName(Aws::String&& value) { m_groupNameHasBeenSet = true; m_groupName = std::move(value); }
101 
105  inline void SetGroupName(const char* value) { m_groupNameHasBeenSet = true; m_groupName.assign(value); }
106 
110  inline SecurityGroup& WithGroupName(const Aws::String& value) { SetGroupName(value); return *this;}
111 
115  inline SecurityGroup& WithGroupName(Aws::String&& value) { SetGroupName(std::move(value)); return *this;}
116 
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
Aws::GuardDuty::Model::SecurityGroup::WithGroupName
SecurityGroup & WithGroupName(const Aws::String &value)
Definition: SecurityGroup.h:110
Aws::GuardDuty::Model::SecurityGroup::SecurityGroup
SecurityGroup()
Aws::GuardDuty::Model::SecurityGroup::WithGroupName
SecurityGroup & WithGroupName(const char *value)
Definition: SecurityGroup.h:120
Aws::GuardDuty::Model::SecurityGroup::SetGroupId
void SetGroupId(const char *value)
Definition: SecurityGroup.h:64
Aws::GuardDuty::Model::SecurityGroup::WithGroupName
SecurityGroup & WithGroupName(Aws::String &&value)
Definition: SecurityGroup.h:115
Aws::GuardDuty::Model::SecurityGroup::Jsonize
Aws::Utils::Json::JsonValue Jsonize() const
Aws::GuardDuty::Model::SecurityGroup::SetGroupId
void SetGroupId(const Aws::String &value)
Definition: SecurityGroup.h:54
Aws::GuardDuty::Model::SecurityGroup::WithGroupId
SecurityGroup & WithGroupId(const Aws::String &value)
Definition: SecurityGroup.h:69
Aws::GuardDuty::Model::SecurityGroup::WithGroupId
SecurityGroup & WithGroupId(Aws::String &&value)
Definition: SecurityGroup.h:74
Aws::GuardDuty::Model::SecurityGroup::SetGroupName
void SetGroupName(Aws::String &&value)
Definition: SecurityGroup.h:100
Aws::GuardDuty::Model::SecurityGroup::GetGroupId
const Aws::String & GetGroupId() const
Definition: SecurityGroup.h:44
GuardDuty_EXPORTS.h
Aws::GuardDuty::Model::SecurityGroup::operator=
SecurityGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_GUARDDUTY_API
#define AWS_GUARDDUTY_API
Definition: GuardDuty_EXPORTS.h:28
Aws::GuardDuty::Model::SecurityGroup::GroupIdHasBeenSet
bool GroupIdHasBeenSet() const
Definition: SecurityGroup.h:49
Aws::GuardDuty::Model::SecurityGroup::SetGroupName
void SetGroupName(const char *value)
Definition: SecurityGroup.h:105
Aws::Utils::Json::JsonView
Definition: JsonSerializer.h:235
AWSString.h
Aws::GuardDuty::Model::SecurityGroup::WithGroupId
SecurityGroup & WithGroupId(const char *value)
Definition: SecurityGroup.h:79
Aws::Utils::Json::JsonValue
Definition: JsonSerializer.h:33
Aws::GuardDuty::Model::SecurityGroup
Definition: SecurityGroup.h:33
Aws::GuardDuty::Model::SecurityGroup::GetGroupName
const Aws::String & GetGroupName() const
Definition: SecurityGroup.h:85
Aws
Definition: AccessManagementClient.h:15
Aws::GuardDuty::Model::SecurityGroup::SecurityGroup
SecurityGroup(Aws::Utils::Json::JsonView jsonValue)
Aws::String
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Definition: AWSString.h:97
Aws::GuardDuty::Model::SecurityGroup::SetGroupId
void SetGroupId(Aws::String &&value)
Definition: SecurityGroup.h:59
Aws::GuardDuty::Model::SecurityGroup::SetGroupName
void SetGroupName(const Aws::String &value)
Definition: SecurityGroup.h:95
Aws::GuardDuty::Model::SecurityGroup::GroupNameHasBeenSet
bool GroupNameHasBeenSet() const
Definition: SecurityGroup.h:90