This repository has been archived on 2025-09-14. You can view files and clone it, but cannot push or open issues or pull requests.
Files
pxz-hos-client-cpp-module/support/aws-sdk-cpp-master/aws-cpp-sdk-codeguruprofiler/include/aws/codeguruprofiler/model/SubmitFeedbackRequest.h

249 lines
9.2 KiB
C++

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/codeguruprofiler/CodeGuruProfiler_EXPORTS.h>
#include <aws/codeguruprofiler/CodeGuruProfilerRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <aws/codeguruprofiler/model/FeedbackType.h>
#include <utility>
namespace Aws
{
namespace CodeGuruProfiler
{
namespace Model
{
/**
* <p>The structure representing the SubmitFeedbackRequest.</p><p><h3>See
* Also:</h3> <a
* href="http://docs.aws.amazon.com/goto/WebAPI/codeguruprofiler-2019-07-18/SubmitFeedbackRequest">AWS
* API Reference</a></p>
*/
class AWS_CODEGURUPROFILER_API SubmitFeedbackRequest : public CodeGuruProfilerRequest
{
public:
SubmitFeedbackRequest();
// 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 "SubmitFeedback"; }
Aws::String SerializePayload() const override;
/**
* <p>The universally unique identifier (UUID) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AnomalyInstance.html">
* <code>AnomalyInstance</code> </a> object that is included in the analysis
* data.</p>
*/
inline const Aws::String& GetAnomalyInstanceId() const{ return m_anomalyInstanceId; }
/**
* <p>The universally unique identifier (UUID) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AnomalyInstance.html">
* <code>AnomalyInstance</code> </a> object that is included in the analysis
* data.</p>
*/
inline bool AnomalyInstanceIdHasBeenSet() const { return m_anomalyInstanceIdHasBeenSet; }
/**
* <p>The universally unique identifier (UUID) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AnomalyInstance.html">
* <code>AnomalyInstance</code> </a> object that is included in the analysis
* data.</p>
*/
inline void SetAnomalyInstanceId(const Aws::String& value) { m_anomalyInstanceIdHasBeenSet = true; m_anomalyInstanceId = value; }
/**
* <p>The universally unique identifier (UUID) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AnomalyInstance.html">
* <code>AnomalyInstance</code> </a> object that is included in the analysis
* data.</p>
*/
inline void SetAnomalyInstanceId(Aws::String&& value) { m_anomalyInstanceIdHasBeenSet = true; m_anomalyInstanceId = std::move(value); }
/**
* <p>The universally unique identifier (UUID) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AnomalyInstance.html">
* <code>AnomalyInstance</code> </a> object that is included in the analysis
* data.</p>
*/
inline void SetAnomalyInstanceId(const char* value) { m_anomalyInstanceIdHasBeenSet = true; m_anomalyInstanceId.assign(value); }
/**
* <p>The universally unique identifier (UUID) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AnomalyInstance.html">
* <code>AnomalyInstance</code> </a> object that is included in the analysis
* data.</p>
*/
inline SubmitFeedbackRequest& WithAnomalyInstanceId(const Aws::String& value) { SetAnomalyInstanceId(value); return *this;}
/**
* <p>The universally unique identifier (UUID) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AnomalyInstance.html">
* <code>AnomalyInstance</code> </a> object that is included in the analysis
* data.</p>
*/
inline SubmitFeedbackRequest& WithAnomalyInstanceId(Aws::String&& value) { SetAnomalyInstanceId(std::move(value)); return *this;}
/**
* <p>The universally unique identifier (UUID) of the <a
* href="https://docs.aws.amazon.com/codeguru/latest/profiler-api/API_AnomalyInstance.html">
* <code>AnomalyInstance</code> </a> object that is included in the analysis
* data.</p>
*/
inline SubmitFeedbackRequest& WithAnomalyInstanceId(const char* value) { SetAnomalyInstanceId(value); return *this;}
/**
* <p>Optional feedback about this anomaly.</p>
*/
inline const Aws::String& GetComment() const{ return m_comment; }
/**
* <p>Optional feedback about this anomaly.</p>
*/
inline bool CommentHasBeenSet() const { return m_commentHasBeenSet; }
/**
* <p>Optional feedback about this anomaly.</p>
*/
inline void SetComment(const Aws::String& value) { m_commentHasBeenSet = true; m_comment = value; }
/**
* <p>Optional feedback about this anomaly.</p>
*/
inline void SetComment(Aws::String&& value) { m_commentHasBeenSet = true; m_comment = std::move(value); }
/**
* <p>Optional feedback about this anomaly.</p>
*/
inline void SetComment(const char* value) { m_commentHasBeenSet = true; m_comment.assign(value); }
/**
* <p>Optional feedback about this anomaly.</p>
*/
inline SubmitFeedbackRequest& WithComment(const Aws::String& value) { SetComment(value); return *this;}
/**
* <p>Optional feedback about this anomaly.</p>
*/
inline SubmitFeedbackRequest& WithComment(Aws::String&& value) { SetComment(std::move(value)); return *this;}
/**
* <p>Optional feedback about this anomaly.</p>
*/
inline SubmitFeedbackRequest& WithComment(const char* value) { SetComment(value); return *this;}
/**
* <p>The name of the profiling group that is associated with the analysis
* data.</p>
*/
inline const Aws::String& GetProfilingGroupName() const{ return m_profilingGroupName; }
/**
* <p>The name of the profiling group that is associated with the analysis
* data.</p>
*/
inline bool ProfilingGroupNameHasBeenSet() const { return m_profilingGroupNameHasBeenSet; }
/**
* <p>The name of the profiling group that is associated with the analysis
* data.</p>
*/
inline void SetProfilingGroupName(const Aws::String& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = value; }
/**
* <p>The name of the profiling group that is associated with the analysis
* data.</p>
*/
inline void SetProfilingGroupName(Aws::String&& value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName = std::move(value); }
/**
* <p>The name of the profiling group that is associated with the analysis
* data.</p>
*/
inline void SetProfilingGroupName(const char* value) { m_profilingGroupNameHasBeenSet = true; m_profilingGroupName.assign(value); }
/**
* <p>The name of the profiling group that is associated with the analysis
* data.</p>
*/
inline SubmitFeedbackRequest& WithProfilingGroupName(const Aws::String& value) { SetProfilingGroupName(value); return *this;}
/**
* <p>The name of the profiling group that is associated with the analysis
* data.</p>
*/
inline SubmitFeedbackRequest& WithProfilingGroupName(Aws::String&& value) { SetProfilingGroupName(std::move(value)); return *this;}
/**
* <p>The name of the profiling group that is associated with the analysis
* data.</p>
*/
inline SubmitFeedbackRequest& WithProfilingGroupName(const char* value) { SetProfilingGroupName(value); return *this;}
/**
* <p> The feedback tpye. Thee are two valid values, <code>Positive</code> and
* <code>Negative</code>. </p>
*/
inline const FeedbackType& GetType() const{ return m_type; }
/**
* <p> The feedback tpye. Thee are two valid values, <code>Positive</code> and
* <code>Negative</code>. </p>
*/
inline bool TypeHasBeenSet() const { return m_typeHasBeenSet; }
/**
* <p> The feedback tpye. Thee are two valid values, <code>Positive</code> and
* <code>Negative</code>. </p>
*/
inline void SetType(const FeedbackType& value) { m_typeHasBeenSet = true; m_type = value; }
/**
* <p> The feedback tpye. Thee are two valid values, <code>Positive</code> and
* <code>Negative</code>. </p>
*/
inline void SetType(FeedbackType&& value) { m_typeHasBeenSet = true; m_type = std::move(value); }
/**
* <p> The feedback tpye. Thee are two valid values, <code>Positive</code> and
* <code>Negative</code>. </p>
*/
inline SubmitFeedbackRequest& WithType(const FeedbackType& value) { SetType(value); return *this;}
/**
* <p> The feedback tpye. Thee are two valid values, <code>Positive</code> and
* <code>Negative</code>. </p>
*/
inline SubmitFeedbackRequest& WithType(FeedbackType&& value) { SetType(std::move(value)); return *this;}
private:
Aws::String m_anomalyInstanceId;
bool m_anomalyInstanceIdHasBeenSet;
Aws::String m_comment;
bool m_commentHasBeenSet;
Aws::String m_profilingGroupName;
bool m_profilingGroupNameHasBeenSet;
FeedbackType m_type;
bool m_typeHasBeenSet;
};
} // namespace Model
} // namespace CodeGuruProfiler
} // namespace Aws