Class UpstreamingBehaviorRequestBuilder
java.lang.Object
org.azd.abstractions.BaseRequestBuilder
org.azd.artifactspackagetypes.maven.UpstreamingBehaviorRequestBuilder
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classRepresents the Path values for Maven Api.Nested classes/interfaces inherited from class org.azd.abstractions.BaseRequestBuilder
BaseRequestBuilder.ProjectExcludeParameter -
Field Summary
Fields inherited from class org.azd.abstractions.BaseRequestBuilder
accessTokenCredential, apiVersion, area, locationId, organizationUrl, serializer -
Constructor Summary
ConstructorsConstructorDescriptionUpstreamingBehaviorRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential) -
Method Summary
Modifier and TypeMethodDescriptionget(Consumer<UpstreamingBehaviorRequestBuilder.UpstreamPathParameters> pathParameters) Get the upstreaming behavior of a package within the context of a feedgetAsync(Consumer<UpstreamingBehaviorRequestBuilder.UpstreamPathParameters> pathParameters) Get the upstreaming behavior of a package within the context of a feedset(Consumer<UpstreamingBehaviorRequestBuilder.UpstreamPathParameters> pathParameters, UpstreamingBehavior upstreamingBehavior) Set the upstreaming behavior of a package within the context of a feedsetAsync(Consumer<UpstreamingBehaviorRequestBuilder.UpstreamPathParameters> pathParameters, UpstreamingBehavior upstreamingBehavior) Set the upstreaming behavior of a package within the context of a feedMethods inherited from class org.azd.abstractions.BaseRequestBuilder
builder
-
Constructor Details
-
UpstreamingBehaviorRequestBuilder
public UpstreamingBehaviorRequestBuilder(String organizationUrl, AccessTokenCredential accessTokenCredential)
-
-
Method Details
-
getAsync
public CompletableFuture<UpstreamingBehavior> getAsync(Consumer<UpstreamingBehaviorRequestBuilder.UpstreamPathParameters> pathParameters) throws AzDException Get the upstreaming behavior of a package within the context of a feed- Parameters:
pathParameters- Represents the path parameters to get artifact.- Returns:
- Upstream behaviour object
UpstreamingBehavior - Throws:
AzDException- Default Api Exception handler.
-
setAsync
public CompletableFuture<Void> setAsync(Consumer<UpstreamingBehaviorRequestBuilder.UpstreamPathParameters> pathParameters, UpstreamingBehavior upstreamingBehavior) throws AzDException Set the upstreaming behavior of a package within the context of a feed- Parameters:
pathParameters- Represents the path parameters to set artifact.upstreamingBehavior- Upstream behaviour object. Allowed values are 'allowExternalVersions' or 'auto'.- Throws:
AzDException- Default Api Exception handler.
-
get
public UpstreamingBehavior get(Consumer<UpstreamingBehaviorRequestBuilder.UpstreamPathParameters> pathParameters) throws AzDException Get the upstreaming behavior of a package within the context of a feed- Parameters:
pathParameters- Represents the path parameters to get artifact.- Returns:
- Upstream behaviour object
UpstreamingBehavior - Throws:
AzDException- Default Api Exception handler.
-
set
public Void set(Consumer<UpstreamingBehaviorRequestBuilder.UpstreamPathParameters> pathParameters, UpstreamingBehavior upstreamingBehavior) throws AzDException Set the upstreaming behavior of a package within the context of a feed- Parameters:
pathParameters- Represents the path parameters to set artifact.upstreamingBehavior- Upstream behaviour object. Allowed values are 'allowExternalVersions' or 'auto'.- Throws:
AzDException- Default Api Exception handler.
-