Class ControlPlaneMachineSetTemplateObjectMeta
- java.lang.Object
-
- io.fabric8.openshift.api.model.machine.v1.ControlPlaneMachineSetTemplateObjectMeta
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<ControlPlaneMachineSetTemplateObjectMetaBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class ControlPlaneMachineSetTemplateObjectMeta extends Object implements io.fabric8.kubernetes.api.builder.Editable<ControlPlaneMachineSetTemplateObjectMetaBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
ControlPlaneMachineSetTemplateObjectMeta is a subset of the metav1.ObjectMeta struct. It allows users to specify labels and annotations that will be copied onto Machines created from this template.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ControlPlaneMachineSetTemplateObjectMeta()No args constructor for use in serializationControlPlaneMachineSetTemplateObjectMeta(Map<String,String> annotations, Map<String,String> labels)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ControlPlaneMachineSetTemplateObjectMetaBuilderedit()Map<String,Object>getAdditionalProperties()Map<String,String>getAnnotations()annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.Map<String,String>getLabels()Map of string keys and values that can be used to organize and categorize (scope and select) objects.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAnnotations(Map<String,String> annotations)annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata.voidsetLabels(Map<String,String> labels)Map of string keys and values that can be used to organize and categorize (scope and select) objects.ControlPlaneMachineSetTemplateObjectMetaBuildertoBuilder()
-
-
-
Method Detail
-
getAnnotations
public Map<String,String> getAnnotations()
annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations
-
setAnnotations
public void setAnnotations(Map<String,String> annotations)
annotations is an unstructured key value map stored with a resource that may be set by external tools to store and retrieve arbitrary metadata. They are not queryable and should be preserved when modifying objects. More info: http://kubernetes.io/docs/user-guide/annotations
-
getLabels
public Map<String,String> getLabels()
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels. This field must contain both the 'machine.openshift.io/cluster-api-machine-role' and 'machine.openshift.io/cluster-api-machine-type' labels, both with a value of 'master'. It must also contain a label with the key 'machine.openshift.io/cluster-api-cluster'.
-
setLabels
public void setLabels(Map<String,String> labels)
Map of string keys and values that can be used to organize and categorize (scope and select) objects. May match selectors of replication controllers and services. More info: http://kubernetes.io/docs/user-guide/labels. This field must contain both the 'machine.openshift.io/cluster-api-machine-role' and 'machine.openshift.io/cluster-api-machine-type' labels, both with a value of 'master'. It must also contain a label with the key 'machine.openshift.io/cluster-api-cluster'.
-
edit
public ControlPlaneMachineSetTemplateObjectMetaBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<ControlPlaneMachineSetTemplateObjectMetaBuilder>
-
toBuilder
public ControlPlaneMachineSetTemplateObjectMetaBuilder toBuilder()
-
-