// *** 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.gcp.clouddeploy.outputs;

import com.pulumi.core.annotations.CustomType;
import java.lang.String;
import java.util.Objects;
import java.util.Optional;
import javax.annotation.Nullable;

@CustomType
public final class TargetAnthosCluster {
    /**
     * @return Membership of the GKE Hub-registered cluster to which to apply the Skaffold configuration. Format is `projects/{project}/locations/{location}/memberships/{membership_name}`.
     * 
     */
    private @Nullable String membership;

    private TargetAnthosCluster() {}
    /**
     * @return Membership of the GKE Hub-registered cluster to which to apply the Skaffold configuration. Format is `projects/{project}/locations/{location}/memberships/{membership_name}`.
     * 
     */
    public Optional<String> membership() {
        return Optional.ofNullable(this.membership);
    }

    public static Builder builder() {
        return new Builder();
    }

    public static Builder builder(TargetAnthosCluster defaults) {
        return new Builder(defaults);
    }
    @CustomType.Builder
    public static final class Builder {
        private @Nullable String membership;
        public Builder() {}
        public Builder(TargetAnthosCluster defaults) {
    	      Objects.requireNonNull(defaults);
    	      this.membership = defaults.membership;
        }

        @CustomType.Setter
        public Builder membership(@Nullable String membership) {
            this.membership = membership;
            return this;
        }
        public TargetAnthosCluster build() {
            final var o = new TargetAnthosCluster();
            o.membership = membership;
            return o;
        }
    }
}
