AWS SDK for C++

AWS SDK for C++ Version 1.11.607

Loading...
Searching...
No Matches
SecurityGroup.h
1
6#pragma once
7#include <aws/inspector/Inspector_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <utility>
10
11namespace Aws
12{
13namespace Utils
14{
15namespace Json
16{
17 class JsonValue;
18 class JsonView;
19} // namespace Json
20} // namespace Utils
21namespace Inspector
22{
23namespace Model
24{
25
34 {
35 public:
36 AWS_INSPECTOR_API SecurityGroup() = default;
37 AWS_INSPECTOR_API SecurityGroup(Aws::Utils::Json::JsonView jsonValue);
38 AWS_INSPECTOR_API SecurityGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
39 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
40
41
43
46 inline const Aws::String& GetGroupName() const { return m_groupName; }
47 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
48 template<typename GroupNameT = Aws::String>
49 void SetGroupName(GroupNameT&& value) { m_groupNameHasBeenSet = true; m_groupName = std::forward<GroupNameT>(value); }
50 template<typename GroupNameT = Aws::String>
51 SecurityGroup& WithGroupName(GroupNameT&& value) { SetGroupName(std::forward<GroupNameT>(value)); return *this;}
53
55
58 inline const Aws::String& GetGroupId() const { return m_groupId; }
59 inline bool GroupIdHasBeenSet() const { return m_groupIdHasBeenSet; }
60 template<typename GroupIdT = Aws::String>
61 void SetGroupId(GroupIdT&& value) { m_groupIdHasBeenSet = true; m_groupId = std::forward<GroupIdT>(value); }
62 template<typename GroupIdT = Aws::String>
63 SecurityGroup& WithGroupId(GroupIdT&& value) { SetGroupId(std::forward<GroupIdT>(value)); return *this;}
65 private:
66
67 Aws::String m_groupName;
68 bool m_groupNameHasBeenSet = false;
69
70 Aws::String m_groupId;
71 bool m_groupIdHasBeenSet = false;
72 };
73
74} // namespace Model
75} // namespace Inspector
76} // namespace Aws
void SetGroupId(GroupIdT &&value)
void SetGroupName(GroupNameT &&value)
const Aws::String & GetGroupName() const
SecurityGroup & WithGroupName(GroupNameT &&value)
AWS_INSPECTOR_API SecurityGroup(Aws::Utils::Json::JsonView jsonValue)
AWS_INSPECTOR_API SecurityGroup()=default
AWS_INSPECTOR_API SecurityGroup & operator=(Aws::Utils::Json::JsonView jsonValue)
const Aws::String & GetGroupId() const
SecurityGroup & WithGroupId(GroupIdT &&value)
AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue