AWS SDK for C++

AWS SDK for C++ Version 1.11.744

Loading...
Searching...
No Matches
SecurityGroup.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/inspector/Inspector_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace Inspector {
20namespace Model {
21
30 public:
31 AWS_INSPECTOR_API SecurityGroup() = default;
32 AWS_INSPECTOR_API SecurityGroup(Aws::Utils::Json::JsonView jsonValue);
33 AWS_INSPECTOR_API SecurityGroup& operator=(Aws::Utils::Json::JsonView jsonValue);
34 AWS_INSPECTOR_API Aws::Utils::Json::JsonValue Jsonize() const;
35
37
40 inline const Aws::String& GetGroupName() const { return m_groupName; }
41 inline bool GroupNameHasBeenSet() const { return m_groupNameHasBeenSet; }
42 template <typename GroupNameT = Aws::String>
43 void SetGroupName(GroupNameT&& value) {
44 m_groupNameHasBeenSet = true;
45 m_groupName = std::forward<GroupNameT>(value);
46 }
47 template <typename GroupNameT = Aws::String>
48 SecurityGroup& WithGroupName(GroupNameT&& value) {
49 SetGroupName(std::forward<GroupNameT>(value));
50 return *this;
51 }
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) {
62 m_groupIdHasBeenSet = true;
63 m_groupId = std::forward<GroupIdT>(value);
64 }
65 template <typename GroupIdT = Aws::String>
66 SecurityGroup& WithGroupId(GroupIdT&& value) {
67 SetGroupId(std::forward<GroupIdT>(value));
68 return *this;
69 }
71 private:
72 Aws::String m_groupName;
73
74 Aws::String m_groupId;
75 bool m_groupNameHasBeenSet = false;
76 bool m_groupIdHasBeenSet = false;
77};
78
79} // namespace Model
80} // namespace Inspector
81} // 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