Class AssociationsRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
org.mbari.vars.annosaurus.sdk.kiota.v1.associations.AssociationsRequestBuilder
@Generated("com.microsoft.kiota")
public class AssociationsRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Builds and executes requests for operations under /v1/associations
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionclass
Configuration 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
ConstructorsConstructorDescriptionAssociationsRequestBuilder
(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newAssociationsRequestBuilder
and sets the default values.AssociationsRequestBuilder
(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newAssociationsRequestBuilder
and sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionbulk()
The bulk propertybyAssociationUuId
(UUID associationUuId) Gets an item from the org.mbari.vars.annosaurus.sdk.kiota.v1.associations.item collectionThe conceptassociations propertyThe deletePath propertypost
(AssociationSC body) Create an associationpost
(AssociationSC body, Consumer<AssociationsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create an associationThe toconcept propertycom.microsoft.kiota.RequestInformation
Create an associationcom.microsoft.kiota.RequestInformation
toPostRequestInformation
(AssociationSC body, Consumer<AssociationsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create an associationReturns a request builder with the provided arbitrary URL.
-
Constructor Details
-
AssociationsRequestBuilder
public AssociationsRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newAssociationsRequestBuilder
and sets the default values.- Parameters:
pathParameters
- Path parameters for the requestrequestAdapter
- The request adapter to use to execute the requests.
-
AssociationsRequestBuilder
public AssociationsRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newAssociationsRequestBuilder
and 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
-
bulk
-
conceptassociations
The conceptassociations property- Returns:
- a
ConceptassociationsRequestBuilder
-
deletePath
The deletePath property- Returns:
- a
DeleteRequestBuilder
-
toconcept
The toconcept property- Returns:
- a
ToconceptRequestBuilder
-
byAssociationUuId
Gets an item from the org.mbari.vars.annosaurus.sdk.kiota.v1.associations.item collection- Parameters:
associationUuId
- Unique identifier of the item- Returns:
- a
AssociationUuItemRequestBuilder
-
post
Create an association- Parameters:
body
- The request body- Returns:
- a
AssociationSC
- 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 AssociationSC post(@Nonnull AssociationSC body, @Nullable Consumer<AssociationsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create an association- Parameters:
body
- The request bodyrequestConfiguration
- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
AssociationSC
- 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 AssociationSC body) Create an association- Parameters:
body
- The request body- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull AssociationSC body, @Nullable Consumer<AssociationsRequestBuilder.PostRequestConfiguration> requestConfiguration) Create an association- 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
AssociationsRequestBuilder
-