@Test public void testBuilder() { Crn crn = Crn.builder() .setService(Crn.Service.IAM) .setAccountId("accountId") .setResourceType(Crn.ResourceType.USER) .setResource("userId") .build(); assertEquals(Crn.Service.IAM, crn.getService()); assertEquals("accountId", crn.getAccountId()); assertEquals(Crn.ResourceType.USER, crn.getResourceType()); assertEquals("userId", crn.getResource()); }
public static Builder builder() { return new Builder(); }
Crn { public static Builder builder() { return new Builder(); } }
Crn { public static Builder builder() { return new Builder(); } Crn(Partition partition,
            Service service,
            Region region,
            String accountId,
            ResourceType resourceType,
            String resource); }
Crn { public static Builder builder() { return new Builder(); } Crn(Partition partition,
            Service service,
            Region region,
            String accountId,
            ResourceType resourceType,
            String resource); Partition getPartition(); Service getService(); Region getRegion(); String getAccountId(); ResourceType getResourceType(); String getResource(); String getUserId(); @Override String toString(); @Nullable static Crn fromString(String input); static Crn safeFromString(String input); static boolean isCrn(@Nullable String input); @Override int hashCode(); @Override boolean equals(Object object); static Builder builder(); }
Crn { public static Builder builder() { return new Builder(); } Crn(Partition partition,
            Service service,
            Region region,
            String accountId,
            ResourceType resourceType,
            String resource); Partition getPartition(); Service getService(); Region getRegion(); String getAccountId(); ResourceType getResourceType(); String getResource(); String getUserId(); @Override String toString(); @Nullable static Crn fromString(String input); static Crn safeFromString(String input); static boolean isCrn(@Nullable String input); @Override int hashCode(); @Override boolean equals(Object object); static Builder builder();  }