Class BedrockProvider.DescriptorImpl
java.lang.Object
hudson.model.Descriptor<BaseAIProvider>
io.jenkins.plugins.explain_error.provider.BaseAIProvider.BaseProviderDescriptor
io.jenkins.plugins.explain_error.provider.BedrockProvider.DescriptorImpl
- Enclosing class:
BedrockProvider
@OptionalExtension(requirePlugins="aws-java-sdk2-core")
@Symbol("bedrock")
public static class BedrockProvider.DescriptorImpl
extends BaseAIProvider.BaseProviderDescriptor
-
Nested Class Summary
Nested classes/interfaces inherited from class hudson.model.Descriptor
Descriptor.FormException, Descriptor.PropertyType, Descriptor.Self -
Field Summary
Fields inherited from class hudson.model.Descriptor
clazz -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiondoCheckRoleArn(String value) doCheckUrl(String value) doTestConfiguration(String url, String model, String region, String roleArn) Method to test the AI API configuration.Methods inherited from class hudson.model.Descriptor
addHelpFileRedirect, bindJSON, bindJSON, calcAutoCompleteSettings, calcFillSettings, configure, configure, configure, doHelp, doHelp, find, find, findByDescribableClassName, findById, getCategory, getCheckMethod, getCheckUrl, getConfigFile, getConfigPage, getCurrentDescriptorByNameUrl, getDescriptorFullUrl, getDescriptorUrl, getGlobalConfigPage, getGlobalPropertyType, getHelpFile, getHelpFile, getHelpFile, getId, getJsonSafeClassName, getKlass, getPlugin, getPossibleViewNames, getPropertyType, getPropertyType, getPropertyTypeOrDie, getRequiredGlobalConfigPagePermission, getStaticHelpUrl, getStaticHelpUrl, getT, getViewPage, isInstance, isSubTypeOf, load, newInstance, newInstance, newInstance, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, newInstancesFromHeteroList, save, self, toArray, toList, toMap
-
Constructor Details
-
DescriptorImpl
public DescriptorImpl()
-
-
Method Details
-
getDisplayName
- Overrides:
getDisplayNamein classDescriptor<BaseAIProvider>
-
getDefaultModel
- Specified by:
getDefaultModelin classBaseAIProvider.BaseProviderDescriptor
-
getDefaultRegion
-
doTestConfiguration
@POST public FormValidation doTestConfiguration(@QueryParameter("url") String url, @QueryParameter("model") String model, @QueryParameter("region") String region, @QueryParameter("roleArn") String roleArn) throws ExplanationException Method to test the AI API configuration. This is called when the "Test Configuration" button is clicked.- Throws:
ExplanationException
-
doCheckUrl
- Overrides:
doCheckUrlin classBaseAIProvider.BaseProviderDescriptor
-
doCheckRoleArn
-