/** * Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. * SPDX-License-Identifier: Apache-2.0. */ #pragma once #include #include #include #include namespace Aws { namespace ApplicationInsights { namespace Model { /** */ class AWS_APPLICATIONINSIGHTS_API DescribeObservationRequest : public ApplicationInsightsRequest { public: DescribeObservationRequest(); // 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 "DescribeObservation"; } Aws::String SerializePayload() const override; Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override; /** *

The ID of the observation.

*/ inline const Aws::String& GetObservationId() const{ return m_observationId; } /** *

The ID of the observation.

*/ inline bool ObservationIdHasBeenSet() const { return m_observationIdHasBeenSet; } /** *

The ID of the observation.

*/ inline void SetObservationId(const Aws::String& value) { m_observationIdHasBeenSet = true; m_observationId = value; } /** *

The ID of the observation.

*/ inline void SetObservationId(Aws::String&& value) { m_observationIdHasBeenSet = true; m_observationId = std::move(value); } /** *

The ID of the observation.

*/ inline void SetObservationId(const char* value) { m_observationIdHasBeenSet = true; m_observationId.assign(value); } /** *

The ID of the observation.

*/ inline DescribeObservationRequest& WithObservationId(const Aws::String& value) { SetObservationId(value); return *this;} /** *

The ID of the observation.

*/ inline DescribeObservationRequest& WithObservationId(Aws::String&& value) { SetObservationId(std::move(value)); return *this;} /** *

The ID of the observation.

*/ inline DescribeObservationRequest& WithObservationId(const char* value) { SetObservationId(value); return *this;} private: Aws::String m_observationId; bool m_observationIdHasBeenSet; }; } // namespace Model } // namespace ApplicationInsights } // namespace Aws