AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
AwsSnsTopicSubscription.h
1
6#pragma once
7#include <aws/securityhub/SecurityHub_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 SecurityHub
22{
23namespace Model
24{
25
33 {
34 public:
35 AWS_SECURITYHUB_API AwsSnsTopicSubscription();
38 AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const;
39
40
42
45 inline const Aws::String& GetEndpoint() const{ return m_endpoint; }
46 inline bool EndpointHasBeenSet() const { return m_endpointHasBeenSet; }
47 inline void SetEndpoint(const Aws::String& value) { m_endpointHasBeenSet = true; m_endpoint = value; }
48 inline void SetEndpoint(Aws::String&& value) { m_endpointHasBeenSet = true; m_endpoint = std::move(value); }
49 inline void SetEndpoint(const char* value) { m_endpointHasBeenSet = true; m_endpoint.assign(value); }
50 inline AwsSnsTopicSubscription& WithEndpoint(const Aws::String& value) { SetEndpoint(value); return *this;}
51 inline AwsSnsTopicSubscription& WithEndpoint(Aws::String&& value) { SetEndpoint(std::move(value)); return *this;}
52 inline AwsSnsTopicSubscription& WithEndpoint(const char* value) { SetEndpoint(value); return *this;}
54
56
59 inline const Aws::String& GetProtocol() const{ return m_protocol; }
60 inline bool ProtocolHasBeenSet() const { return m_protocolHasBeenSet; }
61 inline void SetProtocol(const Aws::String& value) { m_protocolHasBeenSet = true; m_protocol = value; }
62 inline void SetProtocol(Aws::String&& value) { m_protocolHasBeenSet = true; m_protocol = std::move(value); }
63 inline void SetProtocol(const char* value) { m_protocolHasBeenSet = true; m_protocol.assign(value); }
64 inline AwsSnsTopicSubscription& WithProtocol(const Aws::String& value) { SetProtocol(value); return *this;}
65 inline AwsSnsTopicSubscription& WithProtocol(Aws::String&& value) { SetProtocol(std::move(value)); return *this;}
66 inline AwsSnsTopicSubscription& WithProtocol(const char* value) { SetProtocol(value); return *this;}
68 private:
69
70 Aws::String m_endpoint;
71 bool m_endpointHasBeenSet = false;
72
73 Aws::String m_protocol;
74 bool m_protocolHasBeenSet = false;
75 };
76
77} // namespace Model
78} // namespace SecurityHub
79} // namespace Aws
AwsSnsTopicSubscription & WithEndpoint(Aws::String &&value)
AwsSnsTopicSubscription & WithProtocol(const char *value)
AwsSnsTopicSubscription & WithProtocol(Aws::String &&value)
AwsSnsTopicSubscription & WithEndpoint(const char *value)
AWS_SECURITYHUB_API AwsSnsTopicSubscription & operator=(Aws::Utils::Json::JsonView jsonValue)
AWS_SECURITYHUB_API Aws::Utils::Json::JsonValue Jsonize() const
AwsSnsTopicSubscription & WithEndpoint(const Aws::String &value)
AwsSnsTopicSubscription & WithProtocol(const Aws::String &value)
AWS_SECURITYHUB_API AwsSnsTopicSubscription(Aws::Utils::Json::JsonView jsonValue)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
Aws::Utils::Json::JsonValue JsonValue