157 lines
5.3 KiB
C++
157 lines
5.3 KiB
C++
/**
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|
*/
|
|
|
|
#pragma once
|
|
#include <aws/glacier/Glacier_EXPORTS.h>
|
|
#include <aws/core/utils/memory/stl/AWSString.h>
|
|
#include <aws/core/utils/memory/stl/AWSVector.h>
|
|
#include <utility>
|
|
|
|
namespace Aws
|
|
{
|
|
namespace Utils
|
|
{
|
|
namespace Json
|
|
{
|
|
class JsonValue;
|
|
class JsonView;
|
|
} // namespace Json
|
|
} // namespace Utils
|
|
namespace Glacier
|
|
{
|
|
namespace Model
|
|
{
|
|
|
|
/**
|
|
* <p>Represents a vault's notification configuration.</p><p><h3>See Also:</h3>
|
|
* <a
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/glacier-2012-06-01/VaultNotificationConfig">AWS
|
|
* API Reference</a></p>
|
|
*/
|
|
class AWS_GLACIER_API VaultNotificationConfig
|
|
{
|
|
public:
|
|
VaultNotificationConfig();
|
|
VaultNotificationConfig(Aws::Utils::Json::JsonView jsonValue);
|
|
VaultNotificationConfig& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|
|
|
|
|
/**
|
|
* <p>The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource
|
|
* Name (ARN).</p>
|
|
*/
|
|
inline const Aws::String& GetSNSTopic() const{ return m_sNSTopic; }
|
|
|
|
/**
|
|
* <p>The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource
|
|
* Name (ARN).</p>
|
|
*/
|
|
inline bool SNSTopicHasBeenSet() const { return m_sNSTopicHasBeenSet; }
|
|
|
|
/**
|
|
* <p>The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource
|
|
* Name (ARN).</p>
|
|
*/
|
|
inline void SetSNSTopic(const Aws::String& value) { m_sNSTopicHasBeenSet = true; m_sNSTopic = value; }
|
|
|
|
/**
|
|
* <p>The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource
|
|
* Name (ARN).</p>
|
|
*/
|
|
inline void SetSNSTopic(Aws::String&& value) { m_sNSTopicHasBeenSet = true; m_sNSTopic = std::move(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource
|
|
* Name (ARN).</p>
|
|
*/
|
|
inline void SetSNSTopic(const char* value) { m_sNSTopicHasBeenSet = true; m_sNSTopic.assign(value); }
|
|
|
|
/**
|
|
* <p>The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource
|
|
* Name (ARN).</p>
|
|
*/
|
|
inline VaultNotificationConfig& WithSNSTopic(const Aws::String& value) { SetSNSTopic(value); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource
|
|
* Name (ARN).</p>
|
|
*/
|
|
inline VaultNotificationConfig& WithSNSTopic(Aws::String&& value) { SetSNSTopic(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>The Amazon Simple Notification Service (Amazon SNS) topic Amazon Resource
|
|
* Name (ARN).</p>
|
|
*/
|
|
inline VaultNotificationConfig& WithSNSTopic(const char* value) { SetSNSTopic(value); return *this;}
|
|
|
|
|
|
/**
|
|
* <p>A list of one or more events for which Amazon S3 Glacier will send a
|
|
* notification to the specified Amazon SNS topic.</p>
|
|
*/
|
|
inline const Aws::Vector<Aws::String>& GetEvents() const{ return m_events; }
|
|
|
|
/**
|
|
* <p>A list of one or more events for which Amazon S3 Glacier will send a
|
|
* notification to the specified Amazon SNS topic.</p>
|
|
*/
|
|
inline bool EventsHasBeenSet() const { return m_eventsHasBeenSet; }
|
|
|
|
/**
|
|
* <p>A list of one or more events for which Amazon S3 Glacier will send a
|
|
* notification to the specified Amazon SNS topic.</p>
|
|
*/
|
|
inline void SetEvents(const Aws::Vector<Aws::String>& value) { m_eventsHasBeenSet = true; m_events = value; }
|
|
|
|
/**
|
|
* <p>A list of one or more events for which Amazon S3 Glacier will send a
|
|
* notification to the specified Amazon SNS topic.</p>
|
|
*/
|
|
inline void SetEvents(Aws::Vector<Aws::String>&& value) { m_eventsHasBeenSet = true; m_events = std::move(value); }
|
|
|
|
/**
|
|
* <p>A list of one or more events for which Amazon S3 Glacier will send a
|
|
* notification to the specified Amazon SNS topic.</p>
|
|
*/
|
|
inline VaultNotificationConfig& WithEvents(const Aws::Vector<Aws::String>& value) { SetEvents(value); return *this;}
|
|
|
|
/**
|
|
* <p>A list of one or more events for which Amazon S3 Glacier will send a
|
|
* notification to the specified Amazon SNS topic.</p>
|
|
*/
|
|
inline VaultNotificationConfig& WithEvents(Aws::Vector<Aws::String>&& value) { SetEvents(std::move(value)); return *this;}
|
|
|
|
/**
|
|
* <p>A list of one or more events for which Amazon S3 Glacier will send a
|
|
* notification to the specified Amazon SNS topic.</p>
|
|
*/
|
|
inline VaultNotificationConfig& AddEvents(const Aws::String& value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
|
|
|
|
/**
|
|
* <p>A list of one or more events for which Amazon S3 Glacier will send a
|
|
* notification to the specified Amazon SNS topic.</p>
|
|
*/
|
|
inline VaultNotificationConfig& AddEvents(Aws::String&& value) { m_eventsHasBeenSet = true; m_events.push_back(std::move(value)); return *this; }
|
|
|
|
/**
|
|
* <p>A list of one or more events for which Amazon S3 Glacier will send a
|
|
* notification to the specified Amazon SNS topic.</p>
|
|
*/
|
|
inline VaultNotificationConfig& AddEvents(const char* value) { m_eventsHasBeenSet = true; m_events.push_back(value); return *this; }
|
|
|
|
private:
|
|
|
|
Aws::String m_sNSTopic;
|
|
bool m_sNSTopicHasBeenSet;
|
|
|
|
Aws::Vector<Aws::String> m_events;
|
|
bool m_eventsHasBeenSet;
|
|
};
|
|
|
|
} // namespace Model
|
|
} // namespace Glacier
|
|
} // namespace Aws
|