Compartir a través de


PostBuildPatchDefinition Class

  • java.lang.Object
    • com.azure.resourcemanager.kubernetesconfiguration.fluxconfigurations.models.PostBuildPatchDefinition

Implements

public final class PostBuildPatchDefinition
implements JsonSerializable<PostBuildPatchDefinition>

The postBuild definitions defining variable substitutions for this Kustomization after kustomize build.

Constructor Summary

Constructor Description
PostBuildPatchDefinition()

Creates an instance of PostBuildPatchDefinition class.

Method Summary

Modifier and Type Method and Description
static PostBuildPatchDefinition fromJson(JsonReader jsonReader)

Reads an instance of PostBuildPatchDefinition from the JsonReader.

Map<String,String> substitute()

Get the substitute property: Key/value pairs holding the variables to be substituted in this Kustomization.

List<SubstituteFromPatchDefinition> substituteFrom()

Get the substituteFrom property: Array of ConfigMaps/Secrets from which the variables are substituted for this Kustomization.

JsonWriter toJson(JsonWriter jsonWriter)
void validate()

Validates the instance.

PostBuildPatchDefinition withSubstitute(Map<String,String> substitute)

Set the substitute property: Key/value pairs holding the variables to be substituted in this Kustomization.

PostBuildPatchDefinition withSubstituteFrom(List<SubstituteFromPatchDefinition> substituteFrom)

Set the substituteFrom property: Array of ConfigMaps/Secrets from which the variables are substituted for this Kustomization.

Methods inherited from java.lang.Object

Constructor Details

PostBuildPatchDefinition

public PostBuildPatchDefinition()

Creates an instance of PostBuildPatchDefinition class.

Method Details

fromJson

public static PostBuildPatchDefinition fromJson(JsonReader jsonReader)

Reads an instance of PostBuildPatchDefinition from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of PostBuildPatchDefinition if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If an error occurs while reading the PostBuildPatchDefinition.

substitute

public Map<String,String> substitute()

Get the substitute property: Key/value pairs holding the variables to be substituted in this Kustomization.

Returns:

the substitute value.

substituteFrom

public List<SubstituteFromPatchDefinition> substituteFrom()

Get the substituteFrom property: Array of ConfigMaps/Secrets from which the variables are substituted for this Kustomization.

Returns:

the substituteFrom value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

validate

public void validate()

Validates the instance.

withSubstitute

public PostBuildPatchDefinition withSubstitute(Map<String,String> substitute)

Set the substitute property: Key/value pairs holding the variables to be substituted in this Kustomization.

Parameters:

substitute - the substitute value to set.

Returns:

the PostBuildPatchDefinition object itself.

withSubstituteFrom

public PostBuildPatchDefinition withSubstituteFrom(List<SubstituteFromPatchDefinition> substituteFrom)

Set the substituteFrom property: Array of ConfigMaps/Secrets from which the variables are substituted for this Kustomization.

Parameters:

substituteFrom - the substituteFrom value to set.

Returns:

the PostBuildPatchDefinition object itself.

Applies to