Class StatusRequestBuilder
java.lang.Object
com.microsoft.kiota.BaseRequestBuilder
io.apicurio.registry.rest.client.groups.item.artifacts.item.contract.status.StatusRequestBuilder
@Generated("com.microsoft.kiota")
public class StatusRequestBuilder
extends com.microsoft.kiota.BaseRequestBuilder
Transition the contract lifecycle status.
-
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
ConstructorsConstructorDescriptionStatusRequestBuilder(String rawUrl, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newStatusRequestBuilderand sets the default values.StatusRequestBuilder(HashMap<String, Object> pathParameters, com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newStatusRequestBuilderand sets the default values. -
Method Summary
Modifier and TypeMethodDescriptionpost(ContractStatusTransition body) Transitions the contract status.post(ContractStatusTransition body, Consumer<StatusRequestBuilder.PostRequestConfiguration> requestConfiguration) Transitions the contract status.com.microsoft.kiota.RequestInformationTransitions the contract status.com.microsoft.kiota.RequestInformationtoPostRequestInformation(ContractStatusTransition body, Consumer<StatusRequestBuilder.PostRequestConfiguration> requestConfiguration) Transitions the contract status.Returns a request builder with the provided arbitrary URL.
-
Constructor Details
-
StatusRequestBuilder
public StatusRequestBuilder(@Nonnull HashMap<String, Object> pathParameters, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newStatusRequestBuilderand sets the default values.- Parameters:
pathParameters- Path parameters for the requestrequestAdapter- The request adapter to use to execute the requests.
-
StatusRequestBuilder
public StatusRequestBuilder(@Nonnull String rawUrl, @Nonnull com.microsoft.kiota.RequestAdapter requestAdapter) Instantiates a newStatusRequestBuilderand 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
-
post
Transitions the contract status. Valid transitions: DRAFT to STABLE, DRAFT to DEPRECATED, STABLE to DEPRECATED. Reverse transitions are not allowed.- Parameters:
body- Request body for transitioning the contract lifecycle status.- Returns:
- a
ContractMetadata - Throws:
ProblemDetails- When receiving a 400 status codeProblemDetails- When receiving a 404 status codeProblemDetails- When receiving a 409 status codeProblemDetails- When receiving a 500 status code
-
post
@Nullable public ContractMetadata post(@Nonnull ContractStatusTransition body, @Nullable Consumer<StatusRequestBuilder.PostRequestConfiguration> requestConfiguration) Transitions the contract status. Valid transitions: DRAFT to STABLE, DRAFT to DEPRECATED, STABLE to DEPRECATED. Reverse transitions are not allowed.- Parameters:
body- Request body for transitioning the contract lifecycle status.requestConfiguration- Configuration for the request such as headers, query parameters, and middleware options.- Returns:
- a
ContractMetadata - Throws:
ProblemDetails- When receiving a 400 status codeProblemDetails- When receiving a 404 status codeProblemDetails- When receiving a 409 status codeProblemDetails- When receiving a 500 status code
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull ContractStatusTransition body) Transitions the contract status. Valid transitions: DRAFT to STABLE, DRAFT to DEPRECATED, STABLE to DEPRECATED. Reverse transitions are not allowed.- Parameters:
body- Request body for transitioning the contract lifecycle status.- Returns:
- a
RequestInformation
-
toPostRequestInformation
@Nonnull public com.microsoft.kiota.RequestInformation toPostRequestInformation(@Nonnull ContractStatusTransition body, @Nullable Consumer<StatusRequestBuilder.PostRequestConfiguration> requestConfiguration) Transitions the contract status. Valid transitions: DRAFT to STABLE, DRAFT to DEPRECATED, STABLE to DEPRECATED. Reverse transitions are not allowed.- Parameters:
body- Request body for transitioning the contract lifecycle status.requestConfiguration- 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
StatusRequestBuilder
-