private CryptoKeyVersionName(Builder builder) { project = Preconditions.checkNotNull(builder.getProject()); location = Preconditions.checkNotNull(builder.getLocation()); keyRing = Preconditions.checkNotNull(builder.getKeyRing()); cryptoKey = Preconditions.checkNotNull(builder.getCryptoKey()); cryptoKeyVersion = Preconditions.checkNotNull(builder.getCryptoKeyVersion()); }
public Builder toBuilder() { return new Builder(this); }
public static Builder newBuilder() { return new Builder(); }
public static CryptoKeyVersionName of( String project, String location, String keyRing, String cryptoKey, String cryptoKeyVersion) { return newBuilder() .setProject(project) .setLocation(location) .setKeyRing(keyRing) .setCryptoKey(cryptoKey) .setCryptoKeyVersion(cryptoKeyVersion) .build(); }
public static String format( String project, String location, String keyRing, String cryptoKey, String cryptoKeyVersion) { return newBuilder() .setProject(project) .setLocation(location) .setKeyRing(keyRing) .setCryptoKey(cryptoKey) .setCryptoKeyVersion(cryptoKeyVersion) .build() .toString(); }
private CryptoKeyVersionName(Builder builder) { project = Preconditions.checkNotNull(builder.getProject()); location = Preconditions.checkNotNull(builder.getLocation()); keyRing = Preconditions.checkNotNull(builder.getKeyRing()); cryptoKey = Preconditions.checkNotNull(builder.getCryptoKey()); cryptoKeyVersion = Preconditions.checkNotNull(builder.getCryptoKeyVersion()); }
public Builder toBuilder() { return new Builder(this); }
public static Builder newBuilder() { return new Builder(); }
public static CryptoKeyVersionName of( String project, String location, String keyRing, String cryptoKey, String cryptoKeyVersion) { return newBuilder() .setProject(project) .setLocation(location) .setKeyRing(keyRing) .setCryptoKey(cryptoKey) .setCryptoKeyVersion(cryptoKeyVersion) .build(); }
public static String format( String project, String location, String keyRing, String cryptoKey, String cryptoKeyVersion) { return newBuilder() .setProject(project) .setLocation(location) .setKeyRing(keyRing) .setCryptoKey(cryptoKey) .setCryptoKeyVersion(cryptoKeyVersion) .build() .toString(); }