AWS SDK for C++

AWS SDK for C++ Version 1.11.440

Loading...
Searching...
No Matches
UpdateSubscriberRequest.h
1
6#pragma once
7#include <aws/securitylake/SecurityLake_EXPORTS.h>
8#include <aws/securitylake/SecurityLakeRequest.h>
9#include <aws/core/utils/memory/stl/AWSVector.h>
10#include <aws/core/utils/memory/stl/AWSString.h>
11#include <aws/securitylake/model/AwsIdentity.h>
12#include <aws/securitylake/model/LogSourceResource.h>
13#include <utility>
14
15namespace Aws
16{
17namespace SecurityLake
18{
19namespace Model
20{
21
25 {
26 public:
27 AWS_SECURITYLAKE_API UpdateSubscriberRequest();
28
29 // Service request name is the Operation name which will send this request out,
30 // each operation should has unique request name, so that we can get operation's name from this request.
31 // Note: this is not true for response, multiple operations may have the same response name,
32 // so we can not get operation's name from response.
33 inline virtual const char* GetServiceRequestName() const override { return "UpdateSubscriber"; }
34
35 AWS_SECURITYLAKE_API Aws::String SerializePayload() const override;
36
37
39
45 inline const Aws::Vector<LogSourceResource>& GetSources() const{ return m_sources; }
46 inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; }
47 inline void SetSources(const Aws::Vector<LogSourceResource>& value) { m_sourcesHasBeenSet = true; m_sources = value; }
48 inline void SetSources(Aws::Vector<LogSourceResource>&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); }
50 inline UpdateSubscriberRequest& WithSources(Aws::Vector<LogSourceResource>&& value) { SetSources(std::move(value)); return *this;}
51 inline UpdateSubscriberRequest& AddSources(const LogSourceResource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; }
52 inline UpdateSubscriberRequest& AddSources(LogSourceResource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; }
54
56
59 inline const Aws::String& GetSubscriberDescription() const{ return m_subscriberDescription; }
60 inline bool SubscriberDescriptionHasBeenSet() const { return m_subscriberDescriptionHasBeenSet; }
61 inline void SetSubscriberDescription(const Aws::String& value) { m_subscriberDescriptionHasBeenSet = true; m_subscriberDescription = value; }
62 inline void SetSubscriberDescription(Aws::String&& value) { m_subscriberDescriptionHasBeenSet = true; m_subscriberDescription = std::move(value); }
63 inline void SetSubscriberDescription(const char* value) { m_subscriberDescriptionHasBeenSet = true; m_subscriberDescription.assign(value); }
66 inline UpdateSubscriberRequest& WithSubscriberDescription(const char* value) { SetSubscriberDescription(value); return *this;}
68
70
74 inline const Aws::String& GetSubscriberId() const{ return m_subscriberId; }
75 inline bool SubscriberIdHasBeenSet() const { return m_subscriberIdHasBeenSet; }
76 inline void SetSubscriberId(const Aws::String& value) { m_subscriberIdHasBeenSet = true; m_subscriberId = value; }
77 inline void SetSubscriberId(Aws::String&& value) { m_subscriberIdHasBeenSet = true; m_subscriberId = std::move(value); }
78 inline void SetSubscriberId(const char* value) { m_subscriberIdHasBeenSet = true; m_subscriberId.assign(value); }
79 inline UpdateSubscriberRequest& WithSubscriberId(const Aws::String& value) { SetSubscriberId(value); return *this;}
80 inline UpdateSubscriberRequest& WithSubscriberId(Aws::String&& value) { SetSubscriberId(std::move(value)); return *this;}
81 inline UpdateSubscriberRequest& WithSubscriberId(const char* value) { SetSubscriberId(value); return *this;}
83
85
88 inline const AwsIdentity& GetSubscriberIdentity() const{ return m_subscriberIdentity; }
89 inline bool SubscriberIdentityHasBeenSet() const { return m_subscriberIdentityHasBeenSet; }
90 inline void SetSubscriberIdentity(const AwsIdentity& value) { m_subscriberIdentityHasBeenSet = true; m_subscriberIdentity = value; }
91 inline void SetSubscriberIdentity(AwsIdentity&& value) { m_subscriberIdentityHasBeenSet = true; m_subscriberIdentity = std::move(value); }
93 inline UpdateSubscriberRequest& WithSubscriberIdentity(AwsIdentity&& value) { SetSubscriberIdentity(std::move(value)); return *this;}
95
97
100 inline const Aws::String& GetSubscriberName() const{ return m_subscriberName; }
101 inline bool SubscriberNameHasBeenSet() const { return m_subscriberNameHasBeenSet; }
102 inline void SetSubscriberName(const Aws::String& value) { m_subscriberNameHasBeenSet = true; m_subscriberName = value; }
103 inline void SetSubscriberName(Aws::String&& value) { m_subscriberNameHasBeenSet = true; m_subscriberName = std::move(value); }
104 inline void SetSubscriberName(const char* value) { m_subscriberNameHasBeenSet = true; m_subscriberName.assign(value); }
105 inline UpdateSubscriberRequest& WithSubscriberName(const Aws::String& value) { SetSubscriberName(value); return *this;}
106 inline UpdateSubscriberRequest& WithSubscriberName(Aws::String&& value) { SetSubscriberName(std::move(value)); return *this;}
107 inline UpdateSubscriberRequest& WithSubscriberName(const char* value) { SetSubscriberName(value); return *this;}
109 private:
110
112 bool m_sourcesHasBeenSet = false;
113
114 Aws::String m_subscriberDescription;
115 bool m_subscriberDescriptionHasBeenSet = false;
116
117 Aws::String m_subscriberId;
118 bool m_subscriberIdHasBeenSet = false;
119
120 AwsIdentity m_subscriberIdentity;
121 bool m_subscriberIdentityHasBeenSet = false;
122
123 Aws::String m_subscriberName;
124 bool m_subscriberNameHasBeenSet = false;
125 };
126
127} // namespace Model
128} // namespace SecurityLake
129} // namespace Aws
void SetSources(const Aws::Vector< LogSourceResource > &value)
UpdateSubscriberRequest & WithSubscriberDescription(const char *value)
UpdateSubscriberRequest & WithSubscriberName(Aws::String &&value)
UpdateSubscriberRequest & AddSources(LogSourceResource &&value)
const Aws::Vector< LogSourceResource > & GetSources() const
UpdateSubscriberRequest & WithSubscriberId(const char *value)
UpdateSubscriberRequest & WithSources(Aws::Vector< LogSourceResource > &&value)
UpdateSubscriberRequest & AddSources(const LogSourceResource &value)
UpdateSubscriberRequest & WithSubscriberId(Aws::String &&value)
UpdateSubscriberRequest & WithSubscriberDescription(Aws::String &&value)
UpdateSubscriberRequest & WithSubscriberName(const char *value)
AWS_SECURITYLAKE_API Aws::String SerializePayload() const override
UpdateSubscriberRequest & WithSubscriberDescription(const Aws::String &value)
UpdateSubscriberRequest & WithSources(const Aws::Vector< LogSourceResource > &value)
UpdateSubscriberRequest & WithSubscriberIdentity(AwsIdentity &&value)
UpdateSubscriberRequest & WithSubscriberName(const Aws::String &value)
virtual const char * GetServiceRequestName() const override
UpdateSubscriberRequest & WithSubscriberId(const Aws::String &value)
void SetSources(Aws::Vector< LogSourceResource > &&value)
UpdateSubscriberRequest & WithSubscriberIdentity(const AwsIdentity &value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String
std::vector< T, Aws::Allocator< T > > Vector