AWS SDK for C++

AWS SDK for C++ Version 1.11.440

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();
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 inline void SetByProvider(const Aws::String& value) { m_byProviderHasBeenSet = true; m_byProvider = value; }
51 inline void SetByProvider(Aws::String&& value) { m_byProviderHasBeenSet = true; m_byProvider = std::move(value); }
52 inline void SetByProvider(const char* value) { m_byProviderHasBeenSet = true; m_byProvider.assign(value); }
53 inline ListFoundationModelsRequest& WithByProvider(const Aws::String& value) { SetByProvider(value); return *this;}
54 inline ListFoundationModelsRequest& WithByProvider(Aws::String&& value) { SetByProvider(std::move(value)); return *this;}
55 inline ListFoundationModelsRequest& WithByProvider(const char* value) { SetByProvider(value); return *this;}
57
59
67 inline const ModelCustomization& GetByCustomizationType() const{ return m_byCustomizationType; }
68 inline bool ByCustomizationTypeHasBeenSet() const { return m_byCustomizationTypeHasBeenSet; }
69 inline void SetByCustomizationType(const ModelCustomization& value) { m_byCustomizationTypeHasBeenSet = true; m_byCustomizationType = value; }
70 inline void SetByCustomizationType(ModelCustomization&& value) { m_byCustomizationTypeHasBeenSet = true; m_byCustomizationType = std::move(value); }
74
76
79 inline const ModelModality& GetByOutputModality() const{ return m_byOutputModality; }
80 inline bool ByOutputModalityHasBeenSet() const { return m_byOutputModalityHasBeenSet; }
81 inline void SetByOutputModality(const ModelModality& value) { m_byOutputModalityHasBeenSet = true; m_byOutputModality = value; }
82 inline void SetByOutputModality(ModelModality&& value) { m_byOutputModalityHasBeenSet = true; m_byOutputModality = std::move(value); }
84 inline ListFoundationModelsRequest& WithByOutputModality(ModelModality&& value) { SetByOutputModality(std::move(value)); return *this;}
86
88
96 inline const InferenceType& GetByInferenceType() const{ return m_byInferenceType; }
97 inline bool ByInferenceTypeHasBeenSet() const { return m_byInferenceTypeHasBeenSet; }
98 inline void SetByInferenceType(const InferenceType& value) { m_byInferenceTypeHasBeenSet = true; m_byInferenceType = value; }
99 inline void SetByInferenceType(InferenceType&& value) { m_byInferenceTypeHasBeenSet = true; m_byInferenceType = std::move(value); }
101 inline ListFoundationModelsRequest& WithByInferenceType(InferenceType&& value) { SetByInferenceType(std::move(value)); return *this;}
103 private:
104
105 Aws::String m_byProvider;
106 bool m_byProviderHasBeenSet = false;
107
108 ModelCustomization m_byCustomizationType;
109 bool m_byCustomizationTypeHasBeenSet = false;
110
111 ModelModality m_byOutputModality;
112 bool m_byOutputModalityHasBeenSet = false;
113
114 InferenceType m_byInferenceType;
115 bool m_byInferenceTypeHasBeenSet = false;
116 };
117
118} // namespace Model
119} // namespace Bedrock
120} // namespace Aws
void SetByCustomizationType(const ModelCustomization &value)
ListFoundationModelsRequest & WithByOutputModality(const ModelModality &value)
ListFoundationModelsRequest & WithByCustomizationType(const ModelCustomization &value)
AWS_BEDROCK_API Aws::String SerializePayload() const override
virtual const char * GetServiceRequestName() const override
ListFoundationModelsRequest & WithByProvider(Aws::String &&value)
ListFoundationModelsRequest & WithByInferenceType(const InferenceType &value)
ListFoundationModelsRequest & WithByInferenceType(InferenceType &&value)
ListFoundationModelsRequest & WithByProvider(const char *value)
ListFoundationModelsRequest & WithByProvider(const Aws::String &value)
ListFoundationModelsRequest & WithByOutputModality(ModelModality &&value)
AWS_BEDROCK_API void AddQueryStringParameters(Aws::Http::URI &uri) const override
ListFoundationModelsRequest & WithByCustomizationType(ModelCustomization &&value)
std::basic_string< char, std::char_traits< char >, Aws::Allocator< char > > String