
com.pulumi.azurenative.security.outputs.GetStandardAssignmentResult 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.
// *** 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.AssignedStandardItemResponse;
import com.pulumi.azurenative.security.outputs.StandardAssignmentMetadataResponse;
import com.pulumi.azurenative.security.outputs.StandardAssignmentPropertiesResponseAttestationData;
import com.pulumi.azurenative.security.outputs.StandardAssignmentPropertiesResponseExemptionData;
import com.pulumi.core.annotations.CustomType;
import com.pulumi.exceptions.MissingRequiredPropertyException;
import java.lang.String;
import java.util.List;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
@CustomType
public final class GetStandardAssignmentResult {
/**
* @return Standard item with key as applied to this standard assignment over the given scope
*
*/
private @Nullable AssignedStandardItemResponse assignedStandard;
/**
* @return Additional data about assignment that has Attest effect
*
*/
private @Nullable StandardAssignmentPropertiesResponseAttestationData attestationData;
/**
* @return Description of the standardAssignment
*
*/
private @Nullable String description;
/**
* @return Display name of the standardAssignment
*
*/
private @Nullable String displayName;
/**
* @return Expected effect of this assignment (Audit/Exempt/Attest)
*
*/
private @Nullable String effect;
/**
* @return Excluded scopes, filter out the descendants of the scope (on management scopes)
*
*/
private @Nullable List excludedScopes;
/**
* @return Additional data about assignment that has Exempt effect
*
*/
private @Nullable StandardAssignmentPropertiesResponseExemptionData exemptionData;
/**
* @return Expiration date of this assignment as a full ISO date
*
*/
private @Nullable String expiresOn;
/**
* @return Resource Id
*
*/
private String id;
/**
* @return The standard assignment metadata.
*
*/
private @Nullable StandardAssignmentMetadataResponse metadata;
/**
* @return Resource name
*
*/
private String name;
/**
* @return Resource type
*
*/
private String type;
private GetStandardAssignmentResult() {}
/**
* @return Standard item with key as applied to this standard assignment over the given scope
*
*/
public Optional assignedStandard() {
return Optional.ofNullable(this.assignedStandard);
}
/**
* @return Additional data about assignment that has Attest effect
*
*/
public Optional attestationData() {
return Optional.ofNullable(this.attestationData);
}
/**
* @return Description of the standardAssignment
*
*/
public Optional description() {
return Optional.ofNullable(this.description);
}
/**
* @return Display name of the standardAssignment
*
*/
public Optional displayName() {
return Optional.ofNullable(this.displayName);
}
/**
* @return Expected effect of this assignment (Audit/Exempt/Attest)
*
*/
public Optional effect() {
return Optional.ofNullable(this.effect);
}
/**
* @return Excluded scopes, filter out the descendants of the scope (on management scopes)
*
*/
public List excludedScopes() {
return this.excludedScopes == null ? List.of() : this.excludedScopes;
}
/**
* @return Additional data about assignment that has Exempt effect
*
*/
public Optional exemptionData() {
return Optional.ofNullable(this.exemptionData);
}
/**
* @return Expiration date of this assignment as a full ISO date
*
*/
public Optional expiresOn() {
return Optional.ofNullable(this.expiresOn);
}
/**
* @return Resource Id
*
*/
public String id() {
return this.id;
}
/**
* @return The standard assignment metadata.
*
*/
public Optional metadata() {
return Optional.ofNullable(this.metadata);
}
/**
* @return Resource name
*
*/
public String name() {
return this.name;
}
/**
* @return Resource type
*
*/
public String type() {
return this.type;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetStandardAssignmentResult defaults) {
return new Builder(defaults);
}
@CustomType.Builder
public static final class Builder {
private @Nullable AssignedStandardItemResponse assignedStandard;
private @Nullable StandardAssignmentPropertiesResponseAttestationData attestationData;
private @Nullable String description;
private @Nullable String displayName;
private @Nullable String effect;
private @Nullable List excludedScopes;
private @Nullable StandardAssignmentPropertiesResponseExemptionData exemptionData;
private @Nullable String expiresOn;
private String id;
private @Nullable StandardAssignmentMetadataResponse metadata;
private String name;
private String type;
public Builder() {}
public Builder(GetStandardAssignmentResult defaults) {
Objects.requireNonNull(defaults);
this.assignedStandard = defaults.assignedStandard;
this.attestationData = defaults.attestationData;
this.description = defaults.description;
this.displayName = defaults.displayName;
this.effect = defaults.effect;
this.excludedScopes = defaults.excludedScopes;
this.exemptionData = defaults.exemptionData;
this.expiresOn = defaults.expiresOn;
this.id = defaults.id;
this.metadata = defaults.metadata;
this.name = defaults.name;
this.type = defaults.type;
}
@CustomType.Setter
public Builder assignedStandard(@Nullable AssignedStandardItemResponse assignedStandard) {
this.assignedStandard = assignedStandard;
return this;
}
@CustomType.Setter
public Builder attestationData(@Nullable StandardAssignmentPropertiesResponseAttestationData attestationData) {
this.attestationData = attestationData;
return this;
}
@CustomType.Setter
public Builder description(@Nullable String description) {
this.description = description;
return this;
}
@CustomType.Setter
public Builder displayName(@Nullable String displayName) {
this.displayName = displayName;
return this;
}
@CustomType.Setter
public Builder effect(@Nullable String effect) {
this.effect = effect;
return this;
}
@CustomType.Setter
public Builder excludedScopes(@Nullable List excludedScopes) {
this.excludedScopes = excludedScopes;
return this;
}
public Builder excludedScopes(String... excludedScopes) {
return excludedScopes(List.of(excludedScopes));
}
@CustomType.Setter
public Builder exemptionData(@Nullable StandardAssignmentPropertiesResponseExemptionData exemptionData) {
this.exemptionData = exemptionData;
return this;
}
@CustomType.Setter
public Builder expiresOn(@Nullable String expiresOn) {
this.expiresOn = expiresOn;
return this;
}
@CustomType.Setter
public Builder id(String id) {
if (id == null) {
throw new MissingRequiredPropertyException("GetStandardAssignmentResult", "id");
}
this.id = id;
return this;
}
@CustomType.Setter
public Builder metadata(@Nullable StandardAssignmentMetadataResponse metadata) {
this.metadata = metadata;
return this;
}
@CustomType.Setter
public Builder name(String name) {
if (name == null) {
throw new MissingRequiredPropertyException("GetStandardAssignmentResult", "name");
}
this.name = name;
return this;
}
@CustomType.Setter
public Builder type(String type) {
if (type == null) {
throw new MissingRequiredPropertyException("GetStandardAssignmentResult", "type");
}
this.type = type;
return this;
}
public GetStandardAssignmentResult build() {
final var _resultValue = new GetStandardAssignmentResult();
_resultValue.assignedStandard = assignedStandard;
_resultValue.attestationData = attestationData;
_resultValue.description = description;
_resultValue.displayName = displayName;
_resultValue.effect = effect;
_resultValue.excludedScopes = excludedScopes;
_resultValue.exemptionData = exemptionData;
_resultValue.expiresOn = expiresOn;
_resultValue.id = id;
_resultValue.metadata = metadata;
_resultValue.name = name;
_resultValue.type = type;
return _resultValue;
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy