# Google Cloud Vm Migration V1 Client - Class AwsSourceDetails (1.4.0)

1.4.0 (latest) 1.3.0 1.2.1 1.1.0 1.0.5 0.6.5 0.5.2 0.4.2 0.3.2 0.2.3 Reference documentation and code samples for the Google Cloud Vm Migration V1 Client class AwsSourceDetails.

AwsSourceDetails message describes a specific source details for the
AWS source type.

Generated from protobuf message `google.cloud.vmmigration.v1.AwsSourceDetails`

## Namespace

Google \\ Cloud \\ VMMigration \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ access_key_creds` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AwsSourceDetails.AccessKeyCredentials` AWS Credentials using access key id and secret. |
| `↳ aws_region` | `string` Immutable. The AWS region that the source VMs will be migrated from. |
| `↳ state` | `int` Output only. State of the source as determined by the health check. |
| `↳ error` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` Output only. Provides details on the state of the Source in case of an error. |
| `↳ inventory_tag_list` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AwsSourceDetails.Tag>` AWS resource tags to limit the scope of the source inventory. |
| `↳ inventory_security_group_names` | `string[]` AWS security group names to limit the scope of the source inventory. |
| `↳ migration_resources_user_tags` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` User specified tags to add to every M2VM generated resource in AWS. These tags will be set in addition to the default tags that are set as part of the migration process. The tags must not begin with the reserved prefix `m2vm`. |
| `↳ public_ip` | `string` Output only. The source's public IP. All communication initiated by this source will originate from this IP. |

### getAccessKeyCreds

AWS Credentials using access key id and secret.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AwsSourceDetails.AccessKeyCredentials|null` |   |

### hasAccessKeyCreds

### setAccessKeyCreds

AWS Credentials using access key id and secret.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AwsSourceDetails.AccessKeyCredentials` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getAwsRegion

Immutable. The AWS region that the source VMs will be migrated from.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setAwsRegion

Immutable. The AWS region that the source VMs will be migrated from.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getState

Output only. State of the source as determined by the health check.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AwsSourceDetails.State). |

### setState

Output only. State of the source as determined by the health check.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [State](https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AwsSourceDetails.State). |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getError

Output only. Provides details on the state of the Source in case of an
error.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html|null` |   |

### hasError

### clearError

### setError

Output only. Provides details on the state of the Source in case of an
error.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/common-protos/latest/Rpc.Status.html` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getInventoryTagList

AWS resource tags to limit the scope of the source inventory.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AwsSourceDetails.Tag>` |   |

### setInventoryTagList

AWS resource tags to limit the scope of the source inventory.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-vm-migration/latest/V1.AwsSourceDetails.Tag>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getInventorySecurityGroupNames

AWS security group names to limit the scope of the source
inventory.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<string>` |   |

### setInventorySecurityGroupNames

AWS security group names to limit the scope of the source
inventory.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string[]` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getMigrationResourcesUserTags

User specified tags to add to every M2VM generated resource in AWS.

These tags will be set in addition to the default tags that are set as part
of the migration process. The tags must not begin with the reserved prefix
`m2vm`.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |   |

### setMigrationResourcesUserTags

User specified tags to add to every M2VM generated resource in AWS.

These tags will be set in addition to the default tags that are set as part
of the migration process. The tags must not begin with the reserved prefix
`m2vm`.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array|https://protobuf.dev/reference/php/api-docs/Google/Protobuf/Internal/MapField` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getPublicIp

Output only. The source's public IP. All communication initiated by this
source will originate from this IP.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setPublicIp

Output only. The source's public IP. All communication initiated by this
source will originate from this IP.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getCredentialsType

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |