> For the complete documentation index, see [llms.txt](https://docs.ionos.com/cloud/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.ionos.com/cloud/go/go-bundle/sdks/vpn/models/ikeencryption.md).

# IKEEncryption

## Properties

| Name                    | Type                  | Description                                                                                                                                                                                                 | Notes                           |
| ----------------------- | --------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
| **DiffieHellmanGroup**  | Pointer to **string** | The Diffie-Hellman Group to use for IPSec Encryption.\ Options: - 15-MODP3072 - 16-MODP4096 - 19-ECP256 - 20-ECP384 - 21-ECP521 - 28-ECP256BP - 29-ECP384BP - 30-ECP512BP                                   | \[optional]                     |
| **EncryptionAlgorithm** | Pointer to **string** | The encryption algorithm to use for IPSec Encryption.\ Options: - AES128-CTR - AES256-CTR - AES128-GCM-16 - AES256-GCM-16 - AES128-GCM-12 - AES256-GCM-12 - AES128-CCM-12 - AES256-CCM-12 - AES128 - AES256 | \[optional]                     |
| **IntegrityAlgorithm**  | Pointer to **string** | The integrity algorithm to use for IPSec Encryption.\ Options: - SHA256 - SHA384 - SHA512 - AES-XCBC                                                                                                        | \[optional]                     |
| **Lifetime**            | Pointer to **int32**  | The phase lifetime in seconds.                                                                                                                                                                              | \[optional] \[default to 86400] |

## Methods

### NewIKEEncryption

`func NewIKEEncryption() *IKEEncryption`

NewIKEEncryption instantiates a new IKEEncryption 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

### NewIKEEncryptionWithDefaults

`func NewIKEEncryptionWithDefaults() *IKEEncryption`

NewIKEEncryptionWithDefaults instantiates a new IKEEncryption 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

### GetDiffieHellmanGroup

`func (o *IKEEncryption) GetDiffieHellmanGroup() string`

GetDiffieHellmanGroup returns the DiffieHellmanGroup field if non-nil, zero value otherwise.

### GetDiffieHellmanGroupOk

`func (o *IKEEncryption) GetDiffieHellmanGroupOk() (*string, bool)`

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

### SetDiffieHellmanGroup

`func (o *IKEEncryption) SetDiffieHellmanGroup(v string)`

SetDiffieHellmanGroup sets DiffieHellmanGroup field to given value.

### HasDiffieHellmanGroup

`func (o *IKEEncryption) HasDiffieHellmanGroup() bool`

HasDiffieHellmanGroup returns a boolean if a field has been set.

### GetEncryptionAlgorithm

`func (o *IKEEncryption) GetEncryptionAlgorithm() string`

GetEncryptionAlgorithm returns the EncryptionAlgorithm field if non-nil, zero value otherwise.

### GetEncryptionAlgorithmOk

`func (o *IKEEncryption) GetEncryptionAlgorithmOk() (*string, bool)`

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

### SetEncryptionAlgorithm

`func (o *IKEEncryption) SetEncryptionAlgorithm(v string)`

SetEncryptionAlgorithm sets EncryptionAlgorithm field to given value.

### HasEncryptionAlgorithm

`func (o *IKEEncryption) HasEncryptionAlgorithm() bool`

HasEncryptionAlgorithm returns a boolean if a field has been set.

### GetIntegrityAlgorithm

`func (o *IKEEncryption) GetIntegrityAlgorithm() string`

GetIntegrityAlgorithm returns the IntegrityAlgorithm field if non-nil, zero value otherwise.

### GetIntegrityAlgorithmOk

`func (o *IKEEncryption) GetIntegrityAlgorithmOk() (*string, bool)`

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

### SetIntegrityAlgorithm

`func (o *IKEEncryption) SetIntegrityAlgorithm(v string)`

SetIntegrityAlgorithm sets IntegrityAlgorithm field to given value.

### HasIntegrityAlgorithm

`func (o *IKEEncryption) HasIntegrityAlgorithm() bool`

HasIntegrityAlgorithm returns a boolean if a field has been set.

### GetLifetime

`func (o *IKEEncryption) GetLifetime() int32`

GetLifetime returns the Lifetime field if non-nil, zero value otherwise.

### GetLifetimeOk

`func (o *IKEEncryption) GetLifetimeOk() (*int32, bool)`

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

### SetLifetime

`func (o *IKEEncryption) SetLifetime(v int32)`

SetLifetime sets Lifetime field to given value.

### HasLifetime

`func (o *IKEEncryption) HasLifetime() bool`

HasLifetime returns a boolean if a field has been set.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://docs.ionos.com/cloud/go/go-bundle/sdks/vpn/models/ikeencryption.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
