Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
com.pulumi.gcp.netapp.kotlin.VolumeReplicationArgs.kt Maven / Gradle / Ivy
@file:Suppress("NAME_SHADOWING", "DEPRECATION")
package com.pulumi.gcp.netapp.kotlin
import com.pulumi.core.Output
import com.pulumi.core.Output.of
import com.pulumi.gcp.netapp.VolumeReplicationArgs.builder
import com.pulumi.gcp.netapp.kotlin.inputs.VolumeReplicationDestinationVolumeParametersArgs
import com.pulumi.gcp.netapp.kotlin.inputs.VolumeReplicationDestinationVolumeParametersArgsBuilder
import com.pulumi.kotlin.ConvertibleToJava
import com.pulumi.kotlin.PulumiTagMarker
import com.pulumi.kotlin.applySuspend
import kotlin.Boolean
import kotlin.Pair
import kotlin.String
import kotlin.Suppress
import kotlin.Unit
import kotlin.collections.Map
import kotlin.jvm.JvmName
/**
* ## Example Usage
* ### Netapp Volume Replication Create
*
* ```typescript
* import * as pulumi from "@pulumi/pulumi";
* import * as gcp from "@pulumi/gcp";
* const default = gcp.compute.getNetwork({
* name: "test-network",
* });
* const sourcePool = new gcp.netapp.StoragePool("source_pool", {
* name: "source-pool",
* location: "us-central1",
* serviceLevel: "PREMIUM",
* capacityGib: "2048",
* network: _default.then(_default => _default.id),
* });
* const destinationPool = new gcp.netapp.StoragePool("destination_pool", {
* name: "destination-pool",
* location: "us-west2",
* serviceLevel: "PREMIUM",
* capacityGib: "2048",
* network: _default.then(_default => _default.id),
* });
* const sourceVolume = new gcp.netapp.Volume("source_volume", {
* location: sourcePool.location,
* name: "source-volume",
* capacityGib: "100",
* shareName: "source-volume",
* storagePool: sourcePool.name,
* protocols: ["NFSV3"],
* deletionPolicy: "FORCE",
* });
* const testReplication = new gcp.netapp.VolumeReplication("test_replication", {
* location: sourceVolume.location,
* volumeName: sourceVolume.name,
* name: "test-replication",
* replicationSchedule: "EVERY_10_MINUTES",
* description: "This is a replication resource",
* destinationVolumeParameters: {
* storagePool: destinationPool.id,
* volumeId: "destination-volume",
* shareName: "source-volume",
* description: "This is a replicated volume",
* },
* deleteDestinationVolume: true,
* waitForMirror: true,
* }, {
* dependsOn: [sourceVolume],
* });
* ```
* ```python
* import pulumi
* import pulumi_gcp as gcp
* default = gcp.compute.get_network(name="test-network")
* source_pool = gcp.netapp.StoragePool("source_pool",
* name="source-pool",
* location="us-central1",
* service_level="PREMIUM",
* capacity_gib="2048",
* network=default.id)
* destination_pool = gcp.netapp.StoragePool("destination_pool",
* name="destination-pool",
* location="us-west2",
* service_level="PREMIUM",
* capacity_gib="2048",
* network=default.id)
* source_volume = gcp.netapp.Volume("source_volume",
* location=source_pool.location,
* name="source-volume",
* capacity_gib="100",
* share_name="source-volume",
* storage_pool=source_pool.name,
* protocols=["NFSV3"],
* deletion_policy="FORCE")
* test_replication = gcp.netapp.VolumeReplication("test_replication",
* location=source_volume.location,
* volume_name=source_volume.name,
* name="test-replication",
* replication_schedule="EVERY_10_MINUTES",
* description="This is a replication resource",
* destination_volume_parameters={
* "storage_pool": destination_pool.id,
* "volume_id": "destination-volume",
* "share_name": "source-volume",
* "description": "This is a replicated volume",
* },
* delete_destination_volume=True,
* wait_for_mirror=True,
* opts = pulumi.ResourceOptions(depends_on=[source_volume]))
* ```
* ```csharp
* using System.Collections.Generic;
* using System.Linq;
* using Pulumi;
* using Gcp = Pulumi.Gcp;
* return await Deployment.RunAsync(() =>
* {
* var @default = Gcp.Compute.GetNetwork.Invoke(new()
* {
* Name = "test-network",
* });
* var sourcePool = new Gcp.Netapp.StoragePool("source_pool", new()
* {
* Name = "source-pool",
* Location = "us-central1",
* ServiceLevel = "PREMIUM",
* CapacityGib = "2048",
* Network = @default.Apply(@default => @default.Apply(getNetworkResult => getNetworkResult.Id)),
* });
* var destinationPool = new Gcp.Netapp.StoragePool("destination_pool", new()
* {
* Name = "destination-pool",
* Location = "us-west2",
* ServiceLevel = "PREMIUM",
* CapacityGib = "2048",
* Network = @default.Apply(@default => @default.Apply(getNetworkResult => getNetworkResult.Id)),
* });
* var sourceVolume = new Gcp.Netapp.Volume("source_volume", new()
* {
* Location = sourcePool.Location,
* Name = "source-volume",
* CapacityGib = "100",
* ShareName = "source-volume",
* StoragePool = sourcePool.Name,
* Protocols = new[]
* {
* "NFSV3",
* },
* DeletionPolicy = "FORCE",
* });
* var testReplication = new Gcp.Netapp.VolumeReplication("test_replication", new()
* {
* Location = sourceVolume.Location,
* VolumeName = sourceVolume.Name,
* Name = "test-replication",
* ReplicationSchedule = "EVERY_10_MINUTES",
* Description = "This is a replication resource",
* DestinationVolumeParameters = new Gcp.Netapp.Inputs.VolumeReplicationDestinationVolumeParametersArgs
* {
* StoragePool = destinationPool.Id,
* VolumeId = "destination-volume",
* ShareName = "source-volume",
* Description = "This is a replicated volume",
* },
* DeleteDestinationVolume = true,
* WaitForMirror = true,
* }, new CustomResourceOptions
* {
* DependsOn =
* {
* sourceVolume,
* },
* });
* });
* ```
* ```go
* package main
* import (
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/compute"
* "github.com/pulumi/pulumi-gcp/sdk/v7/go/gcp/netapp"
* "github.com/pulumi/pulumi/sdk/v3/go/pulumi"
* )
* func main() {
* pulumi.Run(func(ctx *pulumi.Context) error {
* _default, err := compute.LookupNetwork(ctx, &compute.LookupNetworkArgs{
* Name: "test-network",
* }, nil)
* if err != nil {
* return err
* }
* sourcePool, err := netapp.NewStoragePool(ctx, "source_pool", &netapp.StoragePoolArgs{
* Name: pulumi.String("source-pool"),
* Location: pulumi.String("us-central1"),
* ServiceLevel: pulumi.String("PREMIUM"),
* CapacityGib: pulumi.String("2048"),
* Network: pulumi.String(_default.Id),
* })
* if err != nil {
* return err
* }
* destinationPool, err := netapp.NewStoragePool(ctx, "destination_pool", &netapp.StoragePoolArgs{
* Name: pulumi.String("destination-pool"),
* Location: pulumi.String("us-west2"),
* ServiceLevel: pulumi.String("PREMIUM"),
* CapacityGib: pulumi.String("2048"),
* Network: pulumi.String(_default.Id),
* })
* if err != nil {
* return err
* }
* sourceVolume, err := netapp.NewVolume(ctx, "source_volume", &netapp.VolumeArgs{
* Location: sourcePool.Location,
* Name: pulumi.String("source-volume"),
* CapacityGib: pulumi.String("100"),
* ShareName: pulumi.String("source-volume"),
* StoragePool: sourcePool.Name,
* Protocols: pulumi.StringArray{
* pulumi.String("NFSV3"),
* },
* DeletionPolicy: pulumi.String("FORCE"),
* })
* if err != nil {
* return err
* }
* _, err = netapp.NewVolumeReplication(ctx, "test_replication", &netapp.VolumeReplicationArgs{
* Location: sourceVolume.Location,
* VolumeName: sourceVolume.Name,
* Name: pulumi.String("test-replication"),
* ReplicationSchedule: pulumi.String("EVERY_10_MINUTES"),
* Description: pulumi.String("This is a replication resource"),
* DestinationVolumeParameters: &netapp.VolumeReplicationDestinationVolumeParametersArgs{
* StoragePool: destinationPool.ID(),
* VolumeId: pulumi.String("destination-volume"),
* ShareName: pulumi.String("source-volume"),
* Description: pulumi.String("This is a replicated volume"),
* },
* DeleteDestinationVolume: pulumi.Bool(true),
* WaitForMirror: pulumi.Bool(true),
* }, pulumi.DependsOn([]pulumi.Resource{
* sourceVolume,
* }))
* if err != nil {
* return err
* }
* return nil
* })
* }
* ```
* ```java
* package generated_program;
* import com.pulumi.Context;
* import com.pulumi.Pulumi;
* import com.pulumi.core.Output;
* import com.pulumi.gcp.compute.ComputeFunctions;
* import com.pulumi.gcp.compute.inputs.GetNetworkArgs;
* import com.pulumi.gcp.netapp.StoragePool;
* import com.pulumi.gcp.netapp.StoragePoolArgs;
* import com.pulumi.gcp.netapp.Volume;
* import com.pulumi.gcp.netapp.VolumeArgs;
* import com.pulumi.gcp.netapp.VolumeReplication;
* import com.pulumi.gcp.netapp.VolumeReplicationArgs;
* import com.pulumi.gcp.netapp.inputs.VolumeReplicationDestinationVolumeParametersArgs;
* import com.pulumi.resources.CustomResourceOptions;
* import java.util.List;
* import java.util.ArrayList;
* import java.util.Map;
* import java.io.File;
* import java.nio.file.Files;
* import java.nio.file.Paths;
* public class App {
* public static void main(String[] args) {
* Pulumi.run(App::stack);
* }
* public static void stack(Context ctx) {
* final var default = ComputeFunctions.getNetwork(GetNetworkArgs.builder()
* .name("test-network")
* .build());
* var sourcePool = new StoragePool("sourcePool", StoragePoolArgs.builder()
* .name("source-pool")
* .location("us-central1")
* .serviceLevel("PREMIUM")
* .capacityGib(2048)
* .network(default_.id())
* .build());
* var destinationPool = new StoragePool("destinationPool", StoragePoolArgs.builder()
* .name("destination-pool")
* .location("us-west2")
* .serviceLevel("PREMIUM")
* .capacityGib(2048)
* .network(default_.id())
* .build());
* var sourceVolume = new Volume("sourceVolume", VolumeArgs.builder()
* .location(sourcePool.location())
* .name("source-volume")
* .capacityGib(100)
* .shareName("source-volume")
* .storagePool(sourcePool.name())
* .protocols("NFSV3")
* .deletionPolicy("FORCE")
* .build());
* var testReplication = new VolumeReplication("testReplication", VolumeReplicationArgs.builder()
* .location(sourceVolume.location())
* .volumeName(sourceVolume.name())
* .name("test-replication")
* .replicationSchedule("EVERY_10_MINUTES")
* .description("This is a replication resource")
* .destinationVolumeParameters(VolumeReplicationDestinationVolumeParametersArgs.builder()
* .storagePool(destinationPool.id())
* .volumeId("destination-volume")
* .shareName("source-volume")
* .description("This is a replicated volume")
* .build())
* .deleteDestinationVolume(true)
* .waitForMirror(true)
* .build(), CustomResourceOptions.builder()
* .dependsOn(sourceVolume)
* .build());
* }
* }
* ```
* ```yaml
* resources:
* sourcePool:
* type: gcp:netapp:StoragePool
* name: source_pool
* properties:
* name: source-pool
* location: us-central1
* serviceLevel: PREMIUM
* capacityGib: 2048
* network: ${default.id}
* destinationPool:
* type: gcp:netapp:StoragePool
* name: destination_pool
* properties:
* name: destination-pool
* location: us-west2
* serviceLevel: PREMIUM
* capacityGib: 2048
* network: ${default.id}
* sourceVolume:
* type: gcp:netapp:Volume
* name: source_volume
* properties:
* location: ${sourcePool.location}
* name: source-volume
* capacityGib: 100
* shareName: source-volume
* storagePool: ${sourcePool.name}
* protocols:
* - NFSV3
* deletionPolicy: FORCE
* testReplication:
* type: gcp:netapp:VolumeReplication
* name: test_replication
* properties:
* location: ${sourceVolume.location}
* volumeName: ${sourceVolume.name}
* name: test-replication
* replicationSchedule: EVERY_10_MINUTES
* description: This is a replication resource
* destinationVolumeParameters:
* storagePool: ${destinationPool.id}
* volumeId: destination-volume
* shareName: source-volume
* description: This is a replicated volume
* deleteDestinationVolume: true
* waitForMirror: true
* options:
* dependson:
* - ${sourceVolume}
* variables:
* default:
* fn::invoke:
* Function: gcp:compute:getNetwork
* Arguments:
* name: test-network
* ```
*
* ## Import
* VolumeReplication can be imported using any of these accepted formats:
* * `projects/{{project}}/locations/{{location}}/volumes/{{volume_name}}/replications/{{name}}`
* * `{{project}}/{{location}}/{{volume_name}}/{{name}}`
* * `{{location}}/{{volume_name}}/{{name}}`
* When using the `pulumi import` command, VolumeReplication can be imported using one of the formats above. For example:
* ```sh
* $ pulumi import gcp:netapp/volumeReplication:VolumeReplication default projects/{{project}}/locations/{{location}}/volumes/{{volume_name}}/replications/{{name}}
* ```
* ```sh
* $ pulumi import gcp:netapp/volumeReplication:VolumeReplication default {{project}}/{{location}}/{{volume_name}}/{{name}}
* ```
* ```sh
* $ pulumi import gcp:netapp/volumeReplication:VolumeReplication default {{location}}/{{volume_name}}/{{name}}
* ```
* @property deleteDestinationVolume
* @property description An description of this resource.
* @property destinationVolumeParameters Destination volume parameters.
* Structure is documented below.
* @property forceStopping Only replications with mirror_state=MIRRORED can be stopped. A replication in mirror_state=TRANSFERRING
* currently receives an update and stopping the update might be undesirable. Set this parameter to true
* to stop anyway. All data transferred to the destination will be discarded and content of destination
* volume will remain at the state of the last successful update. Default is false.
* @property labels Labels as key value pairs. Example: `{ "owner": "Bob", "department": "finance", "purpose": "testing" }`
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effective_labels` for all of the labels present on the resource.
* @property location Name of region for this resource. The resource needs to be created in the region of the destination volume.
* @property name The name of the replication. Needs to be unique per location.
* - - -
* @property project The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
* @property replicationEnabled Set to false to stop/break the mirror. Stopping the mirror makes the destination volume read-write
* and act independently from the source volume.
* Set to true to enable/resume the mirror. WARNING: Resuming a mirror overwrites any changes
* done to the destination volume with the content of the source volume.
* @property replicationSchedule Specifies the replication interval.
* Possible values are: `EVERY_10_MINUTES`, `HOURLY`, `DAILY`.
* @property volumeName The name of the existing source volume.
* @property waitForMirror
*/
public data class VolumeReplicationArgs(
public val deleteDestinationVolume: Output? = null,
public val description: Output? = null,
public val destinationVolumeParameters: Output? =
null,
public val forceStopping: Output? = null,
public val labels: Output>? = null,
public val location: Output? = null,
public val name: Output? = null,
public val project: Output? = null,
public val replicationEnabled: Output? = null,
public val replicationSchedule: Output? = null,
public val volumeName: Output? = null,
public val waitForMirror: Output? = null,
) : ConvertibleToJava {
override fun toJava(): com.pulumi.gcp.netapp.VolumeReplicationArgs =
com.pulumi.gcp.netapp.VolumeReplicationArgs.builder()
.deleteDestinationVolume(deleteDestinationVolume?.applyValue({ args0 -> args0 }))
.description(description?.applyValue({ args0 -> args0 }))
.destinationVolumeParameters(
destinationVolumeParameters?.applyValue({ args0 ->
args0.let({ args0 ->
args0.toJava()
})
}),
)
.forceStopping(forceStopping?.applyValue({ args0 -> args0 }))
.labels(labels?.applyValue({ args0 -> args0.map({ args0 -> args0.key.to(args0.value) }).toMap() }))
.location(location?.applyValue({ args0 -> args0 }))
.name(name?.applyValue({ args0 -> args0 }))
.project(project?.applyValue({ args0 -> args0 }))
.replicationEnabled(replicationEnabled?.applyValue({ args0 -> args0 }))
.replicationSchedule(replicationSchedule?.applyValue({ args0 -> args0 }))
.volumeName(volumeName?.applyValue({ args0 -> args0 }))
.waitForMirror(waitForMirror?.applyValue({ args0 -> args0 })).build()
}
/**
* Builder for [VolumeReplicationArgs].
*/
@PulumiTagMarker
public class VolumeReplicationArgsBuilder internal constructor() {
private var deleteDestinationVolume: Output? = null
private var description: Output? = null
private var destinationVolumeParameters: Output? =
null
private var forceStopping: Output? = null
private var labels: Output>? = null
private var location: Output? = null
private var name: Output? = null
private var project: Output? = null
private var replicationEnabled: Output? = null
private var replicationSchedule: Output? = null
private var volumeName: Output? = null
private var waitForMirror: Output? = null
/**
* @param value
*/
@JvmName("qnefebyosvauvcil")
public suspend fun deleteDestinationVolume(`value`: Output) {
this.deleteDestinationVolume = value
}
/**
* @param value An description of this resource.
*/
@JvmName("kinebipalyabjfyn")
public suspend fun description(`value`: Output) {
this.description = value
}
/**
* @param value Destination volume parameters.
* Structure is documented below.
*/
@JvmName("pyofxancsoqeiggw")
public suspend fun destinationVolumeParameters(`value`: Output) {
this.destinationVolumeParameters = value
}
/**
* @param value Only replications with mirror_state=MIRRORED can be stopped. A replication in mirror_state=TRANSFERRING
* currently receives an update and stopping the update might be undesirable. Set this parameter to true
* to stop anyway. All data transferred to the destination will be discarded and content of destination
* volume will remain at the state of the last successful update. Default is false.
*/
@JvmName("xrdfcqnogiqstfqj")
public suspend fun forceStopping(`value`: Output) {
this.forceStopping = value
}
/**
* @param value Labels as key value pairs. Example: `{ "owner": "Bob", "department": "finance", "purpose": "testing" }`
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effective_labels` for all of the labels present on the resource.
*/
@JvmName("mfeajlxsumncabky")
public suspend fun labels(`value`: Output>) {
this.labels = value
}
/**
* @param value Name of region for this resource. The resource needs to be created in the region of the destination volume.
*/
@JvmName("vfsppxqrvlnuhxre")
public suspend fun location(`value`: Output) {
this.location = value
}
/**
* @param value The name of the replication. Needs to be unique per location.
* - - -
*/
@JvmName("ujxbeybncqfrpiwx")
public suspend fun name(`value`: Output) {
this.name = value
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("aadpvalngbmqubxy")
public suspend fun project(`value`: Output) {
this.project = value
}
/**
* @param value Set to false to stop/break the mirror. Stopping the mirror makes the destination volume read-write
* and act independently from the source volume.
* Set to true to enable/resume the mirror. WARNING: Resuming a mirror overwrites any changes
* done to the destination volume with the content of the source volume.
*/
@JvmName("lpdkpshpfdswppax")
public suspend fun replicationEnabled(`value`: Output) {
this.replicationEnabled = value
}
/**
* @param value Specifies the replication interval.
* Possible values are: `EVERY_10_MINUTES`, `HOURLY`, `DAILY`.
*/
@JvmName("gnggcglwafrithou")
public suspend fun replicationSchedule(`value`: Output) {
this.replicationSchedule = value
}
/**
* @param value The name of the existing source volume.
*/
@JvmName("wmqoduufqwtvtnie")
public suspend fun volumeName(`value`: Output) {
this.volumeName = value
}
/**
* @param value
*/
@JvmName("kwswywcsegeiykym")
public suspend fun waitForMirror(`value`: Output) {
this.waitForMirror = value
}
/**
* @param value
*/
@JvmName("uixhshmdrggugoej")
public suspend fun deleteDestinationVolume(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.deleteDestinationVolume = mapped
}
/**
* @param value An description of this resource.
*/
@JvmName("hvanmhlsuyupjcvj")
public suspend fun description(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.description = mapped
}
/**
* @param value Destination volume parameters.
* Structure is documented below.
*/
@JvmName("ldfwbrjqcfglkcrr")
public suspend fun destinationVolumeParameters(`value`: VolumeReplicationDestinationVolumeParametersArgs?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.destinationVolumeParameters = mapped
}
/**
* @param argument Destination volume parameters.
* Structure is documented below.
*/
@JvmName("geltgehwvokhbcvn")
public suspend fun destinationVolumeParameters(argument: suspend VolumeReplicationDestinationVolumeParametersArgsBuilder.() -> Unit) {
val toBeMapped = VolumeReplicationDestinationVolumeParametersArgsBuilder().applySuspend {
argument()
}.build()
val mapped = of(toBeMapped)
this.destinationVolumeParameters = mapped
}
/**
* @param value Only replications with mirror_state=MIRRORED can be stopped. A replication in mirror_state=TRANSFERRING
* currently receives an update and stopping the update might be undesirable. Set this parameter to true
* to stop anyway. All data transferred to the destination will be discarded and content of destination
* volume will remain at the state of the last successful update. Default is false.
*/
@JvmName("oaoelfupbuiurgvn")
public suspend fun forceStopping(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.forceStopping = mapped
}
/**
* @param value Labels as key value pairs. Example: `{ "owner": "Bob", "department": "finance", "purpose": "testing" }`
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effective_labels` for all of the labels present on the resource.
*/
@JvmName("xyrfaaacosiwnmtg")
public suspend fun labels(`value`: Map?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.labels = mapped
}
/**
* @param values Labels as key value pairs. Example: `{ "owner": "Bob", "department": "finance", "purpose": "testing" }`
* **Note**: This field is non-authoritative, and will only manage the labels present in your configuration.
* Please refer to the field `effective_labels` for all of the labels present on the resource.
*/
@JvmName("ccbhdbndrbvetbru")
public fun labels(vararg values: Pair) {
val toBeMapped = values.toMap()
val mapped = toBeMapped.let({ args0 -> of(args0) })
this.labels = mapped
}
/**
* @param value Name of region for this resource. The resource needs to be created in the region of the destination volume.
*/
@JvmName("yiusnrcwuhydomla")
public suspend fun location(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.location = mapped
}
/**
* @param value The name of the replication. Needs to be unique per location.
* - - -
*/
@JvmName("aucobekpffiuggqr")
public suspend fun name(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.name = mapped
}
/**
* @param value The ID of the project in which the resource belongs.
* If it is not provided, the provider project is used.
*/
@JvmName("nnmskwowtyoudpnv")
public suspend fun project(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.project = mapped
}
/**
* @param value Set to false to stop/break the mirror. Stopping the mirror makes the destination volume read-write
* and act independently from the source volume.
* Set to true to enable/resume the mirror. WARNING: Resuming a mirror overwrites any changes
* done to the destination volume with the content of the source volume.
*/
@JvmName("fvgeddgynyqymyek")
public suspend fun replicationEnabled(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.replicationEnabled = mapped
}
/**
* @param value Specifies the replication interval.
* Possible values are: `EVERY_10_MINUTES`, `HOURLY`, `DAILY`.
*/
@JvmName("ciwniwbtryijvvgs")
public suspend fun replicationSchedule(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.replicationSchedule = mapped
}
/**
* @param value The name of the existing source volume.
*/
@JvmName("prrkiwumoxbvpofx")
public suspend fun volumeName(`value`: String?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.volumeName = mapped
}
/**
* @param value
*/
@JvmName("kxilynyuxkqyicvg")
public suspend fun waitForMirror(`value`: Boolean?) {
val toBeMapped = value
val mapped = toBeMapped?.let({ args0 -> of(args0) })
this.waitForMirror = mapped
}
internal fun build(): VolumeReplicationArgs = VolumeReplicationArgs(
deleteDestinationVolume = deleteDestinationVolume,
description = description,
destinationVolumeParameters = destinationVolumeParameters,
forceStopping = forceStopping,
labels = labels,
location = location,
name = name,
project = project,
replicationEnabled = replicationEnabled,
replicationSchedule = replicationSchedule,
volumeName = volumeName,
waitForMirror = waitForMirror,
)
}