Class ImagesRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
org.mbari.vars.annosaurus.sdk.kiota.v1.images.ImagesRequestBuilder
@Generated("com.microsoft.kiota")
public class ImagesRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Builds and executes requests for operations under /v1/images
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclassConfiguration for the request such as headers, query parameters, and middleware options. -
Field Summary
Fields inherited from class com.microsoft.kiota.BaseRequestBuilder
pathParameters, requestAdapter, urlTemplate -
Constructor Summary
ConstructorsConstructorDescriptionImagesRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newImagesRequestBuilderand sets the default values.ImagesRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newImagesRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbyImageReferenceUuid(UUID imageReferenceUuid) Gets an item from the org.mbari.vars.annosaurus.sdk.kiota.v1.images.item collectionname()The name propertypost(ImageCreateSC body) Create a new imagepost(ImageCreateSC body, Consumer<ImagesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new imagecom.microsoft.kiota.RequestInformationCreate a new imagecom.microsoft.kiota.RequestInformationtoPostRequestInformation(ImageCreateSC body, Consumer<ImagesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new imageurl()The url propertyThe videoreference propertyReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
ImagesRequestBuilder
public ImagesRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newImagesRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
ImagesRequestBuilder
public ImagesRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newImagesRequestBuilderand sets the default values.- Parameters:
rawUrl- The raw URL to use for the request builder.requestAdapter- The request adapter to use to execute the requests.
-
-
Method Details
-
name
-
url
-
videoreference
The videoreference property- Returns:
- a
VideoreferenceRequestBuilder
-
byImageReferenceUuid
@Nonnull public WithImageReferenceUuItemRequestBuilder byImageReferenceUuid(@Nonnull UUID imageReferenceUuid) Gets an item from the org.mbari.vars.annosaurus.sdk.kiota.v1.images.item collection- Parameters:
imageReferenceUuid- Unique identifier of the item- Returns:
- a
WithImageReferenceUuItemRequestBuilder
-
post
Create a new image- Parameters:
body- The request body- Returns:
- a
ImageSC - Throws:
BadRequest- When receiving a 400 status codeUnauthorized- When receiving a 401 status codeNotFound- When receiving a 404 status codeServerError- When receiving a 500 status code
-
post
@Nullable public ImageSC post(@Nonnull ImageCreateSC body, @Nullable Consumer<ImagesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new image- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ImageSC - Throws:
BadRequest- When receiving a 400 status codeUnauthorized- When receiving a 401 status codeNotFound- When receiving a 404 status codeServerError- When receiving a 500 status code
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull ImageCreateSC body) Create a new image- Parameters:
body- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull ImageCreateSC body, @Nullable Consumer<ImagesRequestBuilder.PostRequestConfiguration> requestConfiguration) Create a new image- Parameters:
body- The request bodyrequestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
RequestInformation
-
withUrl
Returns a request builder with the provided arbitrary URL. Using this method means any other path or query parameters are ignored.- Parameters:
rawUrl- The raw URL to use for the request builder.- Returns:
- a
ImagesRequestBuilder
-