/** * 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 SSM { namespace Model { /** *

Summary information about an OpsItem event or that associated an OpsItem with * a related item.

See Also:

AWS * API Reference

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

The ID of the OpsItem.

*/ inline const Aws::String& GetOpsItemId() const{ return m_opsItemId; } /** *

The ID of the OpsItem.

*/ inline bool OpsItemIdHasBeenSet() const { return m_opsItemIdHasBeenSet; } /** *

The ID of the OpsItem.

*/ inline void SetOpsItemId(const Aws::String& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = value; } /** *

The ID of the OpsItem.

*/ inline void SetOpsItemId(Aws::String&& value) { m_opsItemIdHasBeenSet = true; m_opsItemId = std::move(value); } /** *

The ID of the OpsItem.

*/ inline void SetOpsItemId(const char* value) { m_opsItemIdHasBeenSet = true; m_opsItemId.assign(value); } /** *

The ID of the OpsItem.

*/ inline OpsItemEventSummary& WithOpsItemId(const Aws::String& value) { SetOpsItemId(value); return *this;} /** *

The ID of the OpsItem.

*/ inline OpsItemEventSummary& WithOpsItemId(Aws::String&& value) { SetOpsItemId(std::move(value)); return *this;} /** *

The ID of the OpsItem.

*/ inline OpsItemEventSummary& WithOpsItemId(const char* value) { SetOpsItemId(value); return *this;} /** *

The ID of the OpsItem event.

*/ inline const Aws::String& GetEventId() const{ return m_eventId; } /** *

The ID of the OpsItem event.

*/ inline bool EventIdHasBeenSet() const { return m_eventIdHasBeenSet; } /** *

The ID of the OpsItem event.

*/ inline void SetEventId(const Aws::String& value) { m_eventIdHasBeenSet = true; m_eventId = value; } /** *

The ID of the OpsItem event.

*/ inline void SetEventId(Aws::String&& value) { m_eventIdHasBeenSet = true; m_eventId = std::move(value); } /** *

The ID of the OpsItem event.

*/ inline void SetEventId(const char* value) { m_eventIdHasBeenSet = true; m_eventId.assign(value); } /** *

The ID of the OpsItem event.

*/ inline OpsItemEventSummary& WithEventId(const Aws::String& value) { SetEventId(value); return *this;} /** *

The ID of the OpsItem event.

*/ inline OpsItemEventSummary& WithEventId(Aws::String&& value) { SetEventId(std::move(value)); return *this;} /** *

The ID of the OpsItem event.

*/ inline OpsItemEventSummary& WithEventId(const char* value) { SetEventId(value); return *this;} /** *

The source of the OpsItem event.

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

The source of the OpsItem event.

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

The source of the OpsItem event.

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

The source of the OpsItem event.

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

The source of the OpsItem event.

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

The source of the OpsItem event.

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

The source of the OpsItem event.

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

The source of the OpsItem event.

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

The type of information provided as a detail.

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

The type of information provided as a detail.

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

The type of information provided as a detail.

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

The type of information provided as a detail.

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

The type of information provided as a detail.

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

The type of information provided as a detail.

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

The type of information provided as a detail.

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

The type of information provided as a detail.

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

Specific information about the OpsItem event.

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

Specific information about the OpsItem event.

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

Specific information about the OpsItem event.

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

Specific information about the OpsItem event.

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

Specific information about the OpsItem event.

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

Specific information about the OpsItem event.

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

Specific information about the OpsItem event.

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

Specific information about the OpsItem event.

*/ inline OpsItemEventSummary& WithDetail(const char* value) { SetDetail(value); return *this;} /** *

Information about the user or resource that created the OpsItem event.

*/ inline const OpsItemIdentity& GetCreatedBy() const{ return m_createdBy; } /** *

Information about the user or resource that created the OpsItem event.

*/ inline bool CreatedByHasBeenSet() const { return m_createdByHasBeenSet; } /** *

Information about the user or resource that created the OpsItem event.

*/ inline void SetCreatedBy(const OpsItemIdentity& value) { m_createdByHasBeenSet = true; m_createdBy = value; } /** *

Information about the user or resource that created the OpsItem event.

*/ inline void SetCreatedBy(OpsItemIdentity&& value) { m_createdByHasBeenSet = true; m_createdBy = std::move(value); } /** *

Information about the user or resource that created the OpsItem event.

*/ inline OpsItemEventSummary& WithCreatedBy(const OpsItemIdentity& value) { SetCreatedBy(value); return *this;} /** *

Information about the user or resource that created the OpsItem event.

*/ inline OpsItemEventSummary& WithCreatedBy(OpsItemIdentity&& value) { SetCreatedBy(std::move(value)); return *this;} /** *

The date and time the OpsItem event was created.

*/ inline const Aws::Utils::DateTime& GetCreatedTime() const{ return m_createdTime; } /** *

The date and time the OpsItem event was created.

*/ inline bool CreatedTimeHasBeenSet() const { return m_createdTimeHasBeenSet; } /** *

The date and time the OpsItem event was created.

*/ inline void SetCreatedTime(const Aws::Utils::DateTime& value) { m_createdTimeHasBeenSet = true; m_createdTime = value; } /** *

The date and time the OpsItem event was created.

*/ inline void SetCreatedTime(Aws::Utils::DateTime&& value) { m_createdTimeHasBeenSet = true; m_createdTime = std::move(value); } /** *

The date and time the OpsItem event was created.

*/ inline OpsItemEventSummary& WithCreatedTime(const Aws::Utils::DateTime& value) { SetCreatedTime(value); return *this;} /** *

The date and time the OpsItem event was created.

*/ inline OpsItemEventSummary& WithCreatedTime(Aws::Utils::DateTime&& value) { SetCreatedTime(std::move(value)); return *this;} private: Aws::String m_opsItemId; bool m_opsItemIdHasBeenSet = false; Aws::String m_eventId; bool m_eventIdHasBeenSet = false; Aws::String m_source; bool m_sourceHasBeenSet = false; Aws::String m_detailType; bool m_detailTypeHasBeenSet = false; Aws::String m_detail; bool m_detailHasBeenSet = false; OpsItemIdentity m_createdBy; bool m_createdByHasBeenSet = false; Aws::Utils::DateTime m_createdTime; bool m_createdTimeHasBeenSet = false; }; } // namespace Model } // namespace SSM } // namespace Aws