scopes = new ArrayList<>();
+ private RetryPolicy retryPolicy;
+ private RetryOptions retryOptions;
+ private Duration defaultPollInterval;
+
+ private Configurable() {
+ }
+
+ /**
+ * Sets the http client.
+ *
+ * @param httpClient the HTTP client.
+ * @return the configurable object itself.
+ */
+ public Configurable withHttpClient(HttpClient httpClient) {
+ this.httpClient = Objects.requireNonNull(httpClient, "'httpClient' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the logging options to the HTTP pipeline.
+ *
+ * @param httpLogOptions the HTTP log options.
+ * @return the configurable object itself.
+ */
+ public Configurable withLogOptions(HttpLogOptions httpLogOptions) {
+ this.httpLogOptions = Objects.requireNonNull(httpLogOptions, "'httpLogOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Adds the pipeline policy to the HTTP pipeline.
+ *
+ * @param policy the HTTP pipeline policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withPolicy(HttpPipelinePolicy policy) {
+ this.policies.add(Objects.requireNonNull(policy, "'policy' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Adds the scope to permission sets.
+ *
+ * @param scope the scope.
+ * @return the configurable object itself.
+ */
+ public Configurable withScope(String scope) {
+ this.scopes.add(Objects.requireNonNull(scope, "'scope' cannot be null."));
+ return this;
+ }
+
+ /**
+ * Sets the retry policy to the HTTP pipeline.
+ *
+ * @param retryPolicy the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryPolicy(RetryPolicy retryPolicy) {
+ this.retryPolicy = Objects.requireNonNull(retryPolicy, "'retryPolicy' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the retry options for the HTTP pipeline retry policy.
+ *
+ * This setting has no effect, if retry policy is set via {@link #withRetryPolicy(RetryPolicy)}.
+ *
+ * @param retryOptions the retry options for the HTTP pipeline retry policy.
+ * @return the configurable object itself.
+ */
+ public Configurable withRetryOptions(RetryOptions retryOptions) {
+ this.retryOptions = Objects.requireNonNull(retryOptions, "'retryOptions' cannot be null.");
+ return this;
+ }
+
+ /**
+ * Sets the default poll interval, used when service does not provide "Retry-After" header.
+ *
+ * @param defaultPollInterval the default poll interval.
+ * @return the configurable object itself.
+ */
+ public Configurable withDefaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval =
+ Objects.requireNonNull(defaultPollInterval, "'defaultPollInterval' cannot be null.");
+ if (this.defaultPollInterval.isNegative()) {
+ throw LOGGER
+ .logExceptionAsError(new IllegalArgumentException("'defaultPollInterval' cannot be negative"));
+ }
+ return this;
+ }
+
+ /**
+ * Creates an instance of AzureTrafficCollector service API entry point.
+ *
+ * @param credential the credential to use.
+ * @param profile the Azure profile for client.
+ * @return the AzureTrafficCollector service API instance.
+ */
+ public AzureTrafficCollectorManager authenticate(TokenCredential credential, AzureProfile profile) {
+ Objects.requireNonNull(credential, "'credential' cannot be null.");
+ Objects.requireNonNull(profile, "'profile' cannot be null.");
+
+ StringBuilder userAgentBuilder = new StringBuilder();
+ userAgentBuilder
+ .append("azsdk-java")
+ .append("-")
+ .append("com.azure.resourcemanager.networkfunction")
+ .append("/")
+ .append("1.0.0-beta.1");
+ if (!Configuration.getGlobalConfiguration().get("AZURE_TELEMETRY_DISABLED", false)) {
+ userAgentBuilder
+ .append(" (")
+ .append(Configuration.getGlobalConfiguration().get("java.version"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.name"))
+ .append("; ")
+ .append(Configuration.getGlobalConfiguration().get("os.version"))
+ .append("; auto-generated)");
+ } else {
+ userAgentBuilder.append(" (auto-generated)");
+ }
+
+ if (scopes.isEmpty()) {
+ scopes.add(profile.getEnvironment().getManagementEndpoint() + "/.default");
+ }
+ if (retryPolicy == null) {
+ if (retryOptions != null) {
+ retryPolicy = new RetryPolicy(retryOptions);
+ } else {
+ retryPolicy = new RetryPolicy("Retry-After", ChronoUnit.SECONDS);
+ }
+ }
+ List policies = new ArrayList<>();
+ policies.add(new UserAgentPolicy(userAgentBuilder.toString()));
+ policies.add(new AddHeadersFromContextPolicy());
+ policies.add(new RequestIdPolicy());
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_CALL)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addBeforeRetryPolicies(policies);
+ policies.add(retryPolicy);
+ policies.add(new AddDatePolicy());
+ policies.add(new ArmChallengeAuthenticationPolicy(credential, scopes.toArray(new String[0])));
+ policies
+ .addAll(
+ this
+ .policies
+ .stream()
+ .filter(p -> p.getPipelinePosition() == HttpPipelinePosition.PER_RETRY)
+ .collect(Collectors.toList()));
+ HttpPolicyProviders.addAfterRetryPolicies(policies);
+ policies.add(new HttpLoggingPolicy(httpLogOptions));
+ HttpPipeline httpPipeline =
+ new HttpPipelineBuilder()
+ .httpClient(httpClient)
+ .policies(policies.toArray(new HttpPipelinePolicy[0]))
+ .build();
+ return new AzureTrafficCollectorManager(httpPipeline, profile, defaultPollInterval);
+ }
+ }
+
+ /**
+ * Gets the resource collection API of NetworkFunctions.
+ *
+ * @return Resource collection API of NetworkFunctions.
+ */
+ public NetworkFunctions networkFunctions() {
+ if (this.networkFunctions == null) {
+ this.networkFunctions = new NetworkFunctionsImpl(clientObject.getNetworkFunctions(), this);
+ }
+ return networkFunctions;
+ }
+
+ /**
+ * Gets the resource collection API of AzureTrafficCollectorsBySubscriptions.
+ *
+ * @return Resource collection API of AzureTrafficCollectorsBySubscriptions.
+ */
+ public AzureTrafficCollectorsBySubscriptions azureTrafficCollectorsBySubscriptions() {
+ if (this.azureTrafficCollectorsBySubscriptions == null) {
+ this.azureTrafficCollectorsBySubscriptions =
+ new AzureTrafficCollectorsBySubscriptionsImpl(
+ clientObject.getAzureTrafficCollectorsBySubscriptions(), this);
+ }
+ return azureTrafficCollectorsBySubscriptions;
+ }
+
+ /**
+ * Gets the resource collection API of AzureTrafficCollectorsByResourceGroups.
+ *
+ * @return Resource collection API of AzureTrafficCollectorsByResourceGroups.
+ */
+ public AzureTrafficCollectorsByResourceGroups azureTrafficCollectorsByResourceGroups() {
+ if (this.azureTrafficCollectorsByResourceGroups == null) {
+ this.azureTrafficCollectorsByResourceGroups =
+ new AzureTrafficCollectorsByResourceGroupsImpl(
+ clientObject.getAzureTrafficCollectorsByResourceGroups(), this);
+ }
+ return azureTrafficCollectorsByResourceGroups;
+ }
+
+ /**
+ * Gets the resource collection API of AzureTrafficCollectors.
+ *
+ * @return Resource collection API of AzureTrafficCollectors.
+ */
+ public AzureTrafficCollectors azureTrafficCollectors() {
+ if (this.azureTrafficCollectors == null) {
+ this.azureTrafficCollectors =
+ new AzureTrafficCollectorsImpl(clientObject.getAzureTrafficCollectors(), this);
+ }
+ return azureTrafficCollectors;
+ }
+
+ /**
+ * Gets the resource collection API of CollectorPolicies.
+ *
+ * @return Resource collection API of CollectorPolicies.
+ */
+ public CollectorPolicies collectorPolicies() {
+ if (this.collectorPolicies == null) {
+ this.collectorPolicies = new CollectorPoliciesImpl(clientObject.getCollectorPolicies(), this);
+ }
+ return collectorPolicies;
+ }
+
+ /**
+ * @return Wrapped service client AzureTrafficCollectorManagementClient providing direct access to the underlying
+ * auto-generated API implementation, based on Azure REST API.
+ */
+ public AzureTrafficCollectorManagementClient serviceClient() {
+ return this.clientObject;
+ }
+}
diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/AzureTrafficCollectorManagementClient.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/AzureTrafficCollectorManagementClient.java
new file mode 100644
index 000000000000..db9216f671fe
--- /dev/null
+++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/AzureTrafficCollectorManagementClient.java
@@ -0,0 +1,81 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.networkfunction.fluent;
+
+import com.azure.core.http.HttpPipeline;
+import java.time.Duration;
+
+/** The interface for AzureTrafficCollectorManagementClient class. */
+public interface AzureTrafficCollectorManagementClient {
+ /**
+ * Gets Azure Subscription ID.
+ *
+ * @return the subscriptionId value.
+ */
+ String getSubscriptionId();
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ String getEndpoint();
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ String getApiVersion();
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ HttpPipeline getHttpPipeline();
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ Duration getDefaultPollInterval();
+
+ /**
+ * Gets the NetworkFunctionsClient object to access its operations.
+ *
+ * @return the NetworkFunctionsClient object.
+ */
+ NetworkFunctionsClient getNetworkFunctions();
+
+ /**
+ * Gets the AzureTrafficCollectorsBySubscriptionsClient object to access its operations.
+ *
+ * @return the AzureTrafficCollectorsBySubscriptionsClient object.
+ */
+ AzureTrafficCollectorsBySubscriptionsClient getAzureTrafficCollectorsBySubscriptions();
+
+ /**
+ * Gets the AzureTrafficCollectorsByResourceGroupsClient object to access its operations.
+ *
+ * @return the AzureTrafficCollectorsByResourceGroupsClient object.
+ */
+ AzureTrafficCollectorsByResourceGroupsClient getAzureTrafficCollectorsByResourceGroups();
+
+ /**
+ * Gets the AzureTrafficCollectorsClient object to access its operations.
+ *
+ * @return the AzureTrafficCollectorsClient object.
+ */
+ AzureTrafficCollectorsClient getAzureTrafficCollectors();
+
+ /**
+ * Gets the CollectorPoliciesClient object to access its operations.
+ *
+ * @return the CollectorPoliciesClient object.
+ */
+ CollectorPoliciesClient getCollectorPolicies();
+}
diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/AzureTrafficCollectorsByResourceGroupsClient.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/AzureTrafficCollectorsByResourceGroupsClient.java
new file mode 100644
index 000000000000..0ceab4cf6006
--- /dev/null
+++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/AzureTrafficCollectorsByResourceGroupsClient.java
@@ -0,0 +1,42 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.networkfunction.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.networkfunction.fluent.models.AzureTrafficCollectorInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * AzureTrafficCollectorsByResourceGroupsClient.
+ */
+public interface AzureTrafficCollectorsByResourceGroupsClient {
+ /**
+ * Return list of Azure Traffic Collectors in a Resource Group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for the ListTrafficCollectors API service call as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName);
+
+ /**
+ * Return list of Azure Traffic Collectors in a Resource Group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for the ListTrafficCollectors API service call as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listByResourceGroup(String resourceGroupName, Context context);
+}
diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/AzureTrafficCollectorsBySubscriptionsClient.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/AzureTrafficCollectorsBySubscriptionsClient.java
new file mode 100644
index 000000000000..1d5e4fdc2f46
--- /dev/null
+++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/AzureTrafficCollectorsBySubscriptionsClient.java
@@ -0,0 +1,39 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.networkfunction.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.networkfunction.fluent.models.AzureTrafficCollectorInner;
+
+/**
+ * An instance of this class provides access to all the operations defined in
+ * AzureTrafficCollectorsBySubscriptionsClient.
+ */
+public interface AzureTrafficCollectorsBySubscriptionsClient {
+ /**
+ * Return list of Azure Traffic Collectors in a subscription.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for the ListTrafficCollectors API service call as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list();
+
+ /**
+ * Return list of Azure Traffic Collectors in a subscription.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for the ListTrafficCollectors API service call as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(Context context);
+}
diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/AzureTrafficCollectorsClient.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/AzureTrafficCollectorsClient.java
new file mode 100644
index 000000000000..6604511f0ce4
--- /dev/null
+++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/AzureTrafficCollectorsClient.java
@@ -0,0 +1,197 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.networkfunction.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.networkfunction.fluent.models.AzureTrafficCollectorInner;
+import com.azure.resourcemanager.networkfunction.models.TagsObject;
+
+/** An instance of this class provides access to all the operations defined in AzureTrafficCollectorsClient. */
+public interface AzureTrafficCollectorsClient {
+ /**
+ * Gets the specified Azure Traffic Collector in a specified resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Azure Traffic Collector in a specified resource group.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AzureTrafficCollectorInner getByResourceGroup(String resourceGroupName, String azureTrafficCollectorName);
+
+ /**
+ * Gets the specified Azure Traffic Collector in a specified resource group.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the specified Azure Traffic Collector in a specified resource group along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getByResourceGroupWithResponse(
+ String resourceGroupName, String azureTrafficCollectorName, Context context);
+
+ /**
+ * Creates or updates a Azure Traffic Collector resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param parameters The parameters to provide for the created Azure Traffic Collector.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Traffic Collector resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AzureTrafficCollectorInner> beginCreateOrUpdate(
+ String resourceGroupName, String azureTrafficCollectorName, AzureTrafficCollectorInner parameters);
+
+ /**
+ * Creates or updates a Azure Traffic Collector resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param parameters The parameters to provide for the created Azure Traffic Collector.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of azure Traffic Collector resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, AzureTrafficCollectorInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String azureTrafficCollectorName,
+ AzureTrafficCollectorInner parameters,
+ Context context);
+
+ /**
+ * Creates or updates a Azure Traffic Collector resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param parameters The parameters to provide for the created Azure Traffic Collector.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Traffic Collector resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AzureTrafficCollectorInner createOrUpdate(
+ String resourceGroupName, String azureTrafficCollectorName, AzureTrafficCollectorInner parameters);
+
+ /**
+ * Creates or updates a Azure Traffic Collector resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param parameters The parameters to provide for the created Azure Traffic Collector.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Traffic Collector resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AzureTrafficCollectorInner createOrUpdate(
+ String resourceGroupName,
+ String azureTrafficCollectorName,
+ AzureTrafficCollectorInner parameters,
+ Context context);
+
+ /**
+ * Deletes a specified Azure Traffic Collector resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(String resourceGroupName, String azureTrafficCollectorName);
+
+ /**
+ * Deletes a specified Azure Traffic Collector resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String azureTrafficCollectorName, Context context);
+
+ /**
+ * Deletes a specified Azure Traffic Collector resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String azureTrafficCollectorName);
+
+ /**
+ * Deletes a specified Azure Traffic Collector resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String azureTrafficCollectorName, Context context);
+
+ /**
+ * Updates the specified Azure Traffic Collector tags.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param parameters Parameters supplied to update Azure Traffic Collector tags.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Traffic Collector resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ AzureTrafficCollectorInner updateTags(
+ String resourceGroupName, String azureTrafficCollectorName, TagsObject parameters);
+
+ /**
+ * Updates the specified Azure Traffic Collector tags.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param parameters Parameters supplied to update Azure Traffic Collector tags.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return azure Traffic Collector resource along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response updateTagsWithResponse(
+ String resourceGroupName, String azureTrafficCollectorName, TagsObject parameters, Context context);
+}
diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/CollectorPoliciesClient.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/CollectorPoliciesClient.java
new file mode 100644
index 000000000000..4535f6267c6d
--- /dev/null
+++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/CollectorPoliciesClient.java
@@ -0,0 +1,214 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.networkfunction.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.util.Context;
+import com.azure.core.util.polling.SyncPoller;
+import com.azure.resourcemanager.networkfunction.fluent.models.CollectorPolicyInner;
+
+/** An instance of this class provides access to all the operations defined in CollectorPoliciesClient. */
+public interface CollectorPoliciesClient {
+ /**
+ * Return list of Collector policies in a Azure Traffic Collector.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for the ListCollectorPolicies API service call as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(String resourceGroupName, String azureTrafficCollectorName);
+
+ /**
+ * Return list of Collector policies in a Azure Traffic Collector.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return response for the ListCollectorPolicies API service call as paginated response with {@link PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable list(
+ String resourceGroupName, String azureTrafficCollectorName, Context context);
+
+ /**
+ * Gets the collector policy in a specified Traffic Collector.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param collectorPolicyName Collector Policy Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the collector policy in a specified Traffic Collector.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CollectorPolicyInner get(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName);
+
+ /**
+ * Gets the collector policy in a specified Traffic Collector.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param collectorPolicyName Collector Policy Name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the collector policy in a specified Traffic Collector along with {@link Response}.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ Response getWithResponse(
+ String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, Context context);
+
+ /**
+ * Creates or updates a Collector Policy resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param collectorPolicyName Collector Policy Name.
+ * @param parameters The parameters to provide for the created Collector Policy.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of collector policy resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CollectorPolicyInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String azureTrafficCollectorName,
+ String collectorPolicyName,
+ CollectorPolicyInner parameters);
+
+ /**
+ * Creates or updates a Collector Policy resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param collectorPolicyName Collector Policy Name.
+ * @param parameters The parameters to provide for the created Collector Policy.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of collector policy resource.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, CollectorPolicyInner> beginCreateOrUpdate(
+ String resourceGroupName,
+ String azureTrafficCollectorName,
+ String collectorPolicyName,
+ CollectorPolicyInner parameters,
+ Context context);
+
+ /**
+ * Creates or updates a Collector Policy resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param collectorPolicyName Collector Policy Name.
+ * @param parameters The parameters to provide for the created Collector Policy.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collector policy resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CollectorPolicyInner createOrUpdate(
+ String resourceGroupName,
+ String azureTrafficCollectorName,
+ String collectorPolicyName,
+ CollectorPolicyInner parameters);
+
+ /**
+ * Creates or updates a Collector Policy resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param collectorPolicyName Collector Policy Name.
+ * @param parameters The parameters to provide for the created Collector Policy.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return collector policy resource.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ CollectorPolicyInner createOrUpdate(
+ String resourceGroupName,
+ String azureTrafficCollectorName,
+ String collectorPolicyName,
+ CollectorPolicyInner parameters,
+ Context context);
+
+ /**
+ * Deletes a specified Collector Policy resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param collectorPolicyName Collector Policy Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName);
+
+ /**
+ * Deletes a specified Collector Policy resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param collectorPolicyName Collector Policy Name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return the {@link SyncPoller} for polling of long-running operation.
+ */
+ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION)
+ SyncPoller, Void> beginDelete(
+ String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, Context context);
+
+ /**
+ * Deletes a specified Collector Policy resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param collectorPolicyName Collector Policy Name.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName);
+
+ /**
+ * Deletes a specified Collector Policy resource.
+ *
+ * @param resourceGroupName The name of the resource group.
+ * @param azureTrafficCollectorName Azure Traffic Collector name.
+ * @param collectorPolicyName Collector Policy Name.
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ */
+ @ServiceMethod(returns = ReturnType.SINGLE)
+ void delete(
+ String resourceGroupName, String azureTrafficCollectorName, String collectorPolicyName, Context context);
+}
diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/NetworkFunctionsClient.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/NetworkFunctionsClient.java
new file mode 100644
index 000000000000..d23276d85d57
--- /dev/null
+++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/NetworkFunctionsClient.java
@@ -0,0 +1,38 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.networkfunction.fluent;
+
+import com.azure.core.annotation.ReturnType;
+import com.azure.core.annotation.ServiceMethod;
+import com.azure.core.http.rest.PagedIterable;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.networkfunction.fluent.models.OperationInner;
+
+/** An instance of this class provides access to all the operations defined in NetworkFunctionsClient. */
+public interface NetworkFunctionsClient {
+ /**
+ * Lists all of the available NetworkFunction Rest API operations.
+ *
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Azure Traffic Collector operations as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listOperations();
+
+ /**
+ * Lists all of the available NetworkFunction Rest API operations.
+ *
+ * @param context The context to associate with this operation.
+ * @throws IllegalArgumentException thrown if parameters fail the validation.
+ * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server.
+ * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent.
+ * @return result of the request to list Azure Traffic Collector operations as paginated response with {@link
+ * PagedIterable}.
+ */
+ @ServiceMethod(returns = ReturnType.COLLECTION)
+ PagedIterable listOperations(Context context);
+}
diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/AzureTrafficCollectorInner.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/AzureTrafficCollectorInner.java
new file mode 100644
index 000000000000..a4e9f9f30cbc
--- /dev/null
+++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/AzureTrafficCollectorInner.java
@@ -0,0 +1,143 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.networkfunction.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.Resource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.networkfunction.models.ProvisioningState;
+import com.azure.resourcemanager.networkfunction.models.ResourceReference;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+import java.util.Map;
+
+/** Azure Traffic Collector resource. */
+@Fluent
+public final class AzureTrafficCollectorInner extends Resource {
+ /*
+ * Properties of the Azure Traffic Collector.
+ */
+ @JsonProperty(value = "properties")
+ private AzureTrafficCollectorPropertiesFormat innerProperties;
+
+ /*
+ * A unique read-only string that changes whenever the resource is updated.
+ */
+ @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
+ private String etag;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Properties of the Azure Traffic Collector.
+ *
+ * @return the innerProperties value.
+ */
+ private AzureTrafficCollectorPropertiesFormat innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the etag property: A unique read-only string that changes whenever the resource is updated.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public AzureTrafficCollectorInner withLocation(String location) {
+ super.withLocation(location);
+ return this;
+ }
+
+ /** {@inheritDoc} */
+ @Override
+ public AzureTrafficCollectorInner withTags(Map tags) {
+ super.withTags(tags);
+ return this;
+ }
+
+ /**
+ * Get the collectorPolicies property: Collector Policies for Azure Traffic Collector.
+ *
+ * @return the collectorPolicies value.
+ */
+ public List collectorPolicies() {
+ return this.innerProperties() == null ? null : this.innerProperties().collectorPolicies();
+ }
+
+ /**
+ * Set the collectorPolicies property: Collector Policies for Azure Traffic Collector.
+ *
+ * @param collectorPolicies the collectorPolicies value to set.
+ * @return the AzureTrafficCollectorInner object itself.
+ */
+ public AzureTrafficCollectorInner withCollectorPolicies(List collectorPolicies) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AzureTrafficCollectorPropertiesFormat();
+ }
+ this.innerProperties().withCollectorPolicies(collectorPolicies);
+ return this;
+ }
+
+ /**
+ * Get the virtualHub property: The virtualHub to which the Azure Traffic Collector belongs.
+ *
+ * @return the virtualHub value.
+ */
+ public ResourceReference virtualHub() {
+ return this.innerProperties() == null ? null : this.innerProperties().virtualHub();
+ }
+
+ /**
+ * Set the virtualHub property: The virtualHub to which the Azure Traffic Collector belongs.
+ *
+ * @param virtualHub the virtualHub value to set.
+ * @return the AzureTrafficCollectorInner object itself.
+ */
+ public AzureTrafficCollectorInner withVirtualHub(ResourceReference virtualHub) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new AzureTrafficCollectorPropertiesFormat();
+ }
+ this.innerProperties().withVirtualHub(virtualHub);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the application rule collection resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/AzureTrafficCollectorPropertiesFormat.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/AzureTrafficCollectorPropertiesFormat.java
new file mode 100644
index 000000000000..9c6aec5694db
--- /dev/null
+++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/AzureTrafficCollectorPropertiesFormat.java
@@ -0,0 +1,96 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.networkfunction.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.networkfunction.models.ProvisioningState;
+import com.azure.resourcemanager.networkfunction.models.ResourceReference;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Azure Traffic Collector resource properties. */
+@Fluent
+public final class AzureTrafficCollectorPropertiesFormat {
+ /*
+ * Collector Policies for Azure Traffic Collector.
+ */
+ @JsonProperty(value = "collectorPolicies")
+ private List collectorPolicies;
+
+ /*
+ * The virtualHub to which the Azure Traffic Collector belongs.
+ */
+ @JsonProperty(value = "virtualHub")
+ private ResourceReference virtualHub;
+
+ /*
+ * The provisioning state of the application rule collection resource.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /**
+ * Get the collectorPolicies property: Collector Policies for Azure Traffic Collector.
+ *
+ * @return the collectorPolicies value.
+ */
+ public List collectorPolicies() {
+ return this.collectorPolicies;
+ }
+
+ /**
+ * Set the collectorPolicies property: Collector Policies for Azure Traffic Collector.
+ *
+ * @param collectorPolicies the collectorPolicies value to set.
+ * @return the AzureTrafficCollectorPropertiesFormat object itself.
+ */
+ public AzureTrafficCollectorPropertiesFormat withCollectorPolicies(List collectorPolicies) {
+ this.collectorPolicies = collectorPolicies;
+ return this;
+ }
+
+ /**
+ * Get the virtualHub property: The virtualHub to which the Azure Traffic Collector belongs.
+ *
+ * @return the virtualHub value.
+ */
+ public ResourceReference virtualHub() {
+ return this.virtualHub;
+ }
+
+ /**
+ * Set the virtualHub property: The virtualHub to which the Azure Traffic Collector belongs.
+ *
+ * @param virtualHub the virtualHub value to set.
+ * @return the AzureTrafficCollectorPropertiesFormat object itself.
+ */
+ public AzureTrafficCollectorPropertiesFormat withVirtualHub(ResourceReference virtualHub) {
+ this.virtualHub = virtualHub;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state of the application rule collection resource.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (collectorPolicies() != null) {
+ collectorPolicies().forEach(e -> e.validate());
+ }
+ if (virtualHub() != null) {
+ virtualHub().validate();
+ }
+ }
+}
diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/CollectorPolicyInner.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/CollectorPolicyInner.java
new file mode 100644
index 000000000000..a4bfc646ae6f
--- /dev/null
+++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/CollectorPolicyInner.java
@@ -0,0 +1,129 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.networkfunction.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.core.management.ProxyResource;
+import com.azure.core.management.SystemData;
+import com.azure.resourcemanager.networkfunction.models.EmissionPoliciesPropertiesFormat;
+import com.azure.resourcemanager.networkfunction.models.IngestionPolicyPropertiesFormat;
+import com.azure.resourcemanager.networkfunction.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Collector policy resource. */
+@Fluent
+public final class CollectorPolicyInner extends ProxyResource {
+ /*
+ * Properties of the Collector Policy.
+ */
+ @JsonProperty(value = "properties")
+ private CollectorPolicyPropertiesFormat innerProperties;
+
+ /*
+ * A unique read-only string that changes whenever the resource is updated.
+ */
+ @JsonProperty(value = "etag", access = JsonProperty.Access.WRITE_ONLY)
+ private String etag;
+
+ /*
+ * Metadata pertaining to creation and last modification of the resource.
+ */
+ @JsonProperty(value = "systemData", access = JsonProperty.Access.WRITE_ONLY)
+ private SystemData systemData;
+
+ /**
+ * Get the innerProperties property: Properties of the Collector Policy.
+ *
+ * @return the innerProperties value.
+ */
+ private CollectorPolicyPropertiesFormat innerProperties() {
+ return this.innerProperties;
+ }
+
+ /**
+ * Get the etag property: A unique read-only string that changes whenever the resource is updated.
+ *
+ * @return the etag value.
+ */
+ public String etag() {
+ return this.etag;
+ }
+
+ /**
+ * Get the systemData property: Metadata pertaining to creation and last modification of the resource.
+ *
+ * @return the systemData value.
+ */
+ public SystemData systemData() {
+ return this.systemData;
+ }
+
+ /**
+ * Get the ingestionPolicy property: Ingestion policies.
+ *
+ * @return the ingestionPolicy value.
+ */
+ public IngestionPolicyPropertiesFormat ingestionPolicy() {
+ return this.innerProperties() == null ? null : this.innerProperties().ingestionPolicy();
+ }
+
+ /**
+ * Set the ingestionPolicy property: Ingestion policies.
+ *
+ * @param ingestionPolicy the ingestionPolicy value to set.
+ * @return the CollectorPolicyInner object itself.
+ */
+ public CollectorPolicyInner withIngestionPolicy(IngestionPolicyPropertiesFormat ingestionPolicy) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CollectorPolicyPropertiesFormat();
+ }
+ this.innerProperties().withIngestionPolicy(ingestionPolicy);
+ return this;
+ }
+
+ /**
+ * Get the emissionPolicies property: Emission policies.
+ *
+ * @return the emissionPolicies value.
+ */
+ public List emissionPolicies() {
+ return this.innerProperties() == null ? null : this.innerProperties().emissionPolicies();
+ }
+
+ /**
+ * Set the emissionPolicies property: Emission policies.
+ *
+ * @param emissionPolicies the emissionPolicies value to set.
+ * @return the CollectorPolicyInner object itself.
+ */
+ public CollectorPolicyInner withEmissionPolicies(List emissionPolicies) {
+ if (this.innerProperties() == null) {
+ this.innerProperties = new CollectorPolicyPropertiesFormat();
+ }
+ this.innerProperties().withEmissionPolicies(emissionPolicies);
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.innerProperties() == null ? null : this.innerProperties().provisioningState();
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (innerProperties() != null) {
+ innerProperties().validate();
+ }
+ }
+}
diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/CollectorPolicyPropertiesFormat.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/CollectorPolicyPropertiesFormat.java
new file mode 100644
index 000000000000..c96568da5fe0
--- /dev/null
+++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/CollectorPolicyPropertiesFormat.java
@@ -0,0 +1,98 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.networkfunction.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.networkfunction.models.EmissionPoliciesPropertiesFormat;
+import com.azure.resourcemanager.networkfunction.models.IngestionPolicyPropertiesFormat;
+import com.azure.resourcemanager.networkfunction.models.ProvisioningState;
+import com.fasterxml.jackson.annotation.JsonProperty;
+import java.util.List;
+
+/** Collection policy properties. */
+@Fluent
+public final class CollectorPolicyPropertiesFormat {
+ /*
+ * Ingestion policies.
+ */
+ @JsonProperty(value = "ingestionPolicy")
+ private IngestionPolicyPropertiesFormat ingestionPolicy;
+
+ /*
+ * Emission policies.
+ */
+ @JsonProperty(value = "emissionPolicies")
+ private List emissionPolicies;
+
+ /*
+ * The provisioning state.
+ */
+ @JsonProperty(value = "provisioningState", access = JsonProperty.Access.WRITE_ONLY)
+ private ProvisioningState provisioningState;
+
+ /**
+ * Get the ingestionPolicy property: Ingestion policies.
+ *
+ * @return the ingestionPolicy value.
+ */
+ public IngestionPolicyPropertiesFormat ingestionPolicy() {
+ return this.ingestionPolicy;
+ }
+
+ /**
+ * Set the ingestionPolicy property: Ingestion policies.
+ *
+ * @param ingestionPolicy the ingestionPolicy value to set.
+ * @return the CollectorPolicyPropertiesFormat object itself.
+ */
+ public CollectorPolicyPropertiesFormat withIngestionPolicy(IngestionPolicyPropertiesFormat ingestionPolicy) {
+ this.ingestionPolicy = ingestionPolicy;
+ return this;
+ }
+
+ /**
+ * Get the emissionPolicies property: Emission policies.
+ *
+ * @return the emissionPolicies value.
+ */
+ public List emissionPolicies() {
+ return this.emissionPolicies;
+ }
+
+ /**
+ * Set the emissionPolicies property: Emission policies.
+ *
+ * @param emissionPolicies the emissionPolicies value to set.
+ * @return the CollectorPolicyPropertiesFormat object itself.
+ */
+ public CollectorPolicyPropertiesFormat withEmissionPolicies(
+ List emissionPolicies) {
+ this.emissionPolicies = emissionPolicies;
+ return this;
+ }
+
+ /**
+ * Get the provisioningState property: The provisioning state.
+ *
+ * @return the provisioningState value.
+ */
+ public ProvisioningState provisioningState() {
+ return this.provisioningState;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (ingestionPolicy() != null) {
+ ingestionPolicy().validate();
+ }
+ if (emissionPolicies() != null) {
+ emissionPolicies().forEach(e -> e.validate());
+ }
+ }
+}
diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/OperationInner.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/OperationInner.java
new file mode 100644
index 000000000000..4ad869d1fcf0
--- /dev/null
+++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/OperationInner.java
@@ -0,0 +1,128 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.networkfunction.fluent.models;
+
+import com.azure.core.annotation.Fluent;
+import com.azure.resourcemanager.networkfunction.models.OperationDisplay;
+import com.fasterxml.jackson.annotation.JsonProperty;
+
+/** Azure Traffic Collector REST API operation definition. */
+@Fluent
+public final class OperationInner {
+ /*
+ * Operation name: {provider}/{resource}/{operation}
+ */
+ @JsonProperty(value = "name")
+ private String name;
+
+ /*
+ * Indicates whether the operation is a data action
+ */
+ @JsonProperty(value = "isDataAction")
+ private Boolean isDataAction;
+
+ /*
+ * Display metadata associated with the operation.
+ */
+ @JsonProperty(value = "display")
+ private OperationDisplay display;
+
+ /*
+ * Origin of the operation
+ */
+ @JsonProperty(value = "origin")
+ private String origin;
+
+ /**
+ * Get the name property: Operation name: {provider}/{resource}/{operation}.
+ *
+ * @return the name value.
+ */
+ public String name() {
+ return this.name;
+ }
+
+ /**
+ * Set the name property: Operation name: {provider}/{resource}/{operation}.
+ *
+ * @param name the name value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withName(String name) {
+ this.name = name;
+ return this;
+ }
+
+ /**
+ * Get the isDataAction property: Indicates whether the operation is a data action.
+ *
+ * @return the isDataAction value.
+ */
+ public Boolean isDataAction() {
+ return this.isDataAction;
+ }
+
+ /**
+ * Set the isDataAction property: Indicates whether the operation is a data action.
+ *
+ * @param isDataAction the isDataAction value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withIsDataAction(Boolean isDataAction) {
+ this.isDataAction = isDataAction;
+ return this;
+ }
+
+ /**
+ * Get the display property: Display metadata associated with the operation.
+ *
+ * @return the display value.
+ */
+ public OperationDisplay display() {
+ return this.display;
+ }
+
+ /**
+ * Set the display property: Display metadata associated with the operation.
+ *
+ * @param display the display value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withDisplay(OperationDisplay display) {
+ this.display = display;
+ return this;
+ }
+
+ /**
+ * Get the origin property: Origin of the operation.
+ *
+ * @return the origin value.
+ */
+ public String origin() {
+ return this.origin;
+ }
+
+ /**
+ * Set the origin property: Origin of the operation.
+ *
+ * @param origin the origin value to set.
+ * @return the OperationInner object itself.
+ */
+ public OperationInner withOrigin(String origin) {
+ this.origin = origin;
+ return this;
+ }
+
+ /**
+ * Validates the instance.
+ *
+ * @throws IllegalArgumentException thrown if the instance is not valid.
+ */
+ public void validate() {
+ if (display() != null) {
+ display().validate();
+ }
+ }
+}
diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/package-info.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/package-info.java
new file mode 100644
index 000000000000..91965a56eb65
--- /dev/null
+++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/models/package-info.java
@@ -0,0 +1,8 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/**
+ * Package containing the inner data models for AzureTrafficCollectorManagementClient. Azure Traffic Collector service.
+ */
+package com.azure.resourcemanager.networkfunction.fluent.models;
diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/package-info.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/package-info.java
new file mode 100644
index 000000000000..9907fa28abd8
--- /dev/null
+++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/fluent/package-info.java
@@ -0,0 +1,8 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+/**
+ * Package containing the service clients for AzureTrafficCollectorManagementClient. Azure Traffic Collector service.
+ */
+package com.azure.resourcemanager.networkfunction.fluent;
diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/AzureTrafficCollectorImpl.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/AzureTrafficCollectorImpl.java
new file mode 100644
index 000000000000..fefbce6791ba
--- /dev/null
+++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/AzureTrafficCollectorImpl.java
@@ -0,0 +1,222 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.networkfunction.implementation;
+
+import com.azure.core.management.Region;
+import com.azure.core.management.SystemData;
+import com.azure.core.util.Context;
+import com.azure.resourcemanager.networkfunction.fluent.models.AzureTrafficCollectorInner;
+import com.azure.resourcemanager.networkfunction.fluent.models.CollectorPolicyInner;
+import com.azure.resourcemanager.networkfunction.models.AzureTrafficCollector;
+import com.azure.resourcemanager.networkfunction.models.CollectorPolicy;
+import com.azure.resourcemanager.networkfunction.models.ProvisioningState;
+import com.azure.resourcemanager.networkfunction.models.ResourceReference;
+import com.azure.resourcemanager.networkfunction.models.TagsObject;
+import java.util.Collections;
+import java.util.List;
+import java.util.Map;
+import java.util.stream.Collectors;
+
+public final class AzureTrafficCollectorImpl
+ implements AzureTrafficCollector, AzureTrafficCollector.Definition, AzureTrafficCollector.Update {
+ private AzureTrafficCollectorInner innerObject;
+
+ private final com.azure.resourcemanager.networkfunction.AzureTrafficCollectorManager serviceManager;
+
+ public String id() {
+ return this.innerModel().id();
+ }
+
+ public String name() {
+ return this.innerModel().name();
+ }
+
+ public String type() {
+ return this.innerModel().type();
+ }
+
+ public String location() {
+ return this.innerModel().location();
+ }
+
+ public Map tags() {
+ Map inner = this.innerModel().tags();
+ if (inner != null) {
+ return Collections.unmodifiableMap(inner);
+ } else {
+ return Collections.emptyMap();
+ }
+ }
+
+ public String etag() {
+ return this.innerModel().etag();
+ }
+
+ public SystemData systemData() {
+ return this.innerModel().systemData();
+ }
+
+ public List collectorPolicies() {
+ List inner = this.innerModel().collectorPolicies();
+ if (inner != null) {
+ return Collections
+ .unmodifiableList(
+ inner
+ .stream()
+ .map(inner1 -> new CollectorPolicyImpl(inner1, this.manager()))
+ .collect(Collectors.toList()));
+ } else {
+ return Collections.emptyList();
+ }
+ }
+
+ public ResourceReference virtualHub() {
+ return this.innerModel().virtualHub();
+ }
+
+ public ProvisioningState provisioningState() {
+ return this.innerModel().provisioningState();
+ }
+
+ public Region region() {
+ return Region.fromName(this.regionName());
+ }
+
+ public String regionName() {
+ return this.location();
+ }
+
+ public AzureTrafficCollectorInner innerModel() {
+ return this.innerObject;
+ }
+
+ private com.azure.resourcemanager.networkfunction.AzureTrafficCollectorManager manager() {
+ return this.serviceManager;
+ }
+
+ private String resourceGroupName;
+
+ private String azureTrafficCollectorName;
+
+ private TagsObject updateParameters;
+
+ public AzureTrafficCollectorImpl withExistingResourceGroup(String resourceGroupName) {
+ this.resourceGroupName = resourceGroupName;
+ return this;
+ }
+
+ public AzureTrafficCollector create() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAzureTrafficCollectors()
+ .createOrUpdate(resourceGroupName, azureTrafficCollectorName, this.innerModel(), Context.NONE);
+ return this;
+ }
+
+ public AzureTrafficCollector create(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAzureTrafficCollectors()
+ .createOrUpdate(resourceGroupName, azureTrafficCollectorName, this.innerModel(), context);
+ return this;
+ }
+
+ AzureTrafficCollectorImpl(
+ String name, com.azure.resourcemanager.networkfunction.AzureTrafficCollectorManager serviceManager) {
+ this.innerObject = new AzureTrafficCollectorInner();
+ this.serviceManager = serviceManager;
+ this.azureTrafficCollectorName = name;
+ }
+
+ public AzureTrafficCollectorImpl update() {
+ this.updateParameters = new TagsObject();
+ return this;
+ }
+
+ public AzureTrafficCollector apply() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAzureTrafficCollectors()
+ .updateTagsWithResponse(resourceGroupName, azureTrafficCollectorName, updateParameters, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public AzureTrafficCollector apply(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAzureTrafficCollectors()
+ .updateTagsWithResponse(resourceGroupName, azureTrafficCollectorName, updateParameters, context)
+ .getValue();
+ return this;
+ }
+
+ AzureTrafficCollectorImpl(
+ AzureTrafficCollectorInner innerObject,
+ com.azure.resourcemanager.networkfunction.AzureTrafficCollectorManager serviceManager) {
+ this.innerObject = innerObject;
+ this.serviceManager = serviceManager;
+ this.resourceGroupName = Utils.getValueFromIdByName(innerObject.id(), "resourceGroups");
+ this.azureTrafficCollectorName = Utils.getValueFromIdByName(innerObject.id(), "azureTrafficCollectors");
+ }
+
+ public AzureTrafficCollector refresh() {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAzureTrafficCollectors()
+ .getByResourceGroupWithResponse(resourceGroupName, azureTrafficCollectorName, Context.NONE)
+ .getValue();
+ return this;
+ }
+
+ public AzureTrafficCollector refresh(Context context) {
+ this.innerObject =
+ serviceManager
+ .serviceClient()
+ .getAzureTrafficCollectors()
+ .getByResourceGroupWithResponse(resourceGroupName, azureTrafficCollectorName, context)
+ .getValue();
+ return this;
+ }
+
+ public AzureTrafficCollectorImpl withRegion(Region location) {
+ this.innerModel().withLocation(location.toString());
+ return this;
+ }
+
+ public AzureTrafficCollectorImpl withRegion(String location) {
+ this.innerModel().withLocation(location);
+ return this;
+ }
+
+ public AzureTrafficCollectorImpl withTags(Map tags) {
+ if (isInCreateMode()) {
+ this.innerModel().withTags(tags);
+ return this;
+ } else {
+ this.updateParameters.withTags(tags);
+ return this;
+ }
+ }
+
+ public AzureTrafficCollectorImpl withCollectorPolicies(List collectorPolicies) {
+ this.innerModel().withCollectorPolicies(collectorPolicies);
+ return this;
+ }
+
+ public AzureTrafficCollectorImpl withVirtualHub(ResourceReference virtualHub) {
+ this.innerModel().withVirtualHub(virtualHub);
+ return this;
+ }
+
+ private boolean isInCreateMode() {
+ return this.innerModel().id() == null;
+ }
+}
diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/AzureTrafficCollectorManagementClientBuilder.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/AzureTrafficCollectorManagementClientBuilder.java
new file mode 100644
index 000000000000..f2427264f6f2
--- /dev/null
+++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/AzureTrafficCollectorManagementClientBuilder.java
@@ -0,0 +1,142 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.networkfunction.implementation;
+
+import com.azure.core.annotation.ServiceClientBuilder;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpPipelineBuilder;
+import com.azure.core.http.policy.RetryPolicy;
+import com.azure.core.http.policy.UserAgentPolicy;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.serializer.SerializerFactory;
+import com.azure.core.util.serializer.SerializerAdapter;
+import java.time.Duration;
+
+/** A builder for creating a new instance of the AzureTrafficCollectorManagementClientImpl type. */
+@ServiceClientBuilder(serviceClients = {AzureTrafficCollectorManagementClientImpl.class})
+public final class AzureTrafficCollectorManagementClientBuilder {
+ /*
+ * Azure Subscription ID.
+ */
+ private String subscriptionId;
+
+ /**
+ * Sets Azure Subscription ID.
+ *
+ * @param subscriptionId the subscriptionId value.
+ * @return the AzureTrafficCollectorManagementClientBuilder.
+ */
+ public AzureTrafficCollectorManagementClientBuilder subscriptionId(String subscriptionId) {
+ this.subscriptionId = subscriptionId;
+ return this;
+ }
+
+ /*
+ * server parameter
+ */
+ private String endpoint;
+
+ /**
+ * Sets server parameter.
+ *
+ * @param endpoint the endpoint value.
+ * @return the AzureTrafficCollectorManagementClientBuilder.
+ */
+ public AzureTrafficCollectorManagementClientBuilder endpoint(String endpoint) {
+ this.endpoint = endpoint;
+ return this;
+ }
+
+ /*
+ * The environment to connect to
+ */
+ private AzureEnvironment environment;
+
+ /**
+ * Sets The environment to connect to.
+ *
+ * @param environment the environment value.
+ * @return the AzureTrafficCollectorManagementClientBuilder.
+ */
+ public AzureTrafficCollectorManagementClientBuilder environment(AzureEnvironment environment) {
+ this.environment = environment;
+ return this;
+ }
+
+ /*
+ * The HTTP pipeline to send requests through
+ */
+ private HttpPipeline pipeline;
+
+ /**
+ * Sets The HTTP pipeline to send requests through.
+ *
+ * @param pipeline the pipeline value.
+ * @return the AzureTrafficCollectorManagementClientBuilder.
+ */
+ public AzureTrafficCollectorManagementClientBuilder pipeline(HttpPipeline pipeline) {
+ this.pipeline = pipeline;
+ return this;
+ }
+
+ /*
+ * The default poll interval for long-running operation
+ */
+ private Duration defaultPollInterval;
+
+ /**
+ * Sets The default poll interval for long-running operation.
+ *
+ * @param defaultPollInterval the defaultPollInterval value.
+ * @return the AzureTrafficCollectorManagementClientBuilder.
+ */
+ public AzureTrafficCollectorManagementClientBuilder defaultPollInterval(Duration defaultPollInterval) {
+ this.defaultPollInterval = defaultPollInterval;
+ return this;
+ }
+
+ /*
+ * The serializer to serialize an object into a string
+ */
+ private SerializerAdapter serializerAdapter;
+
+ /**
+ * Sets The serializer to serialize an object into a string.
+ *
+ * @param serializerAdapter the serializerAdapter value.
+ * @return the AzureTrafficCollectorManagementClientBuilder.
+ */
+ public AzureTrafficCollectorManagementClientBuilder serializerAdapter(SerializerAdapter serializerAdapter) {
+ this.serializerAdapter = serializerAdapter;
+ return this;
+ }
+
+ /**
+ * Builds an instance of AzureTrafficCollectorManagementClientImpl with the provided parameters.
+ *
+ * @return an instance of AzureTrafficCollectorManagementClientImpl.
+ */
+ public AzureTrafficCollectorManagementClientImpl buildClient() {
+ if (endpoint == null) {
+ this.endpoint = "https://management.azure.com";
+ }
+ if (environment == null) {
+ this.environment = AzureEnvironment.AZURE;
+ }
+ if (pipeline == null) {
+ this.pipeline = new HttpPipelineBuilder().policies(new UserAgentPolicy(), new RetryPolicy()).build();
+ }
+ if (defaultPollInterval == null) {
+ this.defaultPollInterval = Duration.ofSeconds(30);
+ }
+ if (serializerAdapter == null) {
+ this.serializerAdapter = SerializerFactory.createDefaultManagementSerializerAdapter();
+ }
+ AzureTrafficCollectorManagementClientImpl client =
+ new AzureTrafficCollectorManagementClientImpl(
+ pipeline, serializerAdapter, defaultPollInterval, environment, subscriptionId, endpoint);
+ return client;
+ }
+}
diff --git a/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/AzureTrafficCollectorManagementClientImpl.java b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/AzureTrafficCollectorManagementClientImpl.java
new file mode 100644
index 000000000000..925cf71c1a24
--- /dev/null
+++ b/sdk/networkfunction/azure-resourcemanager-networkfunction/src/main/java/com/azure/resourcemanager/networkfunction/implementation/AzureTrafficCollectorManagementClientImpl.java
@@ -0,0 +1,349 @@
+// Copyright (c) Microsoft Corporation. All rights reserved.
+// Licensed under the MIT License.
+// Code generated by Microsoft (R) AutoRest Code Generator.
+
+package com.azure.resourcemanager.networkfunction.implementation;
+
+import com.azure.core.annotation.ServiceClient;
+import com.azure.core.http.HttpHeaders;
+import com.azure.core.http.HttpPipeline;
+import com.azure.core.http.HttpResponse;
+import com.azure.core.http.rest.Response;
+import com.azure.core.management.AzureEnvironment;
+import com.azure.core.management.exception.ManagementError;
+import com.azure.core.management.exception.ManagementException;
+import com.azure.core.management.polling.PollResult;
+import com.azure.core.management.polling.PollerFactory;
+import com.azure.core.util.Context;
+import com.azure.core.util.logging.ClientLogger;
+import com.azure.core.util.polling.AsyncPollResponse;
+import com.azure.core.util.polling.LongRunningOperationStatus;
+import com.azure.core.util.polling.PollerFlux;
+import com.azure.core.util.serializer.SerializerAdapter;
+import com.azure.core.util.serializer.SerializerEncoding;
+import com.azure.resourcemanager.networkfunction.fluent.AzureTrafficCollectorManagementClient;
+import com.azure.resourcemanager.networkfunction.fluent.AzureTrafficCollectorsByResourceGroupsClient;
+import com.azure.resourcemanager.networkfunction.fluent.AzureTrafficCollectorsBySubscriptionsClient;
+import com.azure.resourcemanager.networkfunction.fluent.AzureTrafficCollectorsClient;
+import com.azure.resourcemanager.networkfunction.fluent.CollectorPoliciesClient;
+import com.azure.resourcemanager.networkfunction.fluent.NetworkFunctionsClient;
+import java.io.IOException;
+import java.lang.reflect.Type;
+import java.nio.ByteBuffer;
+import java.nio.charset.Charset;
+import java.nio.charset.StandardCharsets;
+import java.time.Duration;
+import java.util.Map;
+import reactor.core.publisher.Flux;
+import reactor.core.publisher.Mono;
+
+/** Initializes a new instance of the AzureTrafficCollectorManagementClientImpl type. */
+@ServiceClient(builder = AzureTrafficCollectorManagementClientBuilder.class)
+public final class AzureTrafficCollectorManagementClientImpl implements AzureTrafficCollectorManagementClient {
+ /** Azure Subscription ID. */
+ private final String subscriptionId;
+
+ /**
+ * Gets Azure Subscription ID.
+ *
+ * @return the subscriptionId value.
+ */
+ public String getSubscriptionId() {
+ return this.subscriptionId;
+ }
+
+ /** server parameter. */
+ private final String endpoint;
+
+ /**
+ * Gets server parameter.
+ *
+ * @return the endpoint value.
+ */
+ public String getEndpoint() {
+ return this.endpoint;
+ }
+
+ /** Api Version. */
+ private final String apiVersion;
+
+ /**
+ * Gets Api Version.
+ *
+ * @return the apiVersion value.
+ */
+ public String getApiVersion() {
+ return this.apiVersion;
+ }
+
+ /** The HTTP pipeline to send requests through. */
+ private final HttpPipeline httpPipeline;
+
+ /**
+ * Gets The HTTP pipeline to send requests through.
+ *
+ * @return the httpPipeline value.
+ */
+ public HttpPipeline getHttpPipeline() {
+ return this.httpPipeline;
+ }
+
+ /** The serializer to serialize an object into a string. */
+ private final SerializerAdapter serializerAdapter;
+
+ /**
+ * Gets The serializer to serialize an object into a string.
+ *
+ * @return the serializerAdapter value.
+ */
+ SerializerAdapter getSerializerAdapter() {
+ return this.serializerAdapter;
+ }
+
+ /** The default poll interval for long-running operation. */
+ private final Duration defaultPollInterval;
+
+ /**
+ * Gets The default poll interval for long-running operation.
+ *
+ * @return the defaultPollInterval value.
+ */
+ public Duration getDefaultPollInterval() {
+ return this.defaultPollInterval;
+ }
+
+ /** The NetworkFunctionsClient object to access its operations. */
+ private final NetworkFunctionsClient networkFunctions;
+
+ /**
+ * Gets the NetworkFunctionsClient object to access its operations.
+ *
+ * @return the NetworkFunctionsClient object.
+ */
+ public NetworkFunctionsClient getNetworkFunctions() {
+ return this.networkFunctions;
+ }
+
+ /** The AzureTrafficCollectorsBySubscriptionsClient object to access its operations. */
+ private final AzureTrafficCollectorsBySubscriptionsClient azureTrafficCollectorsBySubscriptions;
+
+ /**
+ * Gets the AzureTrafficCollectorsBySubscriptionsClient object to access its operations.
+ *
+ * @return the AzureTrafficCollectorsBySubscriptionsClient object.
+ */
+ public AzureTrafficCollectorsBySubscriptionsClient getAzureTrafficCollectorsBySubscriptions() {
+ return this.azureTrafficCollectorsBySubscriptions;
+ }
+
+ /** The AzureTrafficCollectorsByResourceGroupsClient object to access its operations. */
+ private final AzureTrafficCollectorsByResourceGroupsClient azureTrafficCollectorsByResourceGroups;
+
+ /**
+ * Gets the AzureTrafficCollectorsByResourceGroupsClient object to access its operations.
+ *
+ * @return the AzureTrafficCollectorsByResourceGroupsClient object.
+ */
+ public AzureTrafficCollectorsByResourceGroupsClient getAzureTrafficCollectorsByResourceGroups() {
+ return this.azureTrafficCollectorsByResourceGroups;
+ }
+
+ /** The AzureTrafficCollectorsClient object to access its operations. */
+ private final AzureTrafficCollectorsClient azureTrafficCollectors;
+
+ /**
+ * Gets the AzureTrafficCollectorsClient object to access its operations.
+ *
+ * @return the AzureTrafficCollectorsClient object.
+ */
+ public AzureTrafficCollectorsClient getAzureTrafficCollectors() {
+ return this.azureTrafficCollectors;
+ }
+
+ /** The CollectorPoliciesClient object to access its operations. */
+ private final CollectorPoliciesClient collectorPolicies;
+
+ /**
+ * Gets the CollectorPoliciesClient object to access its operations.
+ *
+ * @return the CollectorPoliciesClient object.
+ */
+ public CollectorPoliciesClient getCollectorPolicies() {
+ return this.collectorPolicies;
+ }
+
+ /**
+ * Initializes an instance of AzureTrafficCollectorManagementClient client.
+ *
+ * @param httpPipeline The HTTP pipeline to send requests through.
+ * @param serializerAdapter The serializer to serialize an object into a string.
+ * @param defaultPollInterval The default poll interval for long-running operation.
+ * @param environment The Azure environment.
+ * @param subscriptionId Azure Subscription ID.
+ * @param endpoint server parameter.
+ */
+ AzureTrafficCollectorManagementClientImpl(
+ HttpPipeline httpPipeline,
+ SerializerAdapter serializerAdapter,
+ Duration defaultPollInterval,
+ AzureEnvironment environment,
+ String subscriptionId,
+ String endpoint) {
+ this.httpPipeline = httpPipeline;
+ this.serializerAdapter = serializerAdapter;
+ this.defaultPollInterval = defaultPollInterval;
+ this.subscriptionId = subscriptionId;
+ this.endpoint = endpoint;
+ this.apiVersion = "2022-05-01";
+ this.networkFunctions = new NetworkFunctionsClientImpl(this);
+ this.azureTrafficCollectorsBySubscriptions = new AzureTrafficCollectorsBySubscriptionsClientImpl(this);
+ this.azureTrafficCollectorsByResourceGroups = new AzureTrafficCollectorsByResourceGroupsClientImpl(this);
+ this.azureTrafficCollectors = new AzureTrafficCollectorsClientImpl(this);
+ this.collectorPolicies = new CollectorPoliciesClientImpl(this);
+ }
+
+ /**
+ * Gets default client context.
+ *
+ * @return the default client context.
+ */
+ public Context getContext() {
+ return Context.NONE;
+ }
+
+ /**
+ * Merges default client context with provided context.
+ *
+ * @param context the context to be merged with default client context.
+ * @return the merged context.
+ */
+ public Context mergeContext(Context context) {
+ for (Map.Entry