
com.pulumi.azurenative.migrate.outputs.GetMigrateProjectResult Maven / Gradle / Ivy
// *** 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.migrate.outputs;
import com.pulumi.azurenative.migrate.outputs.MigrateProjectPropertiesResponse;
import com.pulumi.azurenative.migrate.outputs.MigrateProjectResponseTags;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetMigrateProjectResult {
/**
* @return Gets or sets the eTag for concurrency control.
*
*/
private @Nullable String eTag;
/**
* @return Gets the relative URL to get this migrate project.
*
*/
private String id;
/**
* @return Gets or sets the Azure location in which migrate project is created.
*
*/
private @Nullable String location;
/**
* @return Gets the name of the migrate project.
*
*/
private String name;
/**
* @return Gets or sets the nested properties.
*
*/
private MigrateProjectPropertiesResponse properties;
/**
* @return Gets or sets the tags.
*
*/
private @Nullable MigrateProjectResponseTags tags;
/**
* @return Handled by resource provider. Type = Microsoft.Migrate/MigrateProject.
*
*/
private String type;
private GetMigrateProjectResult() {}
/**
* @return Gets or sets the eTag for concurrency control.
*
*/
public Optional eTag() {
return Optional.ofNullable(this.eTag);
}
/**
* @return Gets the relative URL to get this migrate project.
*
*/
public String id() {
return this.id;
}
/**
* @return Gets or sets the Azure location in which migrate project is created.
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
/**
* @return Gets the name of the migrate project.
*
*/
public String name() {
return this.name;
}
/**
* @return Gets or sets the nested properties.
*
*/
public MigrateProjectPropertiesResponse properties() {
return this.properties;
}
/**
* @return Gets or sets the tags.
*
*/
public Optional tags() {
return Optional.ofNullable(this.tags);
}
/**
* @return Handled by resource provider. Type = Microsoft.Migrate/MigrateProject.
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetMigrateProjectResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String eTag;
private String id;
private @Nullable String location;
private String name;
private MigrateProjectPropertiesResponse properties;
private @Nullable MigrateProjectResponseTags tags;
private String type;
public Builder() {}
public Builder(GetMigrateProjectResult defaults) {
Objects.requireNonNull(defaults);
this.eTag = defaults.eTag;
this.id = defaults.id;
this.location = defaults.location;
this.name = defaults.name;
this.properties = defaults.properties;
this.tags = defaults.tags;
this.type = defaults.type;
}
@CustomType.Setter
public Builder eTag(@Nullable String eTag) {
this.eTag = eTag;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetMigrateProjectResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder location(@Nullable String location) {
this.location = location;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetMigrateProjectResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder properties(MigrateProjectPropertiesResponse properties) {
if (properties == null) {
throw new MissingRequiredPropertyException("GetMigrateProjectResult", "properties");
}
this.properties = properties;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable MigrateProjectResponseTags tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetMigrateProjectResult", "type");
}
this.type = type;
return this;
}
public GetMigrateProjectResult build() {
final var _resultValue = new GetMigrateProjectResult();
_resultValue.eTag = eTag;
_resultValue.id = id;
_resultValue.location = location;
_resultValue.name = name;
_resultValue.properties = properties;
_resultValue.tags = tags;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy