# CreateImageRequest

## Properties

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Architecture** | Pointer to **string** | **(when registering from a snapshot)** The architecture of the OMI (&#x60;i386&#x60; or &#x60;x86_64&#x60;). By default, set to &#x60;x86_64&#x60;. | [optional] 
**BlockDeviceMappings** | Pointer to [**[]BlockDeviceMappingImage**](BlockDeviceMappingImage.md) | **(required when registering from a snapshot)** One or more block device mappings. | [optional] 
**BootModes** | Pointer to [**[]BootMode**](BootMode.md) | The boot modes compatible with the OMI. | [optional] 
**Description** | Pointer to **string** | A description for the new OMI. | [optional] 
**DryRun** | Pointer to **bool** | If true, checks whether you have the required permissions to perform the action. | [optional] 
**FileLocation** | Pointer to **string** | **(required when registering from a bucket by using a manifest file)** The pre-signed URL of the manifest file for the OMI you want to register. For more information, see [Creating a Pre-signed URL](https://docs.outscale.com/en/userguide/Creating-a-Pre-Signed-URL.html). | [optional] 
**ImageName** | Pointer to **string** | A unique name for the new OMI.&lt;br /&gt; Constraints: 3-128 alphanumeric characters, underscores (&#x60;_&#x60;), spaces (&#x60; &#x60;), parentheses (&#x60;()&#x60;), slashes (&#x60;/&#x60;), periods (&#x60;.&#x60;), or dashes (&#x60;-&#x60;). | [optional] 
**NoReboot** | Pointer to **bool** | **(when creating from a VM)** If false, the VM shuts down before creating the OMI and then reboots. If true, the VM does not. | [optional] 
**ProductCodes** | Pointer to **[]string** | The product codes associated with the OMI. | [optional] 
**RootDeviceName** | Pointer to **string** | **(required when registering from a snapshot)** The name of the root device for the new OMI. | [optional] 
**SourceImageId** | Pointer to **string** | **(required when copying an OMI)** The ID of the OMI you want to copy. | [optional] 
**SourceRegionName** | Pointer to **string** | **(required when copying an OMI)** The name of the source Region (always the same as the Region of your account). | [optional] 
**TpmMandatory** | Pointer to **bool** | By default or if set to false, a virtual Trusted Platform Module (vTPM) is not mandatory on VMs created from this OMI. If true, VMs created from this OMI must have a vTPM enabled. | [optional] 
**VmId** | Pointer to **string** | **(required when creating from a VM)** The ID of the VM from which you want to create the OMI. | [optional] 

## Methods

### NewCreateImageRequest

`func NewCreateImageRequest() *CreateImageRequest`

NewCreateImageRequest instantiates a new CreateImageRequest object
This constructor will assign default values to properties that have it defined,
and makes sure properties required by API are set, but the set of arguments
will change when the set of required properties is changed

### NewCreateImageRequestWithDefaults

`func NewCreateImageRequestWithDefaults() *CreateImageRequest`

NewCreateImageRequestWithDefaults instantiates a new CreateImageRequest object
This constructor will only assign default values to properties that have it defined,
but it doesn't guarantee that properties required by API are set

### GetArchitecture

`func (o *CreateImageRequest) GetArchitecture() string`

GetArchitecture returns the Architecture field if non-nil, zero value otherwise.

### GetArchitectureOk

`func (o *CreateImageRequest) GetArchitectureOk() (*string, bool)`

GetArchitectureOk returns a tuple with the Architecture field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetArchitecture

`func (o *CreateImageRequest) SetArchitecture(v string)`

SetArchitecture sets Architecture field to given value.

### HasArchitecture

`func (o *CreateImageRequest) HasArchitecture() bool`

HasArchitecture returns a boolean if a field has been set.

### GetBlockDeviceMappings

`func (o *CreateImageRequest) GetBlockDeviceMappings() []BlockDeviceMappingImage`

GetBlockDeviceMappings returns the BlockDeviceMappings field if non-nil, zero value otherwise.

### GetBlockDeviceMappingsOk

`func (o *CreateImageRequest) GetBlockDeviceMappingsOk() (*[]BlockDeviceMappingImage, bool)`

GetBlockDeviceMappingsOk returns a tuple with the BlockDeviceMappings field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetBlockDeviceMappings

`func (o *CreateImageRequest) SetBlockDeviceMappings(v []BlockDeviceMappingImage)`

SetBlockDeviceMappings sets BlockDeviceMappings field to given value.

### HasBlockDeviceMappings

`func (o *CreateImageRequest) HasBlockDeviceMappings() bool`

HasBlockDeviceMappings returns a boolean if a field has been set.

### GetBootModes

`func (o *CreateImageRequest) GetBootModes() []BootMode`

GetBootModes returns the BootModes field if non-nil, zero value otherwise.

### GetBootModesOk

`func (o *CreateImageRequest) GetBootModesOk() (*[]BootMode, bool)`

GetBootModesOk returns a tuple with the BootModes field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetBootModes

`func (o *CreateImageRequest) SetBootModes(v []BootMode)`

SetBootModes sets BootModes field to given value.

### HasBootModes

`func (o *CreateImageRequest) HasBootModes() bool`

HasBootModes returns a boolean if a field has been set.

### GetDescription

`func (o *CreateImageRequest) GetDescription() string`

GetDescription returns the Description field if non-nil, zero value otherwise.

### GetDescriptionOk

`func (o *CreateImageRequest) GetDescriptionOk() (*string, bool)`

GetDescriptionOk returns a tuple with the Description field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetDescription

`func (o *CreateImageRequest) SetDescription(v string)`

SetDescription sets Description field to given value.

### HasDescription

`func (o *CreateImageRequest) HasDescription() bool`

HasDescription returns a boolean if a field has been set.

### GetDryRun

`func (o *CreateImageRequest) GetDryRun() bool`

GetDryRun returns the DryRun field if non-nil, zero value otherwise.

### GetDryRunOk

`func (o *CreateImageRequest) GetDryRunOk() (*bool, bool)`

GetDryRunOk returns a tuple with the DryRun field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetDryRun

`func (o *CreateImageRequest) SetDryRun(v bool)`

SetDryRun sets DryRun field to given value.

### HasDryRun

`func (o *CreateImageRequest) HasDryRun() bool`

HasDryRun returns a boolean if a field has been set.

### GetFileLocation

`func (o *CreateImageRequest) GetFileLocation() string`

GetFileLocation returns the FileLocation field if non-nil, zero value otherwise.

### GetFileLocationOk

`func (o *CreateImageRequest) GetFileLocationOk() (*string, bool)`

GetFileLocationOk returns a tuple with the FileLocation field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetFileLocation

`func (o *CreateImageRequest) SetFileLocation(v string)`

SetFileLocation sets FileLocation field to given value.

### HasFileLocation

`func (o *CreateImageRequest) HasFileLocation() bool`

HasFileLocation returns a boolean if a field has been set.

### GetImageName

`func (o *CreateImageRequest) GetImageName() string`

GetImageName returns the ImageName field if non-nil, zero value otherwise.

### GetImageNameOk

`func (o *CreateImageRequest) GetImageNameOk() (*string, bool)`

GetImageNameOk returns a tuple with the ImageName field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetImageName

`func (o *CreateImageRequest) SetImageName(v string)`

SetImageName sets ImageName field to given value.

### HasImageName

`func (o *CreateImageRequest) HasImageName() bool`

HasImageName returns a boolean if a field has been set.

### GetNoReboot

`func (o *CreateImageRequest) GetNoReboot() bool`

GetNoReboot returns the NoReboot field if non-nil, zero value otherwise.

### GetNoRebootOk

`func (o *CreateImageRequest) GetNoRebootOk() (*bool, bool)`

GetNoRebootOk returns a tuple with the NoReboot field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetNoReboot

`func (o *CreateImageRequest) SetNoReboot(v bool)`

SetNoReboot sets NoReboot field to given value.

### HasNoReboot

`func (o *CreateImageRequest) HasNoReboot() bool`

HasNoReboot returns a boolean if a field has been set.

### GetProductCodes

`func (o *CreateImageRequest) GetProductCodes() []string`

GetProductCodes returns the ProductCodes field if non-nil, zero value otherwise.

### GetProductCodesOk

`func (o *CreateImageRequest) GetProductCodesOk() (*[]string, bool)`

GetProductCodesOk returns a tuple with the ProductCodes field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetProductCodes

`func (o *CreateImageRequest) SetProductCodes(v []string)`

SetProductCodes sets ProductCodes field to given value.

### HasProductCodes

`func (o *CreateImageRequest) HasProductCodes() bool`

HasProductCodes returns a boolean if a field has been set.

### GetRootDeviceName

`func (o *CreateImageRequest) GetRootDeviceName() string`

GetRootDeviceName returns the RootDeviceName field if non-nil, zero value otherwise.

### GetRootDeviceNameOk

`func (o *CreateImageRequest) GetRootDeviceNameOk() (*string, bool)`

GetRootDeviceNameOk returns a tuple with the RootDeviceName field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetRootDeviceName

`func (o *CreateImageRequest) SetRootDeviceName(v string)`

SetRootDeviceName sets RootDeviceName field to given value.

### HasRootDeviceName

`func (o *CreateImageRequest) HasRootDeviceName() bool`

HasRootDeviceName returns a boolean if a field has been set.

### GetSourceImageId

`func (o *CreateImageRequest) GetSourceImageId() string`

GetSourceImageId returns the SourceImageId field if non-nil, zero value otherwise.

### GetSourceImageIdOk

`func (o *CreateImageRequest) GetSourceImageIdOk() (*string, bool)`

GetSourceImageIdOk returns a tuple with the SourceImageId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetSourceImageId

`func (o *CreateImageRequest) SetSourceImageId(v string)`

SetSourceImageId sets SourceImageId field to given value.

### HasSourceImageId

`func (o *CreateImageRequest) HasSourceImageId() bool`

HasSourceImageId returns a boolean if a field has been set.

### GetSourceRegionName

`func (o *CreateImageRequest) GetSourceRegionName() string`

GetSourceRegionName returns the SourceRegionName field if non-nil, zero value otherwise.

### GetSourceRegionNameOk

`func (o *CreateImageRequest) GetSourceRegionNameOk() (*string, bool)`

GetSourceRegionNameOk returns a tuple with the SourceRegionName field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetSourceRegionName

`func (o *CreateImageRequest) SetSourceRegionName(v string)`

SetSourceRegionName sets SourceRegionName field to given value.

### HasSourceRegionName

`func (o *CreateImageRequest) HasSourceRegionName() bool`

HasSourceRegionName returns a boolean if a field has been set.

### GetTpmMandatory

`func (o *CreateImageRequest) GetTpmMandatory() bool`

GetTpmMandatory returns the TpmMandatory field if non-nil, zero value otherwise.

### GetTpmMandatoryOk

`func (o *CreateImageRequest) GetTpmMandatoryOk() (*bool, bool)`

GetTpmMandatoryOk returns a tuple with the TpmMandatory field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetTpmMandatory

`func (o *CreateImageRequest) SetTpmMandatory(v bool)`

SetTpmMandatory sets TpmMandatory field to given value.

### HasTpmMandatory

`func (o *CreateImageRequest) HasTpmMandatory() bool`

HasTpmMandatory returns a boolean if a field has been set.

### GetVmId

`func (o *CreateImageRequest) GetVmId() string`

GetVmId returns the VmId field if non-nil, zero value otherwise.

### GetVmIdOk

`func (o *CreateImageRequest) GetVmIdOk() (*string, bool)`

GetVmIdOk returns a tuple with the VmId field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetVmId

`func (o *CreateImageRequest) SetVmId(v string)`

SetVmId sets VmId field to given value.

### HasVmId

`func (o *CreateImageRequest) HasVmId() bool`

HasVmId returns a boolean if a field has been set.


[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)


