AWS SDK for C++

AWS SDK for C++ Version 1.11.610

Loading...
Searching...
No Matches
ListFoundationModelsRequest.h
1
6#pragma once
7#include <aws/bedrock/Bedrock_EXPORTS.h>
8#include <aws/bedrock/BedrockRequest.h>
9#include <aws/core/utils/memory/stl/AWSString.h>
10#include <aws/bedrock/model/ModelCustomization.h>
11#include <aws/bedrock/model/ModelModality.h>
12#include <aws/bedrock/model/InferenceType.h>
13#include <utility>
14
15namespace Aws
16{
17namespace Http
18{
19 class URI;
20} //namespace Http
21namespace Bedrock
22{
23namespace Model
24{
25
29 {
30 public:
31 AWS_BEDROCK_API ListFoundationModelsRequest() = default;
32
33 // Service request name is the Operation name which will send this request out,
34 // each operation should has unique request name, so that we can get operation's name from this request.
35 // Note: this is not true for response, multiple operations may have the same response name,
36 // so we can not get operation's name from response.
37 inline virtual const char* GetServiceRequestName() const override { return "ListFoundationModels"; }
38
39 AWS_BEDROCK_API Aws::String SerializePayload() const override;
40
41 AWS_BEDROCK_API void AddQueryStringParameters(Aws::Http::URI& uri) const override;
42
43
45
48 inline const Aws::String& GetByProvider() const { return m_byProvider; }
49 inline bool ByProviderHasBeenSet() const { return m_byProviderHasBeenSet; }
50 template<typename ByProviderT = Aws::String>
51 void SetByProvider(ByProviderT&& value) { m_byProviderHasBeenSet = true; m_byProvider = std::forward<ByProviderT>(value); }
52 template<typename ByProviderT = Aws::String>
53 ListFoundationModelsRequest& WithByProvider(ByProviderT&& value) { SetByProvider(std::forward<ByProviderT>(value)); return *this;}
55
57
65 inline ModelCustomization GetByCustomizationType() const { return m_byCustomizationType; }
66 inline bool ByCustomizationTypeHasBeenSet() const { return m_byCustomizationTypeHasBeenSet; }
67 inline void SetByCustomizationType(ModelCustomization value) { m_byCustomizationTypeHasBeenSet = true; m_byCustomizationType = value; }
70
72
75 inline ModelModality GetByOutputModality() const { return m_byOutputModality; }
76 inline bool ByOutputModalityHasBeenSet() const { return m_byOutputModalityHasBeenSet; }
77 inline void SetByOutputModality(ModelModality value) { m_byOutputModalityHasBeenSet = true; m_byOutputModality = value; }
80
82
90 inline InferenceType GetByInferenceType() const { return m_byInferenceType; }
91 inline bool ByInferenceTypeHasBeenSet() const { return m_byInferenceTypeHasBeenSet; }
92 inline void SetByInferenceType(InferenceType value) { m_byInferenceTypeHasBeenSet = true; m_byInferenceType = value; }
95 private:
96
97 Aws::String m_byProvider;
98 bool m_byProviderHasBeenSet = false;
99
100 ModelCustomization m_byCustomizationType{ModelCustomization::NOT_SET};
101 bool m_byCustomizationTypeHasBeenSet = false;
102
103 ModelModality m_byOutputModality{ModelModality::NOT_SET};
104 bool m_byOutputModalityHasBeenSet = false;
105
106 InferenceType m_byInferenceType{InferenceType::NOT_SET};
107 bool m_byInferenceTypeHasBeenSet = false;
108 };
109
110} // namespace Model
111} // namespace Bedrock
112} // namespace Aws
ListFoundationModelsRequest & WithByCustomizationType(ModelCustomization value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ListFoundationModelsRequest & WithByProvider(ByProviderT &&value)
ListFoundationModelsRequest & WithByInferenceType(InferenceType value)
AWS_BEDROCK_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
AWS_BEDROCK_API ListFoundationModelsRequest()=default
ListFoundationModelsRequest & WithByOutputModality(ModelModality value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String