
com.pulumi.azurenative.security.outputs.DevOpsPolicyAssignmentPropertiesResponse 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.security.outputs;
import com.pulumi.azurenative.security.outputs.DevOpsPolicyDescriptorResponse;
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 DevOpsPolicyAssignmentPropertiesResponse {
/**
* @return Gets or sets time when the assignment was created in UTC.
*
*/
private @Nullable String assignedAt;
/**
* @return The behavior of a policy on descendant resources.
*
*/
private @Nullable String descendantBehavior;
/**
* @return Condensed information to identify a DevOps Policy resource.
*
*/
private @Nullable DevOpsPolicyDescriptorResponse policy;
/**
* @return The provisioning state of the resource.
*
* Pending - Provisioning pending.
* Failed - Provisioning failed.
* Succeeded - Successful provisioning.
* Canceled - Provisioning canceled.
* PendingDeletion - Deletion pending.
* DeletionSuccess - Deletion successful.
* DeletionFailure - Deletion failure.
*
*/
private String provisioningState;
/**
* @return Gets the resource status message.
*
*/
private String provisioningStatusMessage;
/**
* @return Gets the time when resource was last checked.
*
*/
private String provisioningStatusUpdateTimeUtc;
/**
* @return Gets or sets the Azure resource id.
*
*/
private @Nullable String resourceId;
private DevOpsPolicyAssignmentPropertiesResponse() {}
/**
* @return Gets or sets time when the assignment was created in UTC.
*
*/
public Optional assignedAt() {
return Optional.ofNullable(this.assignedAt);
}
/**
* @return The behavior of a policy on descendant resources.
*
*/
public Optional descendantBehavior() {
return Optional.ofNullable(this.descendantBehavior);
}
/**
* @return Condensed information to identify a DevOps Policy resource.
*
*/
public Optional policy() {
return Optional.ofNullable(this.policy);
}
/**
* @return The provisioning state of the resource.
*
* Pending - Provisioning pending.
* Failed - Provisioning failed.
* Succeeded - Successful provisioning.
* Canceled - Provisioning canceled.
* PendingDeletion - Deletion pending.
* DeletionSuccess - Deletion successful.
* DeletionFailure - Deletion failure.
*
*/
public String provisioningState() {
return this.provisioningState;
}
/**
* @return Gets the resource status message.
*
*/
public String provisioningStatusMessage() {
return this.provisioningStatusMessage;
}
/**
* @return Gets the time when resource was last checked.
*
*/
public String provisioningStatusUpdateTimeUtc() {
return this.provisioningStatusUpdateTimeUtc;
}
/**
* @return Gets or sets the Azure resource id.
*
*/
public Optional resourceId() {
return Optional.ofNullable(this.resourceId);
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(DevOpsPolicyAssignmentPropertiesResponse defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable String assignedAt;
private @Nullable String descendantBehavior;
private @Nullable DevOpsPolicyDescriptorResponse policy;
private String provisioningState;
private String provisioningStatusMessage;
private String provisioningStatusUpdateTimeUtc;
private @Nullable String resourceId;
public Builder() {}
public Builder(DevOpsPolicyAssignmentPropertiesResponse defaults) {
Objects.requireNonNull(defaults);
this.assignedAt = defaults.assignedAt;
this.descendantBehavior = defaults.descendantBehavior;
this.policy = defaults.policy;
this.provisioningState = defaults.provisioningState;
this.provisioningStatusMessage = defaults.provisioningStatusMessage;
this.provisioningStatusUpdateTimeUtc = defaults.provisioningStatusUpdateTimeUtc;
this.resourceId = defaults.resourceId;
}
@CustomType.Setter
public Builder assignedAt(@Nullable String assignedAt) {
this.assignedAt = assignedAt;
return this;
}
@CustomType.Setter
public Builder descendantBehavior(@Nullable String descendantBehavior) {
this.descendantBehavior = descendantBehavior;
return this;
}
@CustomType.Setter
public Builder policy(@Nullable DevOpsPolicyDescriptorResponse policy) {
this.policy = policy;
return this;
}
@CustomType.Setter
public Builder provisioningState(String provisioningState) {
if (provisioningState == null) {
throw new MissingRequiredPropertyException("DevOpsPolicyAssignmentPropertiesResponse", "provisioningState");
}
this.provisioningState = provisioningState;
return this;
}
@CustomType.Setter
public Builder provisioningStatusMessage(String provisioningStatusMessage) {
if (provisioningStatusMessage == null) {
throw new MissingRequiredPropertyException("DevOpsPolicyAssignmentPropertiesResponse", "provisioningStatusMessage");
}
this.provisioningStatusMessage = provisioningStatusMessage;
return this;
}
@CustomType.Setter
public Builder provisioningStatusUpdateTimeUtc(String provisioningStatusUpdateTimeUtc) {
if (provisioningStatusUpdateTimeUtc == null) {
throw new MissingRequiredPropertyException("DevOpsPolicyAssignmentPropertiesResponse", "provisioningStatusUpdateTimeUtc");
}
this.provisioningStatusUpdateTimeUtc = provisioningStatusUpdateTimeUtc;
return this;
}
@CustomType.Setter
public Builder resourceId(@Nullable String resourceId) {
this.resourceId = resourceId;
return this;
}
public DevOpsPolicyAssignmentPropertiesResponse build() {
final var _resultValue = new DevOpsPolicyAssignmentPropertiesResponse();
_resultValue.assignedAt = assignedAt;
_resultValue.descendantBehavior = descendantBehavior;
_resultValue.policy = policy;
_resultValue.provisioningState = provisioningState;
_resultValue.provisioningStatusMessage = provisioningStatusMessage;
_resultValue.provisioningStatusUpdateTimeUtc = provisioningStatusUpdateTimeUtc;
_resultValue.resourceId = resourceId;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy