com.pulumi.azure.policy.inputs.GetPolicyDefintionBuiltInPlainArgs Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of azure Show documentation
Show all versions of azure Show documentation
A Pulumi package for creating and managing Microsoft Azure cloud resources, based on the Terraform azurerm provider. We recommend using the [Azure Native provider](https://github.com/pulumi/pulumi-azure-native) to provision Azure infrastructure. Azure Native provides complete coverage of Azure resources and same-day access to new resources and resource updates.
// *** 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.azure.policy.inputs;
import com.pulumi.core.annotations.Import;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;
public final class GetPolicyDefintionBuiltInPlainArgs extends com.pulumi.resources.InvokeArgs {
public static final GetPolicyDefintionBuiltInPlainArgs Empty = new GetPolicyDefintionBuiltInPlainArgs();
/**
* Specifies the display name of the Policy Definition. Conflicts with `name`.
*
* > **NOTE** As `display_name` is not unique errors may occur when there are multiple policy definitions with same display name.
*
*/
@Import(name="displayName")
private @Nullable String displayName;
/**
* @return Specifies the display name of the Policy Definition. Conflicts with `name`.
*
* > **NOTE** As `display_name` is not unique errors may occur when there are multiple policy definitions with same display name.
*
*/
public Optional displayName() {
return Optional.ofNullable(this.displayName);
}
/**
* Only retrieve Policy Definitions from this Management Group.
*
*/
@Import(name="managementGroupName")
private @Nullable String managementGroupName;
/**
* @return Only retrieve Policy Definitions from this Management Group.
*
*/
public Optional managementGroupName() {
return Optional.ofNullable(this.managementGroupName);
}
/**
* Specifies the name of the Policy Definition. Conflicts with `display_name`.
*
*/
@Import(name="name")
private @Nullable String name;
/**
* @return Specifies the name of the Policy Definition. Conflicts with `display_name`.
*
*/
public Optional name() {
return Optional.ofNullable(this.name);
}
private GetPolicyDefintionBuiltInPlainArgs() {}
private GetPolicyDefintionBuiltInPlainArgs(GetPolicyDefintionBuiltInPlainArgs $) {
this.displayName = $.displayName;
this.managementGroupName = $.managementGroupName;
this.name = $.name;
}
public static Builder builder() {
return new Builder();
}
public static Builder builder(GetPolicyDefintionBuiltInPlainArgs defaults) {
return new Builder(defaults);
}
public static final class Builder {
private GetPolicyDefintionBuiltInPlainArgs $;
public Builder() {
$ = new GetPolicyDefintionBuiltInPlainArgs();
}
public Builder(GetPolicyDefintionBuiltInPlainArgs defaults) {
$ = new GetPolicyDefintionBuiltInPlainArgs(Objects.requireNonNull(defaults));
}
/**
* @param displayName Specifies the display name of the Policy Definition. Conflicts with `name`.
*
* > **NOTE** As `display_name` is not unique errors may occur when there are multiple policy definitions with same display name.
*
* @return builder
*
*/
public Builder displayName(@Nullable String displayName) {
$.displayName = displayName;
return this;
}
/**
* @param managementGroupName Only retrieve Policy Definitions from this Management Group.
*
* @return builder
*
*/
public Builder managementGroupName(@Nullable String managementGroupName) {
$.managementGroupName = managementGroupName;
return this;
}
/**
* @param name Specifies the name of the Policy Definition. Conflicts with `display_name`.
*
* @return builder
*
*/
public Builder name(@Nullable String name) {
$.name = name;
return this;
}
public GetPolicyDefintionBuiltInPlainArgs build() {
return $;
}
}
}