com.pulumi.azurenative.network.outputs.ConnectionMonitorTestGroupResponse Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure-native Show documentation
Show all versions of azure-native Show documentation
A native Pulumi package for creating and managing Azure resources.
The newest version!
// *** WARNING: this file was generated by pulumi-java-gen. ***
// *** Do not edit by hand unless you're certain you know what you are doing! ***
package com.pulumi.azurenative.network.outputs;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.Boolean;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class ConnectionMonitorTestGroupResponse {
/**
* @return List of destination endpoint names.
*
*/
private List destinations;
/**
* @return Value indicating whether test group is disabled.
*
*/
private @Nullable Boolean disable;
/**
* @return The name of the connection monitor test group.
*
*/
private String name;
/**
* @return List of source endpoint names.
*
*/
private List sources;
/**
* @return List of test configuration names.
*
*/
private List testConfigurations;
private ConnectionMonitorTestGroupResponse() {}
/**
* @return List of destination endpoint names.
*
*/
public List destinations() {
return this.destinations;
}
/**
* @return Value indicating whether test group is disabled.
*
*/
public Optional disable() {
return Optional.ofNullable(this.disable);
}
/**
* @return The name of the connection monitor test group.
*
*/
public String name() {
return this.name;
}
/**
* @return List of source endpoint names.
*
*/
public List sources() {
return this.sources;
}
/**
* @return List of test configuration names.
*
*/
public List testConfigurations() {
return this.testConfigurations;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(ConnectionMonitorTestGroupResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private List destinations;
private @Nullable Boolean disable;
private String name;
private List sources;
private List testConfigurations;
public Builder() {}
public Builder(ConnectionMonitorTestGroupResponse defaults) {
Objects.requireNonNull(defaults);
this.destinations = defaults.destinations;
this.disable = defaults.disable;
this.name = defaults.name;
this.sources = defaults.sources;
this.testConfigurations = defaults.testConfigurations;
}
@CustomType.Setter
public Builder destinations(List destinations) {
if (destinations == null) {
throw new MissingRequiredPropertyException("ConnectionMonitorTestGroupResponse", "destinations");
}
this.destinations = destinations;
return this;
}
public Builder destinations(String... destinations) {
return destinations(List.of(destinations));
}
@CustomType.Setter
public Builder disable(@Nullable Boolean disable) {
this.disable = disable;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("ConnectionMonitorTestGroupResponse", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder sources(List sources) {
if (sources == null) {
throw new MissingRequiredPropertyException("ConnectionMonitorTestGroupResponse", "sources");
}
this.sources = sources;
return this;
}
public Builder sources(String... sources) {
return sources(List.of(sources));
}
@CustomType.Setter
public Builder testConfigurations(List testConfigurations) {
if (testConfigurations == null) {
throw new MissingRequiredPropertyException("ConnectionMonitorTestGroupResponse", "testConfigurations");
}
this.testConfigurations = testConfigurations;
return this;
}
public Builder testConfigurations(String... testConfigurations) {
return testConfigurations(List.of(testConfigurations));
}
public ConnectionMonitorTestGroupResponse build() {
final var _resultValue = new ConnectionMonitorTestGroupResponse();
_resultValue.destinations = destinations;
_resultValue.disable = disable;
_resultValue.name = name;
_resultValue.sources = sources;
_resultValue.testConfigurations = testConfigurations;
return _resultValue;
}
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy