This repository was archived by the owner on Oct 16, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathCloudEntityData.java
More file actions
67 lines (57 loc) · 1.3 KB
/
Copy pathCloudEntityData.java
File metadata and controls
67 lines (57 loc) · 1.3 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
package databases.mysql;
import com.sun.istack.internal.Nullable;
/**
* Collection of cloud entity (function, composition, bucket, table or instance) information
*/
public class CloudEntityData {
/**
* Information
*/
private final String entityName;
@Nullable
private final String region;
/**
* If not null, it can be an ARN, an API ID or an Instance ID
*/
@Nullable
private final String id;
/**
* Constructor without region and id
* @param entityName name of the entity
*/
public CloudEntityData(String entityName) {
this.entityName = entityName;
this.region = null;
this.id = null;
}
/**
* Constructor without id
* @param entityName name of the entity
* @param region entity region of deployment
*/
public CloudEntityData(String entityName, String region) {
this.entityName = entityName;
this.region = region;
this.id = null;
}
/**
* All arguments constructor
* @param entityName name of the entity
* @param region entity region of deployment
* @param id entity id
*/
public CloudEntityData(String entityName, String region, String id) {
this.entityName = entityName;
this.region = region;
this.id = id;
}
public String getEntityName() {
return entityName;
}
public String getRegion() {
return region;
}
public String getId() {
return id;
}
}