/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include #include #include #include #include namespace Aws { namespace SSMIncidents { namespace Model { /** */ class StartIncidentRequest : public SSMIncidentsRequest { public: AWS_SSMINCIDENTS_API StartIncidentRequest(); // Service request name is the Operation name which will send this request out, // each operation should has unique request name, so that we can get operation's name from this request. // Note: this is not true for response, multiple operations may have the same response name, // so we can not get operation's name from response. inline virtual const char* GetServiceRequestName() const override { return "StartIncident"; } AWS_SSMINCIDENTS_API Aws::String SerializePayload() const override; /** *

A token ensuring that the operation is called only once with the specified * details.

*/ inline const Aws::String& GetClientToken() const{ return m_clientToken; } /** *

A token ensuring that the operation is called only once with the specified * details.

*/ inline bool ClientTokenHasBeenSet() const { return m_clientTokenHasBeenSet; } /** *

A token ensuring that the operation is called only once with the specified * details.

*/ inline void SetClientToken(const Aws::String& value) { m_clientTokenHasBeenSet = true; m_clientToken = value; } /** *

A token ensuring that the operation is called only once with the specified * details.

*/ inline void SetClientToken(Aws::String&& value) { m_clientTokenHasBeenSet = true; m_clientToken = std::move(value); } /** *

A token ensuring that the operation is called only once with the specified * details.

*/ inline void SetClientToken(const char* value) { m_clientTokenHasBeenSet = true; m_clientToken.assign(value); } /** *

A token ensuring that the operation is called only once with the specified * details.

*/ inline StartIncidentRequest& WithClientToken(const Aws::String& value) { SetClientToken(value); return *this;} /** *

A token ensuring that the operation is called only once with the specified * details.

*/ inline StartIncidentRequest& WithClientToken(Aws::String&& value) { SetClientToken(std::move(value)); return *this;} /** *

A token ensuring that the operation is called only once with the specified * details.

*/ inline StartIncidentRequest& WithClientToken(const char* value) { SetClientToken(value); return *this;} /** *

Defines the impact to the customers. Providing an impact overwrites the * impact provided by a response plan.

Possible * impacts:

  • 1 - Critical impact, this typically * relates to full application failure that impacts many to all customers.

    *
  • 2 - High impact, partial application failure with * impact to many customers.

  • 3 - Medium impact, the * application is providing reduced service to customers.

  • * 4 - Low impact, customer might aren't impacted by the problem * yet.

  • 5 - No impact, customers aren't currently * impacted but urgent action is needed to avoid impact.

*/ inline int GetImpact() const{ return m_impact; } /** *

Defines the impact to the customers. Providing an impact overwrites the * impact provided by a response plan.

Possible * impacts:

  • 1 - Critical impact, this typically * relates to full application failure that impacts many to all customers.

    *
  • 2 - High impact, partial application failure with * impact to many customers.

  • 3 - Medium impact, the * application is providing reduced service to customers.

  • * 4 - Low impact, customer might aren't impacted by the problem * yet.

  • 5 - No impact, customers aren't currently * impacted but urgent action is needed to avoid impact.

*/ inline bool ImpactHasBeenSet() const { return m_impactHasBeenSet; } /** *

Defines the impact to the customers. Providing an impact overwrites the * impact provided by a response plan.

Possible * impacts:

  • 1 - Critical impact, this typically * relates to full application failure that impacts many to all customers.

    *
  • 2 - High impact, partial application failure with * impact to many customers.

  • 3 - Medium impact, the * application is providing reduced service to customers.

  • * 4 - Low impact, customer might aren't impacted by the problem * yet.

  • 5 - No impact, customers aren't currently * impacted but urgent action is needed to avoid impact.

*/ inline void SetImpact(int value) { m_impactHasBeenSet = true; m_impact = value; } /** *

Defines the impact to the customers. Providing an impact overwrites the * impact provided by a response plan.

Possible * impacts:

  • 1 - Critical impact, this typically * relates to full application failure that impacts many to all customers.

    *
  • 2 - High impact, partial application failure with * impact to many customers.

  • 3 - Medium impact, the * application is providing reduced service to customers.

  • * 4 - Low impact, customer might aren't impacted by the problem * yet.

  • 5 - No impact, customers aren't currently * impacted but urgent action is needed to avoid impact.

*/ inline StartIncidentRequest& WithImpact(int value) { SetImpact(value); return *this;} /** *

Add related items to the incident for other responders to use. Related items * are Amazon Web Services resources, external links, or files uploaded to an * Amazon S3 bucket.

*/ inline const Aws::Vector& GetRelatedItems() const{ return m_relatedItems; } /** *

Add related items to the incident for other responders to use. Related items * are Amazon Web Services resources, external links, or files uploaded to an * Amazon S3 bucket.

*/ inline bool RelatedItemsHasBeenSet() const { return m_relatedItemsHasBeenSet; } /** *

Add related items to the incident for other responders to use. Related items * are Amazon Web Services resources, external links, or files uploaded to an * Amazon S3 bucket.

*/ inline void SetRelatedItems(const Aws::Vector& value) { m_relatedItemsHasBeenSet = true; m_relatedItems = value; } /** *

Add related items to the incident for other responders to use. Related items * are Amazon Web Services resources, external links, or files uploaded to an * Amazon S3 bucket.

*/ inline void SetRelatedItems(Aws::Vector&& value) { m_relatedItemsHasBeenSet = true; m_relatedItems = std::move(value); } /** *

Add related items to the incident for other responders to use. Related items * are Amazon Web Services resources, external links, or files uploaded to an * Amazon S3 bucket.

*/ inline StartIncidentRequest& WithRelatedItems(const Aws::Vector& value) { SetRelatedItems(value); return *this;} /** *

Add related items to the incident for other responders to use. Related items * are Amazon Web Services resources, external links, or files uploaded to an * Amazon S3 bucket.

*/ inline StartIncidentRequest& WithRelatedItems(Aws::Vector&& value) { SetRelatedItems(std::move(value)); return *this;} /** *

Add related items to the incident for other responders to use. Related items * are Amazon Web Services resources, external links, or files uploaded to an * Amazon S3 bucket.

*/ inline StartIncidentRequest& AddRelatedItems(const RelatedItem& value) { m_relatedItemsHasBeenSet = true; m_relatedItems.push_back(value); return *this; } /** *

Add related items to the incident for other responders to use. Related items * are Amazon Web Services resources, external links, or files uploaded to an * Amazon S3 bucket.

*/ inline StartIncidentRequest& AddRelatedItems(RelatedItem&& value) { m_relatedItemsHasBeenSet = true; m_relatedItems.push_back(std::move(value)); return *this; } /** *

The Amazon Resource Name (ARN) of the response plan that pre-defines summary, * chat channels, Amazon SNS topics, runbooks, title, and impact of the incident. *

*/ inline const Aws::String& GetResponsePlanArn() const{ return m_responsePlanArn; } /** *

The Amazon Resource Name (ARN) of the response plan that pre-defines summary, * chat channels, Amazon SNS topics, runbooks, title, and impact of the incident. *

*/ inline bool ResponsePlanArnHasBeenSet() const { return m_responsePlanArnHasBeenSet; } /** *

The Amazon Resource Name (ARN) of the response plan that pre-defines summary, * chat channels, Amazon SNS topics, runbooks, title, and impact of the incident. *

*/ inline void SetResponsePlanArn(const Aws::String& value) { m_responsePlanArnHasBeenSet = true; m_responsePlanArn = value; } /** *

The Amazon Resource Name (ARN) of the response plan that pre-defines summary, * chat channels, Amazon SNS topics, runbooks, title, and impact of the incident. *

*/ inline void SetResponsePlanArn(Aws::String&& value) { m_responsePlanArnHasBeenSet = true; m_responsePlanArn = std::move(value); } /** *

The Amazon Resource Name (ARN) of the response plan that pre-defines summary, * chat channels, Amazon SNS topics, runbooks, title, and impact of the incident. *

*/ inline void SetResponsePlanArn(const char* value) { m_responsePlanArnHasBeenSet = true; m_responsePlanArn.assign(value); } /** *

The Amazon Resource Name (ARN) of the response plan that pre-defines summary, * chat channels, Amazon SNS topics, runbooks, title, and impact of the incident. *

*/ inline StartIncidentRequest& WithResponsePlanArn(const Aws::String& value) { SetResponsePlanArn(value); return *this;} /** *

The Amazon Resource Name (ARN) of the response plan that pre-defines summary, * chat channels, Amazon SNS topics, runbooks, title, and impact of the incident. *

*/ inline StartIncidentRequest& WithResponsePlanArn(Aws::String&& value) { SetResponsePlanArn(std::move(value)); return *this;} /** *

The Amazon Resource Name (ARN) of the response plan that pre-defines summary, * chat channels, Amazon SNS topics, runbooks, title, and impact of the incident. *

*/ inline StartIncidentRequest& WithResponsePlanArn(const char* value) { SetResponsePlanArn(value); return *this;} /** *

Provide a title for the incident. Providing a title overwrites the title * provided by the response plan.

*/ inline const Aws::String& GetTitle() const{ return m_title; } /** *

Provide a title for the incident. Providing a title overwrites the title * provided by the response plan.

*/ inline bool TitleHasBeenSet() const { return m_titleHasBeenSet; } /** *

Provide a title for the incident. Providing a title overwrites the title * provided by the response plan.

*/ inline void SetTitle(const Aws::String& value) { m_titleHasBeenSet = true; m_title = value; } /** *

Provide a title for the incident. Providing a title overwrites the title * provided by the response plan.

*/ inline void SetTitle(Aws::String&& value) { m_titleHasBeenSet = true; m_title = std::move(value); } /** *

Provide a title for the incident. Providing a title overwrites the title * provided by the response plan.

*/ inline void SetTitle(const char* value) { m_titleHasBeenSet = true; m_title.assign(value); } /** *

Provide a title for the incident. Providing a title overwrites the title * provided by the response plan.

*/ inline StartIncidentRequest& WithTitle(const Aws::String& value) { SetTitle(value); return *this;} /** *

Provide a title for the incident. Providing a title overwrites the title * provided by the response plan.

*/ inline StartIncidentRequest& WithTitle(Aws::String&& value) { SetTitle(std::move(value)); return *this;} /** *

Provide a title for the incident. Providing a title overwrites the title * provided by the response plan.

*/ inline StartIncidentRequest& WithTitle(const char* value) { SetTitle(value); return *this;} /** *

Details of what created the incident record in Incident Manager.

*/ inline const TriggerDetails& GetTriggerDetails() const{ return m_triggerDetails; } /** *

Details of what created the incident record in Incident Manager.

*/ inline bool TriggerDetailsHasBeenSet() const { return m_triggerDetailsHasBeenSet; } /** *

Details of what created the incident record in Incident Manager.

*/ inline void SetTriggerDetails(const TriggerDetails& value) { m_triggerDetailsHasBeenSet = true; m_triggerDetails = value; } /** *

Details of what created the incident record in Incident Manager.

*/ inline void SetTriggerDetails(TriggerDetails&& value) { m_triggerDetailsHasBeenSet = true; m_triggerDetails = std::move(value); } /** *

Details of what created the incident record in Incident Manager.

*/ inline StartIncidentRequest& WithTriggerDetails(const TriggerDetails& value) { SetTriggerDetails(value); return *this;} /** *

Details of what created the incident record in Incident Manager.

*/ inline StartIncidentRequest& WithTriggerDetails(TriggerDetails&& value) { SetTriggerDetails(std::move(value)); return *this;} private: Aws::String m_clientToken; bool m_clientTokenHasBeenSet = false; int m_impact; bool m_impactHasBeenSet = false; Aws::Vector m_relatedItems; bool m_relatedItemsHasBeenSet = false; Aws::String m_responsePlanArn; bool m_responsePlanArnHasBeenSet = false; Aws::String m_title; bool m_titleHasBeenSet = false; TriggerDetails m_triggerDetails; bool m_triggerDetailsHasBeenSet = false; }; } // namespace Model } // namespace SSMIncidents } // namespace Aws