Class CloudAssetProjectFeedConfig.Builder
- java.lang.Object
-
- com.hashicorp.cdktf.providers.google.cloud_asset_project_feed.CloudAssetProjectFeedConfig.Builder
-
- All Implemented Interfaces:
software.amazon.jsii.Builder<CloudAssetProjectFeedConfig>
- Enclosing interface:
- CloudAssetProjectFeedConfig
@Stability(Stable) public static final class CloudAssetProjectFeedConfig.Builder extends Object implements software.amazon.jsii.Builder<CloudAssetProjectFeedConfig>
A builder forCloudAssetProjectFeedConfig
-
-
Constructor Summary
Constructors Constructor Description Builder()
-
Method Summary
-
-
-
Method Detail
-
feedId
@Stability(Stable) public CloudAssetProjectFeedConfig.Builder feedId(String feedId)
Sets the value ofCloudAssetProjectFeedConfig.getFeedId()- Parameters:
feedId- This is the client-assigned asset feed identifier and it needs to be unique under a specific parent. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_asset_project_feed#feed_id CloudAssetProjectFeed#feed_id}- Returns:
this
-
feedOutputConfig
@Stability(Stable) public CloudAssetProjectFeedConfig.Builder feedOutputConfig(CloudAssetProjectFeedFeedOutputConfig feedOutputConfig)
Sets the value ofCloudAssetProjectFeedConfig.getFeedOutputConfig()- Parameters:
feedOutputConfig- feed_output_config block. This parameter is required. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_asset_project_feed#feed_output_config CloudAssetProjectFeed#feed_output_config}- Returns:
this
-
assetNames
@Stability(Stable) public CloudAssetProjectFeedConfig.Builder assetNames(List<String> assetNames)
Sets the value ofCloudAssetProjectFeedConfig.getAssetNames()- Parameters:
assetNames- A list of the full names of the assets to receive updates. You must specify either or both of assetNames and assetTypes. Only asset updates matching specified assetNames and assetTypes are exported to the feed. For example: //compute.googleapis.com/projects/my_project_123/zones/zone1/instances/instance1. See https://cloud.google.com/apis/design/resourceNames#fullResourceName for more info. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_asset_project_feed#asset_names CloudAssetProjectFeed#asset_names}- Returns:
this
-
assetTypes
@Stability(Stable) public CloudAssetProjectFeedConfig.Builder assetTypes(List<String> assetTypes)
Sets the value ofCloudAssetProjectFeedConfig.getAssetTypes()- Parameters:
assetTypes- A list of types of the assets to receive updates. You must specify either or both of assetNames and assetTypes. Only asset updates matching specified assetNames and assetTypes are exported to the feed. For example: "compute.googleapis.com/Disk" See https://cloud.google.com/asset-inventory/docs/supported-asset-types for a list of all supported asset types. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_asset_project_feed#asset_types CloudAssetProjectFeed#asset_types}- Returns:
this
-
billingProject
@Stability(Stable) public CloudAssetProjectFeedConfig.Builder billingProject(String billingProject)
Sets the value ofCloudAssetProjectFeedConfig.getBillingProject()- Parameters:
billingProject- The project whose identity will be used when sending messages to the destination pubsub topic. It also specifies the project for API enablement check, quota, and billing. If not specified, the resource's project will be used. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_asset_project_feed#billing_project CloudAssetProjectFeed#billing_project}- Returns:
this
-
condition
@Stability(Stable) public CloudAssetProjectFeedConfig.Builder condition(CloudAssetProjectFeedCondition condition)
Sets the value ofCloudAssetProjectFeedConfig.getCondition()- Parameters:
condition- condition block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_asset_project_feed#condition CloudAssetProjectFeed#condition}- Returns:
this
-
contentType
@Stability(Stable) public CloudAssetProjectFeedConfig.Builder contentType(String contentType)
Sets the value ofCloudAssetProjectFeedConfig.getContentType()- Parameters:
contentType- Asset content type. If not specified, no content but the asset name and type will be returned. Possible values: ["CONTENT_TYPE_UNSPECIFIED", "RESOURCE", "IAM_POLICY", "ORG_POLICY", "OS_INVENTORY", "ACCESS_POLICY"] Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_asset_project_feed#content_type CloudAssetProjectFeed#content_type}- Returns:
this
-
id
@Stability(Stable) public CloudAssetProjectFeedConfig.Builder id(String id)
Sets the value ofCloudAssetProjectFeedConfig.getId()- Parameters:
id- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_asset_project_feed#id CloudAssetProjectFeed#id}. Please be aware that the id field is automatically added to all resources in Terraform providers using a Terraform provider SDK version below 2. If you experience problems setting this value it might not be settable. Please take a look at the provider documentation to ensure it should be settable.- Returns:
this
-
project
@Stability(Stable) public CloudAssetProjectFeedConfig.Builder project(String project)
Sets the value ofCloudAssetProjectFeedConfig.getProject()- Parameters:
project- Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_asset_project_feed#project CloudAssetProjectFeed#project}.- Returns:
this
-
timeouts
@Stability(Stable) public CloudAssetProjectFeedConfig.Builder timeouts(CloudAssetProjectFeedTimeouts timeouts)
Sets the value ofCloudAssetProjectFeedConfig.getTimeouts()- Parameters:
timeouts- timeouts block. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/cloud_asset_project_feed#timeouts CloudAssetProjectFeed#timeouts}- Returns:
this
-
connection
@Stability(Experimental) public CloudAssetProjectFeedConfig.Builder connection(com.hashicorp.cdktf.SSHProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
connection
@Stability(Experimental) public CloudAssetProjectFeedConfig.Builder connection(com.hashicorp.cdktf.WinrmProvisionerConnection connection)
Sets the value ofTerraformMetaArguments.getConnection()- Parameters:
connection- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public CloudAssetProjectFeedConfig.Builder count(Number count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
count
@Stability(Experimental) public CloudAssetProjectFeedConfig.Builder count(com.hashicorp.cdktf.TerraformCount count)
Sets the value ofTerraformMetaArguments.getCount()- Parameters:
count- the value to be set.- Returns:
this
-
dependsOn
@Stability(Experimental) public CloudAssetProjectFeedConfig.Builder dependsOn(List<? extends com.hashicorp.cdktf.ITerraformDependable> dependsOn)
Sets the value ofTerraformMetaArguments.getDependsOn()- Parameters:
dependsOn- the value to be set.- Returns:
this
-
forEach
@Stability(Experimental) public CloudAssetProjectFeedConfig.Builder forEach(com.hashicorp.cdktf.ITerraformIterator forEach)
Sets the value ofTerraformMetaArguments.getForEach()- Parameters:
forEach- the value to be set.- Returns:
this
-
lifecycle
@Stability(Experimental) public CloudAssetProjectFeedConfig.Builder lifecycle(com.hashicorp.cdktf.TerraformResourceLifecycle lifecycle)
Sets the value ofTerraformMetaArguments.getLifecycle()- Parameters:
lifecycle- the value to be set.- Returns:
this
-
provider
@Stability(Experimental) public CloudAssetProjectFeedConfig.Builder provider(com.hashicorp.cdktf.TerraformProvider provider)
Sets the value ofTerraformMetaArguments.getProvider()- Parameters:
provider- the value to be set.- Returns:
this
-
provisioners
@Stability(Experimental) public CloudAssetProjectFeedConfig.Builder provisioners(List<? extends Object> provisioners)
Sets the value ofTerraformMetaArguments.getProvisioners()- Parameters:
provisioners- the value to be set.- Returns:
this
-
build
@Stability(Stable) public CloudAssetProjectFeedConfig build()
Builds the configured instance.- Specified by:
buildin interfacesoftware.amazon.jsii.Builder<CloudAssetProjectFeedConfig>- Returns:
- a new instance of
CloudAssetProjectFeedConfig - Throws:
NullPointerException- if any required attribute was not provided
-
-