
com.pulumi.azurenative.servicefabric.outputs.GetManagedClusterApplicationResult 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.servicefabric.outputs;
import com.pulumi.azurenative.servicefabric.outputs.ApplicationUpgradePolicyResponse;
import com.pulumi.azurenative.servicefabric.outputs.ApplicationUserAssignedIdentityResponse;
import com.pulumi.azurenative.servicefabric.outputs.ManagedIdentityResponse;
import com.pulumi.azurenative.servicefabric.outputs.SystemDataResponse;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetManagedClusterApplicationResult {
/**
* @return Azure resource identifier.
*
*/
private String id;
/**
* @return Describes the managed identities for an Azure resource.
*
*/
private @Nullable ManagedIdentityResponse identity;
/**
* @return Resource location depends on the parent resource.
*
*/
private @Nullable String location;
/**
* @return List of user assigned identities for the application, each mapped to a friendly name.
*
*/
private @Nullable List managedIdentities;
/**
* @return Azure resource name.
*
*/
private String name;
/**
* @return List of application parameters with overridden values from their default values specified in the application manifest.
*
*/
private @Nullable Map parameters;
/**
* @return The current deployment or provisioning state, which only appears in the response
*
*/
private String provisioningState;
/**
* @return Metadata pertaining to creation and last modification of the resource.
*
*/
private SystemDataResponse systemData;
/**
* @return Azure resource tags.
*
*/
private @Nullable Map tags;
/**
* @return Azure resource type.
*
*/
private String type;
/**
* @return Describes the policy for a monitored application upgrade.
*
*/
private @Nullable ApplicationUpgradePolicyResponse upgradePolicy;
/**
* @return The version of the application type as defined in the application manifest.
* This name must be the full Arm Resource ID for the referenced application type version.
*
*/
private @Nullable String version;
private GetManagedClusterApplicationResult() {}
/**
* @return Azure resource identifier.
*
*/
public String id() {
return this.id;
}
/**
* @return Describes the managed identities for an Azure resource.
*
*/
public Optional identity() {
return Optional.ofNullable(this.identity);
}
/**
* @return Resource location depends on the parent resource.
*
*/
public Optional location() {
return Optional.ofNullable(this.location);
}
/**
* @return List of user assigned identities for the application, each mapped to a friendly name.
*
*/
public List managedIdentities() {
return this.managedIdentities == null ? List.of() : this.managedIdentities;
}
/**
* @return Azure resource name.
*
*/
public String name() {
return this.name;
}
/**
* @return List of application parameters with overridden values from their default values specified in the application manifest.
*
*/
public Map parameters() {
return this.parameters == null ? Map.of() : this.parameters;
}
/**
* @return The current deployment or provisioning state, which only appears in the response
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Metadata pertaining to creation and last modification of the resource.
*
*/
public SystemDataResponse systemData() {
return this.systemData;
}
/**
* @return Azure resource tags.
*
*/
public Map tags() {
return this.tags == null ? Map.of() : this.tags;
}
/**
* @return Azure resource type.
*
*/
public String type() {
return this.type;
}
/**
* @return Describes the policy for a monitored application upgrade.
*
*/
public Optional upgradePolicy() {
return Optional.ofNullable(this.upgradePolicy);
}
/**
* @return The version of the application type as defined in the application manifest.
* This name must be the full Arm Resource ID for the referenced application type version.
*
*/
public Optional version() {
return Optional.ofNullable(this.version);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetManagedClusterApplicationResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private String id;
private @Nullable ManagedIdentityResponse identity;
private @Nullable String location;
private @Nullable List managedIdentities;
private String name;
private @Nullable Map parameters;
private String provisioningState;
private SystemDataResponse systemData;
private @Nullable Map tags;
private String type;
private @Nullable ApplicationUpgradePolicyResponse upgradePolicy;
private @Nullable String version;
public Builder() {}
public Builder(GetManagedClusterApplicationResult defaults) {
Objects.requireNonNull(defaults);
this.id = defaults.id;
this.identity = defaults.identity;
this.location = defaults.location;
this.managedIdentities = defaults.managedIdentities;
this.name = defaults.name;
this.parameters = defaults.parameters;
this.provisioningState = defaults.provisioningState;
this.systemData = defaults.systemData;
this.tags = defaults.tags;
this.type = defaults.type;
this.upgradePolicy = defaults.upgradePolicy;
this.version = defaults.version;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetManagedClusterApplicationResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder identity(@Nullable ManagedIdentityResponse identity) {
this.identity = identity;
return this;
}
@CustomType.Setter
public Builder location(@Nullable String location) {
this.location = location;
return this;
}
@CustomType.Setter
public Builder managedIdentities(@Nullable List managedIdentities) {
this.managedIdentities = managedIdentities;
return this;
}
public Builder managedIdentities(ApplicationUserAssignedIdentityResponse... managedIdentities) {
return managedIdentities(List.of(managedIdentities));
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetManagedClusterApplicationResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder parameters(@Nullable Map parameters) {
this.parameters = parameters;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("GetManagedClusterApplicationResult", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder systemData(SystemDataResponse systemData) {
if (systemData == null) {
throw new MissingRequiredPropertyException("GetManagedClusterApplicationResult", "systemData");
}
this.systemData = systemData;
return this;
}
@CustomType.Setter
public Builder tags(@Nullable Map tags) {
this.tags = tags;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetManagedClusterApplicationResult", "type");
}
this.type = type;
return this;
}
@CustomType.Setter
public Builder upgradePolicy(@Nullable ApplicationUpgradePolicyResponse upgradePolicy) {
this.upgradePolicy = upgradePolicy;
return this;
}
@CustomType.Setter
public Builder version(@Nullable String version) {
this.version = version;
return this;
}
public GetManagedClusterApplicationResult build() {
final var _resultValue = new GetManagedClusterApplicationResult();
_resultValue.id = id;
_resultValue.identity = identity;
_resultValue.location = location;
_resultValue.managedIdentities = managedIdentities;
_resultValue.name = name;
_resultValue.parameters = parameters;
_resultValue.provisioningState = provisioningState;
_resultValue.systemData = systemData;
_resultValue.tags = tags;
_resultValue.type = type;
_resultValue.upgradePolicy = upgradePolicy;
_resultValue.version = version;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy