Class ConsoleYAMLSampleSpec
- java.lang.Object
-
- io.fabric8.openshift.api.model.console.v1.ConsoleYAMLSampleSpec
-
- All Implemented Interfaces:
Editable<ConsoleYAMLSampleSpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ConsoleYAMLSampleSpec extends Object implements Editable<ConsoleYAMLSampleSpecBuilder>, KubernetesResource
ConsoleYAMLSampleSpec is the desired YAML sample configuration. Samples will appear with their descriptions in a samples sidebar when creating a resources in the web console.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ConsoleYAMLSampleSpec()No args constructor for use in serializationConsoleYAMLSampleSpec(String description, Boolean snippet, TypeMeta targetResource, String title, String yaml)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConsoleYAMLSampleSpecBuilderedit()Map<String,Object>getAdditionalProperties()StringgetDescription()description of the YAML sample.BooleangetSnippet()snippet indicates that the YAML sample is not the full YAML resource definition, but a fragment that can be inserted into the existing YAML document at the user's cursor.TypeMetagetTargetResource()ConsoleYAMLSampleSpec is the desired YAML sample configuration.StringgetTitle()title of the YAML sample.StringgetYaml()yaml is the YAML sample to display.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDescription(String description)description of the YAML sample.voidsetSnippet(Boolean snippet)snippet indicates that the YAML sample is not the full YAML resource definition, but a fragment that can be inserted into the existing YAML document at the user's cursor.voidsetTargetResource(TypeMeta targetResource)ConsoleYAMLSampleSpec is the desired YAML sample configuration.voidsetTitle(String title)title of the YAML sample.voidsetYaml(String yaml)yaml is the YAML sample to display.ConsoleYAMLSampleSpecBuildertoBuilder()
-
-
-
Method Detail
-
getDescription
public String getDescription()
description of the YAML sample.
-
setDescription
public void setDescription(String description)
description of the YAML sample.
-
getSnippet
public Boolean getSnippet()
snippet indicates that the YAML sample is not the full YAML resource definition, but a fragment that can be inserted into the existing YAML document at the user's cursor.
-
setSnippet
public void setSnippet(Boolean snippet)
snippet indicates that the YAML sample is not the full YAML resource definition, but a fragment that can be inserted into the existing YAML document at the user's cursor.
-
getTargetResource
public TypeMeta getTargetResource()
ConsoleYAMLSampleSpec is the desired YAML sample configuration. Samples will appear with their descriptions in a samples sidebar when creating a resources in the web console.
-
setTargetResource
public void setTargetResource(TypeMeta targetResource)
ConsoleYAMLSampleSpec is the desired YAML sample configuration. Samples will appear with their descriptions in a samples sidebar when creating a resources in the web console.
-
getTitle
public String getTitle()
title of the YAML sample.
-
setTitle
public void setTitle(String title)
title of the YAML sample.
-
getYaml
public String getYaml()
yaml is the YAML sample to display.
-
setYaml
public void setYaml(String yaml)
yaml is the YAML sample to display.
-
edit
public ConsoleYAMLSampleSpecBuilder edit()
- Specified by:
editin interfaceEditable<ConsoleYAMLSampleSpecBuilder>
-
toBuilder
public ConsoleYAMLSampleSpecBuilder toBuilder()
-
-