288 lines
10 KiB
C
288 lines
10 KiB
C
|
|
/**
|
|||
|
|
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
|
|||
|
|
* SPDX-License-Identifier: Apache-2.0.
|
|||
|
|
*/
|
|||
|
|
|
|||
|
|
#pragma once
|
|||
|
|
#include <aws/events/CloudWatchEvents_EXPORTS.h>
|
|||
|
|
#include <aws/core/utils/DateTime.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 CloudWatchEvents
|
|||
|
|
{
|
|||
|
|
namespace Model
|
|||
|
|
{
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The details about an event generated by an SaaS partner.</p><p><h3>See
|
|||
|
|
* Also:</h3> <a
|
|||
|
|
* href="http://docs.aws.amazon.com/goto/WebAPI/events-2015-10-07/PutPartnerEventsRequestEntry">AWS
|
|||
|
|
* API Reference</a></p>
|
|||
|
|
*/
|
|||
|
|
class AWS_CLOUDWATCHEVENTS_API PutPartnerEventsRequestEntry
|
|||
|
|
{
|
|||
|
|
public:
|
|||
|
|
PutPartnerEventsRequestEntry();
|
|||
|
|
PutPartnerEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
PutPartnerEventsRequestEntry& operator=(Aws::Utils::Json::JsonView jsonValue);
|
|||
|
|
Aws::Utils::Json::JsonValue Jsonize() const;
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Utils::DateTime& GetTime() const{ return m_time; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline PutPartnerEventsRequestEntry& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The date and time of the event.</p>
|
|||
|
|
*/
|
|||
|
|
inline PutPartnerEventsRequestEntry& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The event source that is generating the evntry.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetSource() const{ return m_source; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The event source that is generating the evntry.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The event source that is generating the evntry.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The event source that is generating the evntry.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The event source that is generating the evntry.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The event source that is generating the evntry.</p>
|
|||
|
|
*/
|
|||
|
|
inline PutPartnerEventsRequestEntry& WithSource(const Aws::String& value) { SetSource(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The event source that is generating the evntry.</p>
|
|||
|
|
*/
|
|||
|
|
inline PutPartnerEventsRequestEntry& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>The event source that is generating the evntry.</p>
|
|||
|
|
*/
|
|||
|
|
inline PutPartnerEventsRequestEntry& WithSource(const char* value) { SetSource(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
|
|||
|
|
* primarily concerns. Any number, including zero, may be present.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::Vector<Aws::String>& GetResources() const{ return m_resources; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
|
|||
|
|
* primarily concerns. Any number, including zero, may be present.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
|
|||
|
|
* primarily concerns. Any number, including zero, may be present.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResources(const Aws::Vector<Aws::String>& value) { m_resourcesHasBeenSet = true; m_resources = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
|
|||
|
|
* primarily concerns. Any number, including zero, may be present.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetResources(Aws::Vector<Aws::String>&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
|
|||
|
|
* primarily concerns. Any number, including zero, may be present.</p>
|
|||
|
|
*/
|
|||
|
|
inline PutPartnerEventsRequestEntry& WithResources(const Aws::Vector<Aws::String>& value) { SetResources(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
|
|||
|
|
* primarily concerns. Any number, including zero, may be present.</p>
|
|||
|
|
*/
|
|||
|
|
inline PutPartnerEventsRequestEntry& WithResources(Aws::Vector<Aws::String>&& value) { SetResources(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
|
|||
|
|
* primarily concerns. Any number, including zero, may be present.</p>
|
|||
|
|
*/
|
|||
|
|
inline PutPartnerEventsRequestEntry& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
|
|||
|
|
* primarily concerns. Any number, including zero, may be present.</p>
|
|||
|
|
*/
|
|||
|
|
inline PutPartnerEventsRequestEntry& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>AWS resources, identified by Amazon Resource Name (ARN), which the event
|
|||
|
|
* primarily concerns. Any number, including zero, may be present.</p>
|
|||
|
|
*/
|
|||
|
|
inline PutPartnerEventsRequestEntry& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; }
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A free-form string used to decide what fields to expect in the event
|
|||
|
|
* detail.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetDetailType() const{ return m_detailType; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A free-form string used to decide what fields to expect in the event
|
|||
|
|
* detail.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A free-form string used to decide what fields to expect in the event
|
|||
|
|
* detail.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDetailType(const Aws::String& value) { m_detailTypeHasBeenSet = true; m_detailType = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A free-form string used to decide what fields to expect in the event
|
|||
|
|
* detail.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDetailType(Aws::String&& value) { m_detailTypeHasBeenSet = true; m_detailType = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A free-form string used to decide what fields to expect in the event
|
|||
|
|
* detail.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDetailType(const char* value) { m_detailTypeHasBeenSet = true; m_detailType.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A free-form string used to decide what fields to expect in the event
|
|||
|
|
* detail.</p>
|
|||
|
|
*/
|
|||
|
|
inline PutPartnerEventsRequestEntry& WithDetailType(const Aws::String& value) { SetDetailType(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A free-form string used to decide what fields to expect in the event
|
|||
|
|
* detail.</p>
|
|||
|
|
*/
|
|||
|
|
inline PutPartnerEventsRequestEntry& WithDetailType(Aws::String&& value) { SetDetailType(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A free-form string used to decide what fields to expect in the event
|
|||
|
|
* detail.</p>
|
|||
|
|
*/
|
|||
|
|
inline PutPartnerEventsRequestEntry& WithDetailType(const char* value) { SetDetailType(value); return *this;}
|
|||
|
|
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
|
|||
|
|
* contain fields and nested subobjects.</p>
|
|||
|
|
*/
|
|||
|
|
inline const Aws::String& GetDetail() const{ return m_detail; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
|
|||
|
|
* contain fields and nested subobjects.</p>
|
|||
|
|
*/
|
|||
|
|
inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
|
|||
|
|
* contain fields and nested subobjects.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDetail(const Aws::String& value) { m_detailHasBeenSet = true; m_detail = value; }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
|
|||
|
|
* contain fields and nested subobjects.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDetail(Aws::String&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
|
|||
|
|
* contain fields and nested subobjects.</p>
|
|||
|
|
*/
|
|||
|
|
inline void SetDetail(const char* value) { m_detailHasBeenSet = true; m_detail.assign(value); }
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
|
|||
|
|
* contain fields and nested subobjects.</p>
|
|||
|
|
*/
|
|||
|
|
inline PutPartnerEventsRequestEntry& WithDetail(const Aws::String& value) { SetDetail(value); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
|
|||
|
|
* contain fields and nested subobjects.</p>
|
|||
|
|
*/
|
|||
|
|
inline PutPartnerEventsRequestEntry& WithDetail(Aws::String&& value) { SetDetail(std::move(value)); return *this;}
|
|||
|
|
|
|||
|
|
/**
|
|||
|
|
* <p>A valid JSON string. There is no other schema imposed. The JSON string may
|
|||
|
|
* contain fields and nested subobjects.</p>
|
|||
|
|
*/
|
|||
|
|
inline PutPartnerEventsRequestEntry& WithDetail(const char* value) { SetDetail(value); return *this;}
|
|||
|
|
|
|||
|
|
private:
|
|||
|
|
|
|||
|
|
Aws::Utils::DateTime m_time;
|
|||
|
|
bool m_timeHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_source;
|
|||
|
|
bool m_sourceHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::Vector<Aws::String> m_resources;
|
|||
|
|
bool m_resourcesHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_detailType;
|
|||
|
|
bool m_detailTypeHasBeenSet;
|
|||
|
|
|
|||
|
|
Aws::String m_detail;
|
|||
|
|
bool m_detailHasBeenSet;
|
|||
|
|
};
|
|||
|
|
|
|||
|
|
} // namespace Model
|
|||
|
|
} // namespace CloudWatchEvents
|
|||
|
|
} // namespace Aws
|