> For the complete documentation index, see [llms.txt](https://docs.ionos.com/mongodb-sdk-go/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/mongodb-sdk-go/models/templateresponse.md).

# TemplateResponse

A MongoDB template.

## Properties

| Name           | Type                                                                              | Description                    | Notes       |
| -------------- | --------------------------------------------------------------------------------- | ------------------------------ | ----------- |
| **Type**       | Pointer to [**ResourceType**](/mongodb-sdk-go/models/resourcetype.md)             |                                | \[optional] |
| **Id**         | Pointer to **string**                                                             | The unique ID of the resource. | \[optional] |
| **Metadata**   | Pointer to [**Metadata**](/mongodb-sdk-go/models/metadata.md)                     |                                | \[optional] |
| **Properties** | Pointer to [**TemplateProperties**](/mongodb-sdk-go/models/templateproperties.md) |                                | \[optional] |

## Methods

### GetType

`func (o *TemplateResponse) GetType() ResourceType`

GetType returns the Type field if non-nil, zero value otherwise.

### GetTypeOk

`func (o *TemplateResponse) GetTypeOk() (*ResourceType, bool)`

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

### SetType

`func (o *TemplateResponse) SetType(v ResourceType)`

SetType sets Type field to given value.

### HasType

`func (o *TemplateResponse) HasType() bool`

HasType returns a boolean if a field has been set.

### GetId

`func (o *TemplateResponse) GetId() string`

GetId returns the Id field if non-nil, zero value otherwise.

### GetIdOk

`func (o *TemplateResponse) GetIdOk() (*string, bool)`

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

### SetId

`func (o *TemplateResponse) SetId(v string)`

SetId sets Id field to given value.

### HasId

`func (o *TemplateResponse) HasId() bool`

HasId returns a boolean if a field has been set.

### GetMetadata

`func (o *TemplateResponse) GetMetadata() Metadata`

GetMetadata returns the Metadata field if non-nil, zero value otherwise.

### GetMetadataOk

`func (o *TemplateResponse) GetMetadataOk() (*Metadata, bool)`

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

### SetMetadata

`func (o *TemplateResponse) SetMetadata(v Metadata)`

SetMetadata sets Metadata field to given value.

### HasMetadata

`func (o *TemplateResponse) HasMetadata() bool`

HasMetadata returns a boolean if a field has been set.

### GetProperties

`func (o *TemplateResponse) GetProperties() TemplateProperties`

GetProperties returns the Properties field if non-nil, zero value otherwise.

### GetPropertiesOk

`func (o *TemplateResponse) GetPropertiesOk() (*TemplateProperties, bool)`

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

### SetProperties

`func (o *TemplateResponse) SetProperties(v TemplateProperties)`

SetProperties sets Properties field to given value.

### HasProperties

`func (o *TemplateResponse) HasProperties() bool`

HasProperties returns a boolean if a field has been set.
