AWS SDK for C++

AWS SDK for C++ Version 1.11.942

Loading...
Searching...
No Matches
IpRule.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/workspaces-web/WorkSpacesWeb_EXPORTS.h>
9
10#include <utility>
11
12namespace Aws {
13namespace Utils {
14namespace Json {
15class JsonValue;
16class JsonView;
17} // namespace Json
18} // namespace Utils
19namespace WorkSpacesWeb {
20namespace Model {
21
27class IpRule {
28 public:
29 AWS_WORKSPACESWEB_API IpRule() = default;
30 AWS_WORKSPACESWEB_API IpRule(Aws::Utils::Json::JsonView jsonValue);
31 AWS_WORKSPACESWEB_API IpRule& operator=(Aws::Utils::Json::JsonView jsonValue);
32 AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const;
33
35
38 inline const Aws::String& GetIpRange() const { return m_ipRange; }
39 inline bool IpRangeHasBeenSet() const { return m_ipRangeHasBeenSet; }
40 template <typename IpRangeT = Aws::String>
41 void SetIpRange(IpRangeT&& value) {
42 m_ipRangeHasBeenSet = true;
43 m_ipRange = std::forward<IpRangeT>(value);
44 }
45 template <typename IpRangeT = Aws::String>
46 IpRule& WithIpRange(IpRangeT&& value) {
47 SetIpRange(std::forward<IpRangeT>(value));
48 return *this;
49 }
51
53
56 inline const Aws::String& GetDescription() const { return m_description; }
57 inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; }
58 template <typename DescriptionT = Aws::String>
59 void SetDescription(DescriptionT&& value) {
60 m_descriptionHasBeenSet = true;
61 m_description = std::forward<DescriptionT>(value);
62 }
63 template <typename DescriptionT = Aws::String>
64 IpRule& WithDescription(DescriptionT&& value) {
65 SetDescription(std::forward<DescriptionT>(value));
66 return *this;
67 }
69 private:
70 Aws::String m_ipRange;
71
72 Aws::String m_description;
73 bool m_ipRangeHasBeenSet = false;
74 bool m_descriptionHasBeenSet = false;
75};
76
77} // namespace Model
78} // namespace WorkSpacesWeb
79} // namespace Aws
AWS_WORKSPACESWEB_API IpRule()=default
bool DescriptionHasBeenSet() const
Definition IpRule.h:57
const Aws::String & GetIpRange() const
Definition IpRule.h:38
const Aws::String & GetDescription() const
Definition IpRule.h:56
AWS_WORKSPACESWEB_API Aws::Utils::Json::JsonValue Jsonize() const
AWS_WORKSPACESWEB_API IpRule & operator=(Aws::Utils::Json::JsonView jsonValue)
IpRule & WithIpRange(IpRangeT &&value)
Definition IpRule.h:46
IpRule & WithDescription(DescriptionT &&value)
Definition IpRule.h:64
void SetIpRange(IpRangeT &&value)
Definition IpRule.h:41
AWS_WORKSPACESWEB_API IpRule(Aws::Utils::Json::JsonView jsonValue)
void SetDescription(DescriptionT &&value)
Definition IpRule.h:59
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue