Skip to content

Commit 1785927

Browse files
committed
chore: create awscloud provider
Signed-off-by: Otavio Santana <otaviopolianasantana@gmail.com>
1 parent 92edf5e commit 1785927

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

src/main/java/org/soujava/demos/arangodb/document/AWSCloudProvider.java

+8-4
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,25 @@
44
import jakarta.nosql.Entity;
55
import net.datafaker.Faker;
66

7+
import java.util.UUID;
8+
79
@Entity
810
public class AWSCloudProvider extends CloudProvider {
911

1012

11-
@Column
12-
private String appName;
13-
1413
@Column
1514
private String accountId;
1615

1716

1817

1918
public static AWSCloudProvider of(Faker faker) {
2019
var aws = faker.aws();
21-
20+
var cloudProvider = new AWSCloudProvider();
21+
cloudProvider.region = aws.region();
22+
cloudProvider.region = aws.region();
23+
cloudProvider.id = UUID.randomUUID().toString();
24+
cloudProvider.accountId = aws.accountId();
25+
return cloudProvider;
2226

2327
}
2428

0 commit comments

Comments
 (0)