/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include <aws/eventbridge/EventBridge_EXPORTS.h> #include <aws/eventbridge/EventBridgeRequest.h> #include <aws/core/utils/memory/stl/AWSString.h> #include <utility> namespace Aws { namespace EventBridge { namespace Model { /** */ class CreateArchiveRequest : public EventBridgeRequest { public: AWS_EVENTBRIDGE_API CreateArchiveRequest(); // 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 "CreateArchive"; } AWS_EVENTBRIDGE_API Aws::String SerializePayload() const override; AWS_EVENTBRIDGE_API Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** * <p>The name for the archive to create.</p> */ inline const Aws::String& GetArchiveName() const{ return m_archiveName; } /** * <p>The name for the archive to create.</p> */ inline bool ArchiveNameHasBeenSet() const { return m_archiveNameHasBeenSet; } /** * <p>The name for the archive to create.</p> */ inline void SetArchiveName(const Aws::String& value) { m_archiveNameHasBeenSet = true; m_archiveName = value; } /** * <p>The name for the archive to create.</p> */ inline void SetArchiveName(Aws::String&& value) { m_archiveNameHasBeenSet = true; m_archiveName = std::move(value); } /** * <p>The name for the archive to create.</p> */ inline void SetArchiveName(const char* value) { m_archiveNameHasBeenSet = true; m_archiveName.assign(value); } /** * <p>The name for the archive to create.</p> */ inline CreateArchiveRequest& WithArchiveName(const Aws::String& value) { SetArchiveName(value); return *this;} /** * <p>The name for the archive to create.</p> */ inline CreateArchiveRequest& WithArchiveName(Aws::String&& value) { SetArchiveName(std::move(value)); return *this;} /** * <p>The name for the archive to create.</p> */ inline CreateArchiveRequest& WithArchiveName(const char* value) { SetArchiveName(value); return *this;} /** * <p>The ARN of the event bus that sends events to the archive.</p> */ inline const Aws::String& GetEventSourceArn() const{ return m_eventSourceArn; } /** * <p>The ARN of the event bus that sends events to the archive.</p> */ inline bool EventSourceArnHasBeenSet() const { return m_eventSourceArnHasBeenSet; } /** * <p>The ARN of the event bus that sends events to the archive.</p> */ inline void SetEventSourceArn(const Aws::String& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = value; } /** * <p>The ARN of the event bus that sends events to the archive.</p> */ inline void SetEventSourceArn(Aws::String&& value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn = std::move(value); } /** * <p>The ARN of the event bus that sends events to the archive.</p> */ inline void SetEventSourceArn(const char* value) { m_eventSourceArnHasBeenSet = true; m_eventSourceArn.assign(value); } /** * <p>The ARN of the event bus that sends events to the archive.</p> */ inline CreateArchiveRequest& WithEventSourceArn(const Aws::String& value) { SetEventSourceArn(value); return *this;} /** * <p>The ARN of the event bus that sends events to the archive.</p> */ inline CreateArchiveRequest& WithEventSourceArn(Aws::String&& value) { SetEventSourceArn(std::move(value)); return *this;} /** * <p>The ARN of the event bus that sends events to the archive.</p> */ inline CreateArchiveRequest& WithEventSourceArn(const char* value) { SetEventSourceArn(value); return *this;} /** * <p>A description for the archive.</p> */ inline const Aws::String& GetDescription() const{ return m_description; } /** * <p>A description for the archive.</p> */ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** * <p>A description for the archive.</p> */ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** * <p>A description for the archive.</p> */ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** * <p>A description for the archive.</p> */ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** * <p>A description for the archive.</p> */ inline CreateArchiveRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** * <p>A description for the archive.</p> */ inline CreateArchiveRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** * <p>A description for the archive.</p> */ inline CreateArchiveRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** * <p>An event pattern to use to filter events sent to the archive.</p> */ inline const Aws::String& GetEventPattern() const{ return m_eventPattern; } /** * <p>An event pattern to use to filter events sent to the archive.</p> */ inline bool EventPatternHasBeenSet() const { return m_eventPatternHasBeenSet; } /** * <p>An event pattern to use to filter events sent to the archive.</p> */ inline void SetEventPattern(const Aws::String& value) { m_eventPatternHasBeenSet = true; m_eventPattern = value; } /** * <p>An event pattern to use to filter events sent to the archive.</p> */ inline void SetEventPattern(Aws::String&& value) { m_eventPatternHasBeenSet = true; m_eventPattern = std::move(value); } /** * <p>An event pattern to use to filter events sent to the archive.</p> */ inline void SetEventPattern(const char* value) { m_eventPatternHasBeenSet = true; m_eventPattern.assign(value); } /** * <p>An event pattern to use to filter events sent to the archive.</p> */ inline CreateArchiveRequest& WithEventPattern(const Aws::String& value) { SetEventPattern(value); return *this;} /** * <p>An event pattern to use to filter events sent to the archive.</p> */ inline CreateArchiveRequest& WithEventPattern(Aws::String&& value) { SetEventPattern(std::move(value)); return *this;} /** * <p>An event pattern to use to filter events sent to the archive.</p> */ inline CreateArchiveRequest& WithEventPattern(const char* value) { SetEventPattern(value); return *this;} /** * <p>The number of days to retain events for. Default value is 0. If set to 0, * events are retained indefinitely</p> */ inline int GetRetentionDays() const{ return m_retentionDays; } /** * <p>The number of days to retain events for. Default value is 0. If set to 0, * events are retained indefinitely</p> */ inline bool RetentionDaysHasBeenSet() const { return m_retentionDaysHasBeenSet; } /** * <p>The number of days to retain events for. Default value is 0. If set to 0, * events are retained indefinitely</p> */ inline void SetRetentionDays(int value) { m_retentionDaysHasBeenSet = true; m_retentionDays = value; } /** * <p>The number of days to retain events for. Default value is 0. If set to 0, * events are retained indefinitely</p> */ inline CreateArchiveRequest& WithRetentionDays(int value) { SetRetentionDays(value); return *this;} private: Aws::String m_archiveName; bool m_archiveNameHasBeenSet = false; Aws::String m_eventSourceArn; bool m_eventSourceArnHasBeenSet = false; Aws::String m_description; bool m_descriptionHasBeenSet = false; Aws::String m_eventPattern; bool m_eventPatternHasBeenSet = false; int m_retentionDays; bool m_retentionDaysHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws