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

118 lines
4.0 KiB
C
Raw Normal View History

/**
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
* SPDX-License-Identifier: Apache-2.0.
*/
#pragma once
#include <aws/machinelearning/MachineLearning_EXPORTS.h>
#include <aws/machinelearning/MachineLearningRequest.h>
#include <aws/core/utils/memory/stl/AWSString.h>
#include <utility>
namespace Aws
{
namespace MachineLearning
{
namespace Model
{
/**
*/
class AWS_MACHINELEARNING_API GetMLModelRequest : public MachineLearningRequest
{
public:
GetMLModelRequest();
// 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 "GetMLModel"; }
Aws::String SerializePayload() const override;
Aws::Http::HeaderValueCollection GetRequestSpecificHeaders() const override;
/**
* <p>The ID assigned to the <code>MLModel</code> at creation.</p>
*/
inline const Aws::String& GetMLModelId() const{ return m_mLModelId; }
/**
* <p>The ID assigned to the <code>MLModel</code> at creation.</p>
*/
inline bool MLModelIdHasBeenSet() const { return m_mLModelIdHasBeenSet; }
/**
* <p>The ID assigned to the <code>MLModel</code> at creation.</p>
*/
inline void SetMLModelId(const Aws::String& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = value; }
/**
* <p>The ID assigned to the <code>MLModel</code> at creation.</p>
*/
inline void SetMLModelId(Aws::String&& value) { m_mLModelIdHasBeenSet = true; m_mLModelId = std::move(value); }
/**
* <p>The ID assigned to the <code>MLModel</code> at creation.</p>
*/
inline void SetMLModelId(const char* value) { m_mLModelIdHasBeenSet = true; m_mLModelId.assign(value); }
/**
* <p>The ID assigned to the <code>MLModel</code> at creation.</p>
*/
inline GetMLModelRequest& WithMLModelId(const Aws::String& value) { SetMLModelId(value); return *this;}
/**
* <p>The ID assigned to the <code>MLModel</code> at creation.</p>
*/
inline GetMLModelRequest& WithMLModelId(Aws::String&& value) { SetMLModelId(std::move(value)); return *this;}
/**
* <p>The ID assigned to the <code>MLModel</code> at creation.</p>
*/
inline GetMLModelRequest& WithMLModelId(const char* value) { SetMLModelId(value); return *this;}
/**
* <p>Specifies whether the <code>GetMLModel</code> operation should return
* <code>Recipe</code>.</p> <p>If true, <code>Recipe</code> is returned.</p> <p>If
* false, <code>Recipe</code> is not returned.</p>
*/
inline bool GetVerbose() const{ return m_verbose; }
/**
* <p>Specifies whether the <code>GetMLModel</code> operation should return
* <code>Recipe</code>.</p> <p>If true, <code>Recipe</code> is returned.</p> <p>If
* false, <code>Recipe</code> is not returned.</p>
*/
inline bool VerboseHasBeenSet() const { return m_verboseHasBeenSet; }
/**
* <p>Specifies whether the <code>GetMLModel</code> operation should return
* <code>Recipe</code>.</p> <p>If true, <code>Recipe</code> is returned.</p> <p>If
* false, <code>Recipe</code> is not returned.</p>
*/
inline void SetVerbose(bool value) { m_verboseHasBeenSet = true; m_verbose = value; }
/**
* <p>Specifies whether the <code>GetMLModel</code> operation should return
* <code>Recipe</code>.</p> <p>If true, <code>Recipe</code> is returned.</p> <p>If
* false, <code>Recipe</code> is not returned.</p>
*/
inline GetMLModelRequest& WithVerbose(bool value) { SetVerbose(value); return *this;}
private:
Aws::String m_mLModelId;
bool m_mLModelIdHasBeenSet;
bool m_verbose;
bool m_verboseHasBeenSet;
};
} // namespace Model
} // namespace MachineLearning
} // namespace Aws