AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
FirewallConfig.h
1
6#pragma once
7#include <aws/route53resolver/Route53Resolver_EXPORTS.h>
8#include <aws/core/utils/memory/stl/AWSString.h>
9#include <aws/route53resolver/model/FirewallFailOpenStatus.h>
10#include <utility>
11
12namespace Aws
13{
14namespace Utils
15{
16namespace Json
17{
18 class JsonValue;
19 class JsonView;
20} // namespace Json
21} // namespace Utils
22namespace Route53Resolver
23{
24namespace Model
25{
26
35 {
36 public:
37 AWS_ROUTE53RESOLVER_API FirewallConfig();
38 AWS_ROUTE53RESOLVER_API FirewallConfig(Aws::Utils::Json::JsonView jsonValue);
39 AWS_ROUTE53RESOLVER_API FirewallConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
40 AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const;
41
42
44
47 inline const Aws::String& GetId() const{ return m_id; }
48 inline bool IdHasBeenSet() const { return m_idHasBeenSet; }
49 inline void SetId(const Aws::String& value) { m_idHasBeenSet = true; m_id = value; }
50 inline void SetId(Aws::String&& value) { m_idHasBeenSet = true; m_id = std::move(value); }
51 inline void SetId(const char* value) { m_idHasBeenSet = true; m_id.assign(value); }
52 inline FirewallConfig& WithId(const Aws::String& value) { SetId(value); return *this;}
53 inline FirewallConfig& WithId(Aws::String&& value) { SetId(std::move(value)); return *this;}
54 inline FirewallConfig& WithId(const char* value) { SetId(value); return *this;}
56
58
61 inline const Aws::String& GetResourceId() const{ return m_resourceId; }
62 inline bool ResourceIdHasBeenSet() const { return m_resourceIdHasBeenSet; }
63 inline void SetResourceId(const Aws::String& value) { m_resourceIdHasBeenSet = true; m_resourceId = value; }
64 inline void SetResourceId(Aws::String&& value) { m_resourceIdHasBeenSet = true; m_resourceId = std::move(value); }
65 inline void SetResourceId(const char* value) { m_resourceIdHasBeenSet = true; m_resourceId.assign(value); }
66 inline FirewallConfig& WithResourceId(const Aws::String& value) { SetResourceId(value); return *this;}
67 inline FirewallConfig& WithResourceId(Aws::String&& value) { SetResourceId(std::move(value)); return *this;}
68 inline FirewallConfig& WithResourceId(const char* value) { SetResourceId(value); return *this;}
70
72
76 inline const Aws::String& GetOwnerId() const{ return m_ownerId; }
77 inline bool OwnerIdHasBeenSet() const { return m_ownerIdHasBeenSet; }
78 inline void SetOwnerId(const Aws::String& value) { m_ownerIdHasBeenSet = true; m_ownerId = value; }
79 inline void SetOwnerId(Aws::String&& value) { m_ownerIdHasBeenSet = true; m_ownerId = std::move(value); }
80 inline void SetOwnerId(const char* value) { m_ownerIdHasBeenSet = true; m_ownerId.assign(value); }
81 inline FirewallConfig& WithOwnerId(const Aws::String& value) { SetOwnerId(value); return *this;}
82 inline FirewallConfig& WithOwnerId(Aws::String&& value) { SetOwnerId(std::move(value)); return *this;}
83 inline FirewallConfig& WithOwnerId(const char* value) { SetOwnerId(value); return *this;}
85
87
98 inline const FirewallFailOpenStatus& GetFirewallFailOpen() const{ return m_firewallFailOpen; }
99 inline bool FirewallFailOpenHasBeenSet() const { return m_firewallFailOpenHasBeenSet; }
100 inline void SetFirewallFailOpen(const FirewallFailOpenStatus& value) { m_firewallFailOpenHasBeenSet = true; m_firewallFailOpen = value; }
101 inline void SetFirewallFailOpen(FirewallFailOpenStatus&& value) { m_firewallFailOpenHasBeenSet = true; m_firewallFailOpen = std::move(value); }
103 inline FirewallConfig& WithFirewallFailOpen(FirewallFailOpenStatus&& value) { SetFirewallFailOpen(std::move(value)); return *this;}
105 private:
106
107 Aws::String m_id;
108 bool m_idHasBeenSet = false;
109
110 Aws::String m_resourceId;
111 bool m_resourceIdHasBeenSet = false;
112
113 Aws::String m_ownerId;
114 bool m_ownerIdHasBeenSet = false;
115
116 FirewallFailOpenStatus m_firewallFailOpen;
117 bool m_firewallFailOpenHasBeenSet = false;
118 };
119
120} // namespace Model
121} // namespace Route53Resolver
122} // namespace Aws
FirewallConfig & WithOwnerId(const Aws::String &value)
AWS_ROUTE53RESOLVER_API FirewallConfig(Aws::Utils::Json::JsonView jsonValue)
FirewallConfig & WithOwnerId(const char *value)
void SetFirewallFailOpen(FirewallFailOpenStatus &&value)
FirewallConfig & WithId(const char *value)
AWS_ROUTE53RESOLVER_API FirewallConfig()
FirewallConfig & WithOwnerId(Aws::String &&value)
AWS_ROUTE53RESOLVER_API FirewallConfig & operator=(Aws::Utils::Json::JsonView jsonValue)
void SetOwnerId(const Aws::String &value)
FirewallConfig & WithResourceId(const char *value)
void SetId(const Aws::String &value)
const FirewallFailOpenStatus & GetFirewallFailOpen() const
AWS_ROUTE53RESOLVER_API Aws::Utils::Json::JsonValue Jsonize() const
void SetResourceId(const Aws::String &value)
FirewallConfig & WithResourceId(Aws::String &&value)
const Aws::String & GetResourceId() const
FirewallConfig & WithId(const Aws::String &value)
FirewallConfig & WithFirewallFailOpen(const FirewallFailOpenStatus &value)
FirewallConfig & WithId(Aws::String &&value)
void SetFirewallFailOpen(const FirewallFailOpenStatus &value)
FirewallConfig & WithFirewallFailOpen(FirewallFailOpenStatus &&value)
FirewallConfig & WithResourceId(const Aws::String &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue