Class AWSMachineProviderConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.machine.v1beta1.AWSMachineProviderConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<AWSMachineProviderConfigBuilder>,io.fabric8.kubernetes.api.model.HasMetadata,io.fabric8.kubernetes.api.model.KubernetesResource,io.fabric8.kubernetes.api.model.Namespaced,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class AWSMachineProviderConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<AWSMachineProviderConfigBuilder>, io.fabric8.kubernetes.api.model.HasMetadata, io.fabric8.kubernetes.api.model.Namespaced
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AWSMachineProviderConfig()No args constructor for use in serializationAWSMachineProviderConfig(AWSResourceReference ami, String apiVersion, List<BlockDeviceMappingSpec> blockDevices, String capacityReservationId, io.fabric8.kubernetes.api.model.LocalObjectReference credentialsSecret, Long deviceIndex, AWSResourceReference iamInstanceProfile, String instanceType, String keyName, String kind, List<LoadBalancerReference> loadBalancers, String marketType, io.fabric8.kubernetes.api.model.ObjectMeta metadata, MetadataServiceOptions metadataServiceOptions, String networkInterfaceType, Placement placement, String placementGroupName, Integer placementGroupPartition, Boolean publicIp, List<AWSResourceReference> securityGroups, SpotMarketOptions spotMarketOptions, AWSResourceReference subnet, List<TagSpecification> tags, io.fabric8.kubernetes.api.model.LocalObjectReference userDataSecret)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AWSMachineProviderConfigBuilderedit()Map<String,Object>getAdditionalProperties()AWSResourceReferencegetAmi()AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).StringgetApiVersion()APIVersion defines the versioned schema of this representation of an object.List<BlockDeviceMappingSpec>getBlockDevices()blockDevices is the set of block device mapping associated to this instance, block device without a name will be used as a root device and only one device without a name is allowed https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.htmlStringgetCapacityReservationId()capacityReservationId specifies the target Capacity Reservation into which the instance should be launched.io.fabric8.kubernetes.api.model.LocalObjectReferencegetCredentialsSecret()AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).LonggetDeviceIndex()deviceIndex is the index of the device on the instance for the network interface attachment.AWSResourceReferencegetIamInstanceProfile()AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).StringgetInstanceType()instanceType is the type of instance to create.StringgetKeyName()keyName is the name of the KeyPair to use for SSHStringgetKind()Kind is a string value representing the REST resource this object represents.List<LoadBalancerReference>getLoadBalancers()loadBalancers is the set of load balancers to which the new instance should be added once it is created.StringgetMarketType()marketType specifies the type of market for the EC2 instance.io.fabric8.kubernetes.api.model.ObjectMetagetMetadata()AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).MetadataServiceOptionsgetMetadataServiceOptions()AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).StringgetNetworkInterfaceType()networkInterfaceType specifies the type of network interface to be used for the primary network interface.PlacementgetPlacement()AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).StringgetPlacementGroupName()placementGroupName specifies the name of the placement group in which to launch the instance.IntegergetPlacementGroupPartition()placementGroupPartition is the partition number within the placement group in which to launch the instance.BooleangetPublicIp()publicIp specifies whether the instance should get a public IP.List<AWSResourceReference>getSecurityGroups()securityGroups is an array of references to security groups that should be applied to the instance.SpotMarketOptionsgetSpotMarketOptions()AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).AWSResourceReferencegetSubnet()AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).List<TagSpecification>getTags()tags is the set of tags to add to apply to an instance, in addition to the ones added by default by the actuator.io.fabric8.kubernetes.api.model.LocalObjectReferencegetUserDataSecret()AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAmi(AWSResourceReference ami)AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).voidsetApiVersion(String apiVersion)APIVersion defines the versioned schema of this representation of an object.voidsetBlockDevices(List<BlockDeviceMappingSpec> blockDevices)blockDevices is the set of block device mapping associated to this instance, block device without a name will be used as a root device and only one device without a name is allowed https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.htmlvoidsetCapacityReservationId(String capacityReservationId)capacityReservationId specifies the target Capacity Reservation into which the instance should be launched.voidsetCredentialsSecret(io.fabric8.kubernetes.api.model.LocalObjectReference credentialsSecret)AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).voidsetDeviceIndex(Long deviceIndex)deviceIndex is the index of the device on the instance for the network interface attachment.voidsetIamInstanceProfile(AWSResourceReference iamInstanceProfile)AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).voidsetInstanceType(String instanceType)instanceType is the type of instance to create.voidsetKeyName(String keyName)keyName is the name of the KeyPair to use for SSHvoidsetKind(String kind)Kind is a string value representing the REST resource this object represents.voidsetLoadBalancers(List<LoadBalancerReference> loadBalancers)loadBalancers is the set of load balancers to which the new instance should be added once it is created.voidsetMarketType(String marketType)marketType specifies the type of market for the EC2 instance.voidsetMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).voidsetMetadataServiceOptions(MetadataServiceOptions metadataServiceOptions)AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).voidsetNetworkInterfaceType(String networkInterfaceType)networkInterfaceType specifies the type of network interface to be used for the primary network interface.voidsetPlacement(Placement placement)AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).voidsetPlacementGroupName(String placementGroupName)placementGroupName specifies the name of the placement group in which to launch the instance.voidsetPlacementGroupPartition(Integer placementGroupPartition)placementGroupPartition is the partition number within the placement group in which to launch the instance.voidsetPublicIp(Boolean publicIp)publicIp specifies whether the instance should get a public IP.voidsetSecurityGroups(List<AWSResourceReference> securityGroups)securityGroups is an array of references to security groups that should be applied to the instance.voidsetSpotMarketOptions(SpotMarketOptions spotMarketOptions)AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).voidsetSubnet(AWSResourceReference subnet)AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).voidsetTags(List<TagSpecification> tags)tags is the set of tags to add to apply to an instance, in addition to the ones added by default by the actuator.voidsetUserDataSecret(io.fabric8.kubernetes.api.model.LocalObjectReference userDataSecret)AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).AWSMachineProviderConfigBuildertoBuilder()-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.fabric8.kubernetes.api.model.HasMetadata
addFinalizer, addOwnerReference, addOwnerReference, getFinalizers, getFullResourceName, getOwnerReferenceFor, getOwnerReferenceFor, getPlural, getSingular, hasFinalizer, hasOwnerReferenceFor, hasOwnerReferenceFor, initNameAndNamespaceFrom, isFinalizerValid, isMarkedForDeletion, optionalMetadata, removeFinalizer, removeOwnerReference, removeOwnerReference
-
-
-
-
Constructor Detail
-
AWSMachineProviderConfig
public AWSMachineProviderConfig()
No args constructor for use in serialization
-
AWSMachineProviderConfig
public AWSMachineProviderConfig(AWSResourceReference ami, String apiVersion, List<BlockDeviceMappingSpec> blockDevices, String capacityReservationId, io.fabric8.kubernetes.api.model.LocalObjectReference credentialsSecret, Long deviceIndex, AWSResourceReference iamInstanceProfile, String instanceType, String keyName, String kind, List<LoadBalancerReference> loadBalancers, String marketType, io.fabric8.kubernetes.api.model.ObjectMeta metadata, MetadataServiceOptions metadataServiceOptions, String networkInterfaceType, Placement placement, String placementGroupName, Integer placementGroupPartition, Boolean publicIp, List<AWSResourceReference> securityGroups, SpotMarketOptions spotMarketOptions, AWSResourceReference subnet, List<TagSpecification> tags, io.fabric8.kubernetes.api.model.LocalObjectReference userDataSecret)
-
-
Method Detail
-
getAmi
public AWSResourceReference getAmi()
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
setAmi
public void setAmi(AWSResourceReference ami)
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
getApiVersion
public String getApiVersion()
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Specified by:
getApiVersionin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setApiVersion
public void setApiVersion(String apiVersion)
APIVersion defines the versioned schema of this representation of an object. Servers should convert recognized schemas to the latest internal value, and may reject unrecognized values. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#resources- Specified by:
setApiVersionin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
getBlockDevices
public List<BlockDeviceMappingSpec> getBlockDevices()
blockDevices is the set of block device mapping associated to this instance, block device without a name will be used as a root device and only one device without a name is allowed https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html
-
setBlockDevices
public void setBlockDevices(List<BlockDeviceMappingSpec> blockDevices)
blockDevices is the set of block device mapping associated to this instance, block device without a name will be used as a root device and only one device without a name is allowed https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/block-device-mapping-concepts.html
-
getCapacityReservationId
public String getCapacityReservationId()
capacityReservationId specifies the target Capacity Reservation into which the instance should be launched. The field size should be greater than 0 and the field input must start with cr-***
-
setCapacityReservationId
public void setCapacityReservationId(String capacityReservationId)
capacityReservationId specifies the target Capacity Reservation into which the instance should be launched. The field size should be greater than 0 and the field input must start with cr-***
-
getCredentialsSecret
public io.fabric8.kubernetes.api.model.LocalObjectReference getCredentialsSecret()
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
setCredentialsSecret
public void setCredentialsSecret(io.fabric8.kubernetes.api.model.LocalObjectReference credentialsSecret)
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
getDeviceIndex
public Long getDeviceIndex()
deviceIndex is the index of the device on the instance for the network interface attachment. Defaults to 0.
-
setDeviceIndex
public void setDeviceIndex(Long deviceIndex)
deviceIndex is the index of the device on the instance for the network interface attachment. Defaults to 0.
-
getIamInstanceProfile
public AWSResourceReference getIamInstanceProfile()
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
setIamInstanceProfile
public void setIamInstanceProfile(AWSResourceReference iamInstanceProfile)
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
getInstanceType
public String getInstanceType()
instanceType is the type of instance to create. Example: m4.xlarge
-
setInstanceType
public void setInstanceType(String instanceType)
instanceType is the type of instance to create. Example: m4.xlarge
-
getKeyName
public String getKeyName()
keyName is the name of the KeyPair to use for SSH
-
setKeyName
public void setKeyName(String keyName)
keyName is the name of the KeyPair to use for SSH
-
getKind
public String getKind()
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds- Specified by:
getKindin interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setKind
public void setKind(String kind)
Kind is a string value representing the REST resource this object represents. Servers may infer this from the endpoint the client submits requests to. Cannot be updated. In CamelCase. More info: https://git.k8s.io/community/contributors/devel/sig-architecture/api-conventions.md#types-kinds
-
getLoadBalancers
public List<LoadBalancerReference> getLoadBalancers()
loadBalancers is the set of load balancers to which the new instance should be added once it is created.
-
setLoadBalancers
public void setLoadBalancers(List<LoadBalancerReference> loadBalancers)
loadBalancers is the set of load balancers to which the new instance should be added once it is created.
-
getMarketType
public String getMarketType()
marketType specifies the type of market for the EC2 instance. Valid values are OnDemand, Spot, CapacityBlock and omitted.Defaults to OnDemand. When SpotMarketOptions is provided, the marketType defaults to "Spot".
When set to OnDemand the instance runs as a standard OnDemand instance. When set to Spot the instance runs as a Spot instance. When set to CapacityBlock the instance utilizes pre-purchased compute capacity (capacity blocks) with AWS Capacity Reservations. If this value is selected, capacityReservationID must be specified to identify the target reservation.
-
setMarketType
public void setMarketType(String marketType)
marketType specifies the type of market for the EC2 instance. Valid values are OnDemand, Spot, CapacityBlock and omitted.Defaults to OnDemand. When SpotMarketOptions is provided, the marketType defaults to "Spot".
When set to OnDemand the instance runs as a standard OnDemand instance. When set to Spot the instance runs as a Spot instance. When set to CapacityBlock the instance utilizes pre-purchased compute capacity (capacity blocks) with AWS Capacity Reservations. If this value is selected, capacityReservationID must be specified to identify the target reservation.
-
getMetadata
public io.fabric8.kubernetes.api.model.ObjectMeta getMetadata()
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).- Specified by:
getMetadatain interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
setMetadata
public void setMetadata(io.fabric8.kubernetes.api.model.ObjectMeta metadata)
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).- Specified by:
setMetadatain interfaceio.fabric8.kubernetes.api.model.HasMetadata
-
getMetadataServiceOptions
public MetadataServiceOptions getMetadataServiceOptions()
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
setMetadataServiceOptions
public void setMetadataServiceOptions(MetadataServiceOptions metadataServiceOptions)
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
getNetworkInterfaceType
public String getNetworkInterfaceType()
networkInterfaceType specifies the type of network interface to be used for the primary network interface. Valid values are "ENA", "EFA", and omitted, which means no opinion and the platform chooses a good default which may change over time. The current default value is "ENA". Please visit https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html to learn more about the AWS Elastic Fabric Adapter interface option.
-
setNetworkInterfaceType
public void setNetworkInterfaceType(String networkInterfaceType)
networkInterfaceType specifies the type of network interface to be used for the primary network interface. Valid values are "ENA", "EFA", and omitted, which means no opinion and the platform chooses a good default which may change over time. The current default value is "ENA". Please visit https://docs.aws.amazon.com/AWSEC2/latest/UserGuide/efa.html to learn more about the AWS Elastic Fabric Adapter interface option.
-
getPlacement
public Placement getPlacement()
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
setPlacement
public void setPlacement(Placement placement)
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
getPlacementGroupName
public String getPlacementGroupName()
placementGroupName specifies the name of the placement group in which to launch the instance. The placement group must already be created and may use any placement strategy. When omitted, no placement group is used when creating the EC2 instance.
-
setPlacementGroupName
public void setPlacementGroupName(String placementGroupName)
placementGroupName specifies the name of the placement group in which to launch the instance. The placement group must already be created and may use any placement strategy. When omitted, no placement group is used when creating the EC2 instance.
-
getPlacementGroupPartition
public Integer getPlacementGroupPartition()
placementGroupPartition is the partition number within the placement group in which to launch the instance. This must be an integer value between 1 and 7. It is only valid if the placement group, referred in `PlacementGroupName` was created with strategy set to partition.
-
setPlacementGroupPartition
public void setPlacementGroupPartition(Integer placementGroupPartition)
placementGroupPartition is the partition number within the placement group in which to launch the instance. This must be an integer value between 1 and 7. It is only valid if the placement group, referred in `PlacementGroupName` was created with strategy set to partition.
-
getPublicIp
public Boolean getPublicIp()
publicIp specifies whether the instance should get a public IP. If not present, it should use the default of its subnet.
-
setPublicIp
public void setPublicIp(Boolean publicIp)
publicIp specifies whether the instance should get a public IP. If not present, it should use the default of its subnet.
-
getSecurityGroups
public List<AWSResourceReference> getSecurityGroups()
securityGroups is an array of references to security groups that should be applied to the instance.
-
setSecurityGroups
public void setSecurityGroups(List<AWSResourceReference> securityGroups)
securityGroups is an array of references to security groups that should be applied to the instance.
-
getSpotMarketOptions
public SpotMarketOptions getSpotMarketOptions()
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
setSpotMarketOptions
public void setSpotMarketOptions(SpotMarketOptions spotMarketOptions)
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
getSubnet
public AWSResourceReference getSubnet()
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
setSubnet
public void setSubnet(AWSResourceReference subnet)
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
getTags
public List<TagSpecification> getTags()
tags is the set of tags to add to apply to an instance, in addition to the ones added by default by the actuator. These tags are additive. The actuator will ensure these tags are present, but will not remove any other tags that may exist on the instance.
-
setTags
public void setTags(List<TagSpecification> tags)
tags is the set of tags to add to apply to an instance, in addition to the ones added by default by the actuator. These tags are additive. The actuator will ensure these tags are present, but will not remove any other tags that may exist on the instance.
-
getUserDataSecret
public io.fabric8.kubernetes.api.model.LocalObjectReference getUserDataSecret()
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
setUserDataSecret
public void setUserDataSecret(io.fabric8.kubernetes.api.model.LocalObjectReference userDataSecret)
AWSMachineProviderConfig is the Schema for the awsmachineproviderconfigs API Compatibility level 2: Stable within a major release for a minimum of 9 months or 3 minor releases (whichever is longer).
-
edit
public AWSMachineProviderConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<AWSMachineProviderConfigBuilder>
-
toBuilder
public AWSMachineProviderConfigBuilder toBuilder()
-
-