AWS SDK for C++

AWS SDK for C++ Version 1.11.943

Loading...
Searching...
No Matches
IpRuleItem.h
1
6#pragma once
7#include <aws/core/utils/memory/stl/AWSString.h>
8#include <aws/crt/cbor/Cbor.h>
9#include <aws/workspaces/WorkSpaces_EXPORTS.h>
10
11#include <utility>
12
13namespace Aws {
14namespace Utils {
15namespace Cbor {
16class CborValue;
17} // namespace Cbor
18} // namespace Utils
19namespace WorkSpaces {
20namespace Model {
21
29 public:
30 AWS_WORKSPACES_API IpRuleItem() = default;
31 AWS_WORKSPACES_API IpRuleItem(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
32 AWS_WORKSPACES_API IpRuleItem& operator=(const std::shared_ptr<Aws::Crt::Cbor::CborDecoder>& decoder);
33 AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder& encoder) const;
34
36
39 inline const Aws::String& GetIpRule() const { return m_ipRule; }
40 inline bool IpRuleHasBeenSet() const { return m_ipRuleHasBeenSet; }
41 template <typename IpRuleT = Aws::String>
42 void SetIpRule(IpRuleT&& value) {
43 m_ipRuleHasBeenSet = true;
44 m_ipRule = std::forward<IpRuleT>(value);
45 }
46 template <typename IpRuleT = Aws::String>
47 IpRuleItem& WithIpRule(IpRuleT&& value) {
48 SetIpRule(std::forward<IpRuleT>(value));
49 return *this;
50 }
52
54
57 inline const Aws::String& GetRuleDesc() const { return m_ruleDesc; }
58 inline bool RuleDescHasBeenSet() const { return m_ruleDescHasBeenSet; }
59 template <typename RuleDescT = Aws::String>
60 void SetRuleDesc(RuleDescT&& value) {
61 m_ruleDescHasBeenSet = true;
62 m_ruleDesc = std::forward<RuleDescT>(value);
63 }
64 template <typename RuleDescT = Aws::String>
65 IpRuleItem& WithRuleDesc(RuleDescT&& value) {
66 SetRuleDesc(std::forward<RuleDescT>(value));
67 return *this;
68 }
70 private:
71 Aws::String m_ipRule;
72
73 Aws::String m_ruleDesc;
74 bool m_ipRuleHasBeenSet = false;
75 bool m_ruleDescHasBeenSet = false;
76};
77
78} // namespace Model
79} // namespace WorkSpaces
80} // namespace Aws
void SetRuleDesc(RuleDescT &&value)
Definition IpRuleItem.h:60
void SetIpRule(IpRuleT &&value)
Definition IpRuleItem.h:42
IpRuleItem & WithRuleDesc(RuleDescT &&value)
Definition IpRuleItem.h:65
IpRuleItem & WithIpRule(IpRuleT &&value)
Definition IpRuleItem.h:47
const Aws::String & GetRuleDesc() const
Definition IpRuleItem.h:57
AWS_WORKSPACES_API IpRuleItem & operator=(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
const Aws::String & GetIpRule() const
Definition IpRuleItem.h:39
AWS_WORKSPACES_API void CborEncode(Aws::Crt::Cbor::CborEncoder &encoder) const
AWS_WORKSPACES_API IpRuleItem(const std::shared_ptr< Aws::Crt::Cbor::CborDecoder > &decoder)
AWS_WORKSPACES_API IpRuleItem()=default
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String