/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include namespace Aws { namespace SecurityLake { namespace Model { /** */ class UpdateSubscriberRequest : public SecurityLakeRequest { public: AWS_SECURITYLAKE_API UpdateSubscriberRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "UpdateSubscriber"; } AWS_SECURITYLAKE_API Aws::String SerializePayload() const override; /** *

The supported Amazon Web Services from which logs and events are collected. * For the list of supported Amazon Web Services, see the Amazon * Security Lake User Guide.

*/ inline const Aws::Vector& GetSources() const{ return m_sources; } /** *

The supported Amazon Web Services from which logs and events are collected. * For the list of supported Amazon Web Services, see the Amazon * Security Lake User Guide.

*/ inline bool SourcesHasBeenSet() const { return m_sourcesHasBeenSet; } /** *

The supported Amazon Web Services from which logs and events are collected. * For the list of supported Amazon Web Services, see the Amazon * Security Lake User Guide.

*/ inline void SetSources(const Aws::Vector& value) { m_sourcesHasBeenSet = true; m_sources = value; } /** *

The supported Amazon Web Services from which logs and events are collected. * For the list of supported Amazon Web Services, see the Amazon * Security Lake User Guide.

*/ inline void SetSources(Aws::Vector&& value) { m_sourcesHasBeenSet = true; m_sources = std::move(value); } /** *

The supported Amazon Web Services from which logs and events are collected. * For the list of supported Amazon Web Services, see the Amazon * Security Lake User Guide.

*/ inline UpdateSubscriberRequest& WithSources(const Aws::Vector& value) { SetSources(value); return *this;} /** *

The supported Amazon Web Services from which logs and events are collected. * For the list of supported Amazon Web Services, see the Amazon * Security Lake User Guide.

*/ inline UpdateSubscriberRequest& WithSources(Aws::Vector&& value) { SetSources(std::move(value)); return *this;} /** *

The supported Amazon Web Services from which logs and events are collected. * For the list of supported Amazon Web Services, see the Amazon * Security Lake User Guide.

*/ inline UpdateSubscriberRequest& AddSources(const LogSourceResource& value) { m_sourcesHasBeenSet = true; m_sources.push_back(value); return *this; } /** *

The supported Amazon Web Services from which logs and events are collected. * For the list of supported Amazon Web Services, see the Amazon * Security Lake User Guide.

*/ inline UpdateSubscriberRequest& AddSources(LogSourceResource&& value) { m_sourcesHasBeenSet = true; m_sources.push_back(std::move(value)); return *this; } /** *

The description of the Security Lake account subscriber.

*/ inline const Aws::String& GetSubscriberDescription() const{ return m_subscriberDescription; } /** *

The description of the Security Lake account subscriber.

*/ inline bool SubscriberDescriptionHasBeenSet() const { return m_subscriberDescriptionHasBeenSet; } /** *

The description of the Security Lake account subscriber.

*/ inline void SetSubscriberDescription(const Aws::String& value) { m_subscriberDescriptionHasBeenSet = true; m_subscriberDescription = value; } /** *

The description of the Security Lake account subscriber.

*/ inline void SetSubscriberDescription(Aws::String&& value) { m_subscriberDescriptionHasBeenSet = true; m_subscriberDescription = std::move(value); } /** *

The description of the Security Lake account subscriber.

*/ inline void SetSubscriberDescription(const char* value) { m_subscriberDescriptionHasBeenSet = true; m_subscriberDescription.assign(value); } /** *

The description of the Security Lake account subscriber.

*/ inline UpdateSubscriberRequest& WithSubscriberDescription(const Aws::String& value) { SetSubscriberDescription(value); return *this;} /** *

The description of the Security Lake account subscriber.

*/ inline UpdateSubscriberRequest& WithSubscriberDescription(Aws::String&& value) { SetSubscriberDescription(std::move(value)); return *this;} /** *

The description of the Security Lake account subscriber.

*/ inline UpdateSubscriberRequest& WithSubscriberDescription(const char* value) { SetSubscriberDescription(value); return *this;} /** *

A value created by Security Lake that uniquely identifies your * subscription.

*/ inline const Aws::String& GetSubscriberId() const{ return m_subscriberId; } /** *

A value created by Security Lake that uniquely identifies your * subscription.

*/ inline bool SubscriberIdHasBeenSet() const { return m_subscriberIdHasBeenSet; } /** *

A value created by Security Lake that uniquely identifies your * subscription.

*/ inline void SetSubscriberId(const Aws::String& value) { m_subscriberIdHasBeenSet = true; m_subscriberId = value; } /** *

A value created by Security Lake that uniquely identifies your * subscription.

*/ inline void SetSubscriberId(Aws::String&& value) { m_subscriberIdHasBeenSet = true; m_subscriberId = std::move(value); } /** *

A value created by Security Lake that uniquely identifies your * subscription.

*/ inline void SetSubscriberId(const char* value) { m_subscriberIdHasBeenSet = true; m_subscriberId.assign(value); } /** *

A value created by Security Lake that uniquely identifies your * subscription.

*/ inline UpdateSubscriberRequest& WithSubscriberId(const Aws::String& value) { SetSubscriberId(value); return *this;} /** *

A value created by Security Lake that uniquely identifies your * subscription.

*/ inline UpdateSubscriberRequest& WithSubscriberId(Aws::String&& value) { SetSubscriberId(std::move(value)); return *this;} /** *

A value created by Security Lake that uniquely identifies your * subscription.

*/ inline UpdateSubscriberRequest& WithSubscriberId(const char* value) { SetSubscriberId(value); return *this;} /** *

The AWS identity used to access your data.

*/ inline const AwsIdentity& GetSubscriberIdentity() const{ return m_subscriberIdentity; } /** *

The AWS identity used to access your data.

*/ inline bool SubscriberIdentityHasBeenSet() const { return m_subscriberIdentityHasBeenSet; } /** *

The AWS identity used to access your data.

*/ inline void SetSubscriberIdentity(const AwsIdentity& value) { m_subscriberIdentityHasBeenSet = true; m_subscriberIdentity = value; } /** *

The AWS identity used to access your data.

*/ inline void SetSubscriberIdentity(AwsIdentity&& value) { m_subscriberIdentityHasBeenSet = true; m_subscriberIdentity = std::move(value); } /** *

The AWS identity used to access your data.

*/ inline UpdateSubscriberRequest& WithSubscriberIdentity(const AwsIdentity& value) { SetSubscriberIdentity(value); return *this;} /** *

The AWS identity used to access your data.

*/ inline UpdateSubscriberRequest& WithSubscriberIdentity(AwsIdentity&& value) { SetSubscriberIdentity(std::move(value)); return *this;} /** *

The name of the Security Lake account subscriber.

*/ inline const Aws::String& GetSubscriberName() const{ return m_subscriberName; } /** *

The name of the Security Lake account subscriber.

*/ inline bool SubscriberNameHasBeenSet() const { return m_subscriberNameHasBeenSet; } /** *

The name of the Security Lake account subscriber.

*/ inline void SetSubscriberName(const Aws::String& value) { m_subscriberNameHasBeenSet = true; m_subscriberName = value; } /** *

The name of the Security Lake account subscriber.

*/ inline void SetSubscriberName(Aws::String&& value) { m_subscriberNameHasBeenSet = true; m_subscriberName = std::move(value); } /** *

The name of the Security Lake account subscriber.

*/ inline void SetSubscriberName(const char* value) { m_subscriberNameHasBeenSet = true; m_subscriberName.assign(value); } /** *

The name of the Security Lake account subscriber.

*/ inline UpdateSubscriberRequest& WithSubscriberName(const Aws::String& value) { SetSubscriberName(value); return *this;} /** *

The name of the Security Lake account subscriber.

*/ inline UpdateSubscriberRequest& WithSubscriberName(Aws::String&& value) { SetSubscriberName(std::move(value)); return *this;} /** *

The name of the Security Lake account subscriber.

*/ inline UpdateSubscriberRequest& WithSubscriberName(const char* value) { SetSubscriberName(value); return *this;} private: Aws::Vector m_sources; bool m_sourcesHasBeenSet = false; Aws::String m_subscriberDescription; bool m_subscriberDescriptionHasBeenSet = false; Aws::String m_subscriberId; bool m_subscriberIdHasBeenSet = false; AwsIdentity m_subscriberIdentity; bool m_subscriberIdentityHasBeenSet = false; Aws::String m_subscriberName; bool m_subscriberNameHasBeenSet = false; }; } // namespace Model } // namespace SecurityLake } // namespace Aws