
com.azure.resourcemanager.datafactory.models.IntegrationRuntimeOutboundNetworkDependenciesEndpoint Maven / Gradle / Ivy
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.
package com.azure.resourcemanager.datafactory.models;
import com.azure.core.annotation.Fluent;
import com.azure.json.JsonReader;
import com.azure.json.JsonSerializable;
import com.azure.json.JsonToken;
import com.azure.json.JsonWriter;
import java.io.IOException;
import java.util.List;
/**
* The endpoint for Azure-SSIS integration runtime outbound network dependency.
*/
@Fluent
public final class IntegrationRuntimeOutboundNetworkDependenciesEndpoint
implements JsonSerializable {
/*
* The domain name of endpoint.
*/
private String domainName;
/*
* The details of endpoint.
*/
private List endpointDetails;
/**
* Creates an instance of IntegrationRuntimeOutboundNetworkDependenciesEndpoint class.
*/
public IntegrationRuntimeOutboundNetworkDependenciesEndpoint() {
}
/**
* Get the domainName property: The domain name of endpoint.
*
* @return the domainName value.
*/
public String domainName() {
return this.domainName;
}
/**
* Set the domainName property: The domain name of endpoint.
*
* @param domainName the domainName value to set.
* @return the IntegrationRuntimeOutboundNetworkDependenciesEndpoint object itself.
*/
public IntegrationRuntimeOutboundNetworkDependenciesEndpoint withDomainName(String domainName) {
this.domainName = domainName;
return this;
}
/**
* Get the endpointDetails property: The details of endpoint.
*
* @return the endpointDetails value.
*/
public List endpointDetails() {
return this.endpointDetails;
}
/**
* Set the endpointDetails property: The details of endpoint.
*
* @param endpointDetails the endpointDetails value to set.
* @return the IntegrationRuntimeOutboundNetworkDependenciesEndpoint object itself.
*/
public IntegrationRuntimeOutboundNetworkDependenciesEndpoint
withEndpointDetails(List endpointDetails) {
this.endpointDetails = endpointDetails;
return this;
}
/**
* Validates the instance.
*
* @throws IllegalArgumentException thrown if the instance is not valid.
*/
public void validate() {
if (endpointDetails() != null) {
endpointDetails().forEach(e -> e.validate());
}
}
/**
* {@inheritDoc}
*/
@Override
public JsonWriter toJson(JsonWriter jsonWriter) throws IOException {
jsonWriter.writeStartObject();
jsonWriter.writeStringField("domainName", this.domainName);
jsonWriter.writeArrayField("endpointDetails", this.endpointDetails,
(writer, element) -> writer.writeJson(element));
return jsonWriter.writeEndObject();
}
/**
* Reads an instance of IntegrationRuntimeOutboundNetworkDependenciesEndpoint from the JsonReader.
*
* @param jsonReader The JsonReader being read.
* @return An instance of IntegrationRuntimeOutboundNetworkDependenciesEndpoint if the JsonReader was pointing to an
* instance of it, or null if it was pointing to JSON null.
* @throws IOException If an error occurs while reading the IntegrationRuntimeOutboundNetworkDependenciesEndpoint.
*/
public static IntegrationRuntimeOutboundNetworkDependenciesEndpoint fromJson(JsonReader jsonReader)
throws IOException {
return jsonReader.readObject(reader -> {
IntegrationRuntimeOutboundNetworkDependenciesEndpoint deserializedIntegrationRuntimeOutboundNetworkDependenciesEndpoint
= new IntegrationRuntimeOutboundNetworkDependenciesEndpoint();
while (reader.nextToken() != JsonToken.END_OBJECT) {
String fieldName = reader.getFieldName();
reader.nextToken();
if ("domainName".equals(fieldName)) {
deserializedIntegrationRuntimeOutboundNetworkDependenciesEndpoint.domainName = reader.getString();
} else if ("endpointDetails".equals(fieldName)) {
List endpointDetails
= reader.readArray(
reader1 -> IntegrationRuntimeOutboundNetworkDependenciesEndpointDetails.fromJson(reader1));
deserializedIntegrationRuntimeOutboundNetworkDependenciesEndpoint.endpointDetails = endpointDetails;
} else {
reader.skipChildren();
}
}
return deserializedIntegrationRuntimeOutboundNetworkDependenciesEndpoint;
});
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy