/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include namespace Aws { namespace Utils { namespace Json { class JsonValue; class JsonView; } // namespace Json } // namespace Utils namespace EventBridge { namespace Model { /** *

The details about an event generated by an SaaS partner.

See * Also:

AWS * API Reference

*/ class PutPartnerEventsRequestEntry { public: AWS_EVENTBRIDGE_API PutPartnerEventsRequestEntry(); AWS_EVENTBRIDGE_API PutPartnerEventsRequestEntry(Aws::Utils::Json::JsonView jsonValue); AWS_EVENTBRIDGE_API PutPartnerEventsRequestEntry& operator=(Aws::Utils::Json::JsonView jsonValue); AWS_EVENTBRIDGE_API Aws::Utils::Json::JsonValue Jsonize() const; /** *

The date and time of the event.

*/ inline const Aws::Utils::DateTime& GetTime() const{ return m_time; } /** *

The date and time of the event.

*/ inline bool TimeHasBeenSet() const { return m_timeHasBeenSet; } /** *

The date and time of the event.

*/ inline void SetTime(const Aws::Utils::DateTime& value) { m_timeHasBeenSet = true; m_time = value; } /** *

The date and time of the event.

*/ inline void SetTime(Aws::Utils::DateTime&& value) { m_timeHasBeenSet = true; m_time = std::move(value); } /** *

The date and time of the event.

*/ inline PutPartnerEventsRequestEntry& WithTime(const Aws::Utils::DateTime& value) { SetTime(value); return *this;} /** *

The date and time of the event.

*/ inline PutPartnerEventsRequestEntry& WithTime(Aws::Utils::DateTime&& value) { SetTime(std::move(value)); return *this;} /** *

The event source that is generating the entry.

*/ inline const Aws::String& GetSource() const{ return m_source; } /** *

The event source that is generating the entry.

*/ inline bool SourceHasBeenSet() const { return m_sourceHasBeenSet; } /** *

The event source that is generating the entry.

*/ inline void SetSource(const Aws::String& value) { m_sourceHasBeenSet = true; m_source = value; } /** *

The event source that is generating the entry.

*/ inline void SetSource(Aws::String&& value) { m_sourceHasBeenSet = true; m_source = std::move(value); } /** *

The event source that is generating the entry.

*/ inline void SetSource(const char* value) { m_sourceHasBeenSet = true; m_source.assign(value); } /** *

The event source that is generating the entry.

*/ inline PutPartnerEventsRequestEntry& WithSource(const Aws::String& value) { SetSource(value); return *this;} /** *

The event source that is generating the entry.

*/ inline PutPartnerEventsRequestEntry& WithSource(Aws::String&& value) { SetSource(std::move(value)); return *this;} /** *

The event source that is generating the entry.

*/ inline PutPartnerEventsRequestEntry& WithSource(const char* value) { SetSource(value); return *this;} /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline const Aws::Vector& GetResources() const{ return m_resources; } /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline bool ResourcesHasBeenSet() const { return m_resourcesHasBeenSet; } /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline void SetResources(const Aws::Vector& value) { m_resourcesHasBeenSet = true; m_resources = value; } /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline void SetResources(Aws::Vector&& value) { m_resourcesHasBeenSet = true; m_resources = std::move(value); } /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline PutPartnerEventsRequestEntry& WithResources(const Aws::Vector& value) { SetResources(value); return *this;} /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline PutPartnerEventsRequestEntry& WithResources(Aws::Vector&& value) { SetResources(std::move(value)); return *this;} /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline PutPartnerEventsRequestEntry& AddResources(const Aws::String& value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline PutPartnerEventsRequestEntry& AddResources(Aws::String&& value) { m_resourcesHasBeenSet = true; m_resources.push_back(std::move(value)); return *this; } /** *

Amazon Web Services resources, identified by Amazon Resource Name (ARN), * which the event primarily concerns. Any number, including zero, may be * present.

*/ inline PutPartnerEventsRequestEntry& AddResources(const char* value) { m_resourcesHasBeenSet = true; m_resources.push_back(value); return *this; } /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline const Aws::String& GetDetailType() const{ return m_detailType; } /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline bool DetailTypeHasBeenSet() const { return m_detailTypeHasBeenSet; } /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline void SetDetailType(const Aws::String& value) { m_detailTypeHasBeenSet = true; m_detailType = value; } /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline void SetDetailType(Aws::String&& value) { m_detailTypeHasBeenSet = true; m_detailType = std::move(value); } /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline void SetDetailType(const char* value) { m_detailTypeHasBeenSet = true; m_detailType.assign(value); } /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline PutPartnerEventsRequestEntry& WithDetailType(const Aws::String& value) { SetDetailType(value); return *this;} /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline PutPartnerEventsRequestEntry& WithDetailType(Aws::String&& value) { SetDetailType(std::move(value)); return *this;} /** *

A free-form string, with a maximum of 128 characters, used to decide what * fields to expect in the event detail.

*/ inline PutPartnerEventsRequestEntry& WithDetailType(const char* value) { SetDetailType(value); return *this;} /** *

A valid JSON string. There is no other schema imposed. The JSON string may * contain fields and nested subobjects.

*/ inline const Aws::String& GetDetail() const{ return m_detail; } /** *

A valid JSON string. There is no other schema imposed. The JSON string may * contain fields and nested subobjects.

*/ inline bool DetailHasBeenSet() const { return m_detailHasBeenSet; } /** *

A valid JSON string. There is no other schema imposed. The JSON string may * contain fields and nested subobjects.

*/ inline void SetDetail(const Aws::String& value) { m_detailHasBeenSet = true; m_detail = value; } /** *

A valid JSON string. There is no other schema imposed. The JSON string may * contain fields and nested subobjects.

*/ inline void SetDetail(Aws::String&& value) { m_detailHasBeenSet = true; m_detail = std::move(value); } /** *

A valid JSON string. There is no other schema imposed. The JSON string may * contain fields and nested subobjects.

*/ inline void SetDetail(const char* value) { m_detailHasBeenSet = true; m_detail.assign(value); } /** *

A valid JSON string. There is no other schema imposed. The JSON string may * contain fields and nested subobjects.

*/ inline PutPartnerEventsRequestEntry& WithDetail(const Aws::String& value) { SetDetail(value); return *this;} /** *

A valid JSON string. There is no other schema imposed. The JSON string may * contain fields and nested subobjects.

*/ inline PutPartnerEventsRequestEntry& WithDetail(Aws::String&& value) { SetDetail(std::move(value)); return *this;} /** *

A valid JSON string. There is no other schema imposed. The JSON string may * contain fields and nested subobjects.

*/ inline PutPartnerEventsRequestEntry& WithDetail(const char* value) { SetDetail(value); return *this;} private: Aws::Utils::DateTime m_time; bool m_timeHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; Aws::Vector m_resources; bool m_resourcesHasBeenSet = false; Aws::String m_detailType; bool m_detailTypeHasBeenSet = false; Aws::String m_detail; bool m_detailHasBeenSet = false; }; } // namespace Model } // namespace EventBridge } // namespace Aws