amazonka-codeguru-reviewer-2.0: Amazon CodeGuru Reviewer SDK.
Copyright(c) 2013-2023 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellSafe-Inferred
LanguageHaskell2010

Amazonka.CodeGuruReviewer.Types.EventInfo

Description

 
Synopsis

Documentation

data EventInfo Source #

Information about an event. The event might be a push, pull request, scheduled request, or another type of event.

See: newEventInfo smart constructor.

Constructors

EventInfo' 

Fields

  • name :: Maybe Text

    The name of the event. The possible names are pull_request, workflow_dispatch, schedule, and push

  • state :: Maybe Text

    The state of an event. The state might be open, closed, or another state.

Instances

Instances details
FromJSON EventInfo Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.EventInfo

ToJSON EventInfo Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.EventInfo

Generic EventInfo Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.EventInfo

Associated Types

type Rep EventInfo :: Type -> Type #

Read EventInfo Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.EventInfo

Show EventInfo Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.EventInfo

NFData EventInfo Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.EventInfo

Methods

rnf :: EventInfo -> () #

Eq EventInfo Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.EventInfo

Hashable EventInfo Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.EventInfo

type Rep EventInfo Source # 
Instance details

Defined in Amazonka.CodeGuruReviewer.Types.EventInfo

type Rep EventInfo = D1 ('MetaData "EventInfo" "Amazonka.CodeGuruReviewer.Types.EventInfo" "amazonka-codeguru-reviewer-2.0-5PMDLaQhmT9HEhVpSUty9z" 'False) (C1 ('MetaCons "EventInfo'" 'PrefixI 'True) (S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "state") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text))))

newEventInfo :: EventInfo Source #

Create a value of EventInfo with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:name:EventInfo', eventInfo_name - The name of the event. The possible names are pull_request, workflow_dispatch, schedule, and push

$sel:state:EventInfo', eventInfo_state - The state of an event. The state might be open, closed, or another state.

eventInfo_name :: Lens' EventInfo (Maybe Text) Source #

The name of the event. The possible names are pull_request, workflow_dispatch, schedule, and push

eventInfo_state :: Lens' EventInfo (Maybe Text) Source #

The state of an event. The state might be open, closed, or another state.