> + return ResourceGroupProperties.create(provisioningState);
> + }
> +
> + public Builder fromResourceGroupProperties(final
> ResourceGroupProperties resourceGroupProperties) {
> + return
> provisioningState(resourceGroupProperties.provisioningState());
> + }
> + }
> + }
> +
> + public ResourceGroup() {}
> +
> + public abstract String id();
> + public abstract String name();
> + public abstract String location();
> + @Nullable
> + public abstract HashMap<String, String> tags();
Use the `Map` interface to declare types.
Also, we try to avoid `null` collections when possible and enforce
immutability, so, in the `create` factory method take care of that. Something
like:
```java
return new AutoValue_ResourceGroup(id, name, location, tags == null ?
ImmutableSet.of() : ImmutableSet.copyOf(tags), properties);
```
---
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds-labs/pull/250/files/f7cc1b437f11378e105bba552e3cfee9d7491872#r57576874