/** * 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 EC2 { namespace Model { /** */ class ReportInstanceStatusRequest : public EC2Request { public: AWS_EC2_API ReportInstanceStatusRequest(); // 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 "ReportInstanceStatus"; } AWS_EC2_API Aws::String SerializePayload() const override; protected: AWS_EC2_API void DumpBodyToUrl(Aws::Http::URI& uri ) const override; public: /** *

Descriptive text about the health state of your instance.

*/ inline const Aws::String& GetDescription() const{ return m_description; } /** *

Descriptive text about the health state of your instance.

*/ inline bool DescriptionHasBeenSet() const { return m_descriptionHasBeenSet; } /** *

Descriptive text about the health state of your instance.

*/ inline void SetDescription(const Aws::String& value) { m_descriptionHasBeenSet = true; m_description = value; } /** *

Descriptive text about the health state of your instance.

*/ inline void SetDescription(Aws::String&& value) { m_descriptionHasBeenSet = true; m_description = std::move(value); } /** *

Descriptive text about the health state of your instance.

*/ inline void SetDescription(const char* value) { m_descriptionHasBeenSet = true; m_description.assign(value); } /** *

Descriptive text about the health state of your instance.

*/ inline ReportInstanceStatusRequest& WithDescription(const Aws::String& value) { SetDescription(value); return *this;} /** *

Descriptive text about the health state of your instance.

*/ inline ReportInstanceStatusRequest& WithDescription(Aws::String&& value) { SetDescription(std::move(value)); return *this;} /** *

Descriptive text about the health state of your instance.

*/ inline ReportInstanceStatusRequest& WithDescription(const char* value) { SetDescription(value); return *this;} /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool GetDryRun() const{ return m_dryRun; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline bool DryRunHasBeenSet() const { return m_dryRunHasBeenSet; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline void SetDryRun(bool value) { m_dryRunHasBeenSet = true; m_dryRun = value; } /** *

Checks whether you have the required permissions for the action, without * actually making the request, and provides an error response. If you have the * required permissions, the error response is DryRunOperation. * Otherwise, it is UnauthorizedOperation.

*/ inline ReportInstanceStatusRequest& WithDryRun(bool value) { SetDryRun(value); return *this;} /** *

The time at which the reported instance health state ended.

*/ inline const Aws::Utils::DateTime& GetEndTime() const{ return m_endTime; } /** *

The time at which the reported instance health state ended.

*/ inline bool EndTimeHasBeenSet() const { return m_endTimeHasBeenSet; } /** *

The time at which the reported instance health state ended.

*/ inline void SetEndTime(const Aws::Utils::DateTime& value) { m_endTimeHasBeenSet = true; m_endTime = value; } /** *

The time at which the reported instance health state ended.

*/ inline void SetEndTime(Aws::Utils::DateTime&& value) { m_endTimeHasBeenSet = true; m_endTime = std::move(value); } /** *

The time at which the reported instance health state ended.

*/ inline ReportInstanceStatusRequest& WithEndTime(const Aws::Utils::DateTime& value) { SetEndTime(value); return *this;} /** *

The time at which the reported instance health state ended.

*/ inline ReportInstanceStatusRequest& WithEndTime(Aws::Utils::DateTime&& value) { SetEndTime(std::move(value)); return *this;} /** *

The instances.

*/ inline const Aws::Vector& GetInstances() const{ return m_instances; } /** *

The instances.

*/ inline bool InstancesHasBeenSet() const { return m_instancesHasBeenSet; } /** *

The instances.

*/ inline void SetInstances(const Aws::Vector& value) { m_instancesHasBeenSet = true; m_instances = value; } /** *

The instances.

*/ inline void SetInstances(Aws::Vector&& value) { m_instancesHasBeenSet = true; m_instances = std::move(value); } /** *

The instances.

*/ inline ReportInstanceStatusRequest& WithInstances(const Aws::Vector& value) { SetInstances(value); return *this;} /** *

The instances.

*/ inline ReportInstanceStatusRequest& WithInstances(Aws::Vector&& value) { SetInstances(std::move(value)); return *this;} /** *

The instances.

*/ inline ReportInstanceStatusRequest& AddInstances(const Aws::String& value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; } /** *

The instances.

*/ inline ReportInstanceStatusRequest& AddInstances(Aws::String&& value) { m_instancesHasBeenSet = true; m_instances.push_back(std::move(value)); return *this; } /** *

The instances.

*/ inline ReportInstanceStatusRequest& AddInstances(const char* value) { m_instancesHasBeenSet = true; m_instances.push_back(value); return *this; } /** *

The reason codes that describe the health state of your instance.

    *
  • instance-stuck-in-state: My instance is stuck in a * state.

  • unresponsive: My instance is * unresponsive.

  • not-accepting-credentials: My * instance is not accepting my credentials.

  • * password-not-available: A password is not available for my * instance.

  • performance-network: My instance is * experiencing performance problems that I believe are network related.

  • *
  • performance-instance-store: My instance is experiencing * performance problems that I believe are related to the instance stores.

    *
  • performance-ebs-volume: My instance is experiencing * performance problems that I believe are related to an EBS volume.

  • *

    performance-other: My instance is experiencing performance * problems.

  • other: [explain using the description * parameter]

*/ inline const Aws::Vector& GetReasonCodes() const{ return m_reasonCodes; } /** *

The reason codes that describe the health state of your instance.

    *
  • instance-stuck-in-state: My instance is stuck in a * state.

  • unresponsive: My instance is * unresponsive.

  • not-accepting-credentials: My * instance is not accepting my credentials.

  • * password-not-available: A password is not available for my * instance.

  • performance-network: My instance is * experiencing performance problems that I believe are network related.

  • *
  • performance-instance-store: My instance is experiencing * performance problems that I believe are related to the instance stores.

    *
  • performance-ebs-volume: My instance is experiencing * performance problems that I believe are related to an EBS volume.

  • *

    performance-other: My instance is experiencing performance * problems.

  • other: [explain using the description * parameter]

*/ inline bool ReasonCodesHasBeenSet() const { return m_reasonCodesHasBeenSet; } /** *

The reason codes that describe the health state of your instance.

    *
  • instance-stuck-in-state: My instance is stuck in a * state.

  • unresponsive: My instance is * unresponsive.

  • not-accepting-credentials: My * instance is not accepting my credentials.

  • * password-not-available: A password is not available for my * instance.

  • performance-network: My instance is * experiencing performance problems that I believe are network related.

  • *
  • performance-instance-store: My instance is experiencing * performance problems that I believe are related to the instance stores.

    *
  • performance-ebs-volume: My instance is experiencing * performance problems that I believe are related to an EBS volume.

  • *

    performance-other: My instance is experiencing performance * problems.

  • other: [explain using the description * parameter]

*/ inline void SetReasonCodes(const Aws::Vector& value) { m_reasonCodesHasBeenSet = true; m_reasonCodes = value; } /** *

The reason codes that describe the health state of your instance.

    *
  • instance-stuck-in-state: My instance is stuck in a * state.

  • unresponsive: My instance is * unresponsive.

  • not-accepting-credentials: My * instance is not accepting my credentials.

  • * password-not-available: A password is not available for my * instance.

  • performance-network: My instance is * experiencing performance problems that I believe are network related.

  • *
  • performance-instance-store: My instance is experiencing * performance problems that I believe are related to the instance stores.

    *
  • performance-ebs-volume: My instance is experiencing * performance problems that I believe are related to an EBS volume.

  • *

    performance-other: My instance is experiencing performance * problems.

  • other: [explain using the description * parameter]

*/ inline void SetReasonCodes(Aws::Vector&& value) { m_reasonCodesHasBeenSet = true; m_reasonCodes = std::move(value); } /** *

The reason codes that describe the health state of your instance.

    *
  • instance-stuck-in-state: My instance is stuck in a * state.

  • unresponsive: My instance is * unresponsive.

  • not-accepting-credentials: My * instance is not accepting my credentials.

  • * password-not-available: A password is not available for my * instance.

  • performance-network: My instance is * experiencing performance problems that I believe are network related.

  • *
  • performance-instance-store: My instance is experiencing * performance problems that I believe are related to the instance stores.

    *
  • performance-ebs-volume: My instance is experiencing * performance problems that I believe are related to an EBS volume.

  • *

    performance-other: My instance is experiencing performance * problems.

  • other: [explain using the description * parameter]

*/ inline ReportInstanceStatusRequest& WithReasonCodes(const Aws::Vector& value) { SetReasonCodes(value); return *this;} /** *

The reason codes that describe the health state of your instance.

    *
  • instance-stuck-in-state: My instance is stuck in a * state.

  • unresponsive: My instance is * unresponsive.

  • not-accepting-credentials: My * instance is not accepting my credentials.

  • * password-not-available: A password is not available for my * instance.

  • performance-network: My instance is * experiencing performance problems that I believe are network related.

  • *
  • performance-instance-store: My instance is experiencing * performance problems that I believe are related to the instance stores.

    *
  • performance-ebs-volume: My instance is experiencing * performance problems that I believe are related to an EBS volume.

  • *

    performance-other: My instance is experiencing performance * problems.

  • other: [explain using the description * parameter]

*/ inline ReportInstanceStatusRequest& WithReasonCodes(Aws::Vector&& value) { SetReasonCodes(std::move(value)); return *this;} /** *

The reason codes that describe the health state of your instance.

    *
  • instance-stuck-in-state: My instance is stuck in a * state.

  • unresponsive: My instance is * unresponsive.

  • not-accepting-credentials: My * instance is not accepting my credentials.

  • * password-not-available: A password is not available for my * instance.

  • performance-network: My instance is * experiencing performance problems that I believe are network related.

  • *
  • performance-instance-store: My instance is experiencing * performance problems that I believe are related to the instance stores.

    *
  • performance-ebs-volume: My instance is experiencing * performance problems that I believe are related to an EBS volume.

  • *

    performance-other: My instance is experiencing performance * problems.

  • other: [explain using the description * parameter]

*/ inline ReportInstanceStatusRequest& AddReasonCodes(const ReportInstanceReasonCodes& value) { m_reasonCodesHasBeenSet = true; m_reasonCodes.push_back(value); return *this; } /** *

The reason codes that describe the health state of your instance.

    *
  • instance-stuck-in-state: My instance is stuck in a * state.

  • unresponsive: My instance is * unresponsive.

  • not-accepting-credentials: My * instance is not accepting my credentials.

  • * password-not-available: A password is not available for my * instance.

  • performance-network: My instance is * experiencing performance problems that I believe are network related.

  • *
  • performance-instance-store: My instance is experiencing * performance problems that I believe are related to the instance stores.

    *
  • performance-ebs-volume: My instance is experiencing * performance problems that I believe are related to an EBS volume.

  • *

    performance-other: My instance is experiencing performance * problems.

  • other: [explain using the description * parameter]

*/ inline ReportInstanceStatusRequest& AddReasonCodes(ReportInstanceReasonCodes&& value) { m_reasonCodesHasBeenSet = true; m_reasonCodes.push_back(std::move(value)); return *this; } /** *

The time at which the reported instance health state began.

*/ inline const Aws::Utils::DateTime& GetStartTime() const{ return m_startTime; } /** *

The time at which the reported instance health state began.

*/ inline bool StartTimeHasBeenSet() const { return m_startTimeHasBeenSet; } /** *

The time at which the reported instance health state began.

*/ inline void SetStartTime(const Aws::Utils::DateTime& value) { m_startTimeHasBeenSet = true; m_startTime = value; } /** *

The time at which the reported instance health state began.

*/ inline void SetStartTime(Aws::Utils::DateTime&& value) { m_startTimeHasBeenSet = true; m_startTime = std::move(value); } /** *

The time at which the reported instance health state began.

*/ inline ReportInstanceStatusRequest& WithStartTime(const Aws::Utils::DateTime& value) { SetStartTime(value); return *this;} /** *

The time at which the reported instance health state began.

*/ inline ReportInstanceStatusRequest& WithStartTime(Aws::Utils::DateTime&& value) { SetStartTime(std::move(value)); return *this;} /** *

The status of all instances listed.

*/ inline const ReportStatusType& GetStatus() const{ return m_status; } /** *

The status of all instances listed.

*/ inline bool StatusHasBeenSet() const { return m_statusHasBeenSet; } /** *

The status of all instances listed.

*/ inline void SetStatus(const ReportStatusType& value) { m_statusHasBeenSet = true; m_status = value; } /** *

The status of all instances listed.

*/ inline void SetStatus(ReportStatusType&& value) { m_statusHasBeenSet = true; m_status = std::move(value); } /** *

The status of all instances listed.

*/ inline ReportInstanceStatusRequest& WithStatus(const ReportStatusType& value) { SetStatus(value); return *this;} /** *

The status of all instances listed.

*/ inline ReportInstanceStatusRequest& WithStatus(ReportStatusType&& value) { SetStatus(std::move(value)); return *this;} private: Aws::String m_description; bool m_descriptionHasBeenSet = false; bool m_dryRun; bool m_dryRunHasBeenSet = false; Aws::Utils::DateTime m_endTime; bool m_endTimeHasBeenSet = false; Aws::Vector m_instances; bool m_instancesHasBeenSet = false; Aws::Vector m_reasonCodes; bool m_reasonCodesHasBeenSet = false; Aws::Utils::DateTime m_startTime; bool m_startTimeHasBeenSet = false; ReportStatusType m_status; bool m_statusHasBeenSet = false; }; } // namespace Model } // namespace EC2 } // namespace Aws