/** * This build option is specifically for when patching an existing UrlMap. * If not patching an existing urlMap it is recommended that you use {@link #build()}. */ public UrlMapOptions buildForPatch() { return create(name, description, hostRules, pathMatchers, tests, defaultService, fingerprint); } }
private void assertUrlMapEquals(UrlMap result, UrlMapOptions expected) { assertEquals(result.name(), expected.name()); assertEquals(result.defaultService(), expected.defaultService()); assertEquals(result.pathMatchers(), expected.pathMatchers()); assertEquals(result.hostRules(), expected.hostRules()); } }
/** * This build option is specifically for when patching an existing UrlMap. * If not patching an existing urlMap it is recommended that you use {@link #build()}. */ public UrlMapOptions buildForPatch() { return create(name, description, hostRules, pathMatchers, tests, defaultService, fingerprint); } }
/** * This build option is specifically for when patching an existing UrlMap. * If not patching an existing urlMap it is recommended that you use {@link #build()}. */ public UrlMapOptions buildForPatch() { return create(name, description, hostRules, pathMatchers, tests, defaultService, fingerprint); } }
/** * This build option is specifically for when patching an existing UrlMap. * If not patching an existing urlMap it is recommended that you use {@link #build()}. */ public UrlMapOptions buildForPatch() { return create(name, description, hostRules, pathMatchers, tests, defaultService, fingerprint); } }
/** * Builds the UrlMapOptions. * Note: This enforces that "name" and "defaultService" are not null as the GCE API expects. * If you are patching an existing UrlMap you may wish to use {@link #buildForPatch()} instead. */ public UrlMapOptions build() { checkNotNull(name, "In UrlMapOptions: A UrlMap name cannot be null, if patching an existing UrlMap use buildForPatch() instead of build()"); checkNotNull(defaultService, "In UrlMapOptions: A UrlMap defaultService cannot be null, if patching an existing UrlMap use buildForPatch() instead of build()"); return create(name, description, hostRules, pathMatchers, tests, defaultService, fingerprint); }
/** * Builds the UrlMapOptions. * Note: This enforces that "name" and "defaultService" are not null as the GCE API expects. * If you are patching an existing UrlMap you may wish to use {@link #buildForPatch()} instead. */ public UrlMapOptions build() { checkNotNull(name, "In UrlMapOptions: A UrlMap name cannot be null, if patching an existing UrlMap use buildForPatch() instead of build()"); checkNotNull(defaultService, "In UrlMapOptions: A UrlMap defaultService cannot be null, if patching an existing UrlMap use buildForPatch() instead of build()"); return create(name, description, hostRules, pathMatchers, tests, defaultService, fingerprint); }
/** * Builds the UrlMapOptions. * Note: This enforces that "name" and "defaultService" are not null as the GCE API expects. * If you are patching an existing UrlMap you may wish to use {@link #buildForPatch()} instead. */ public UrlMapOptions build() { checkNotNull(name, "In UrlMapOptions: A UrlMap name cannot be null, if patching an existing UrlMap use buildForPatch() instead of build()"); checkNotNull(defaultService, "In UrlMapOptions: A UrlMap defaultService cannot be null, if patching an existing UrlMap use buildForPatch() instead of build()"); return create(name, description, hostRules, pathMatchers, tests, defaultService, fingerprint); }
/** * Builds the UrlMapOptions. * Note: This enforces that "name" and "defaultService" are not null as the GCE API expects. * If you are patching an existing UrlMap you may wish to use {@link #buildForPatch()} instead. */ public UrlMapOptions build() { checkNotNull(name, "In UrlMapOptions: A UrlMap name cannot be null, if patching an existing UrlMap use buildForPatch() instead of build()"); checkNotNull(defaultService, "In UrlMapOptions: A UrlMap defaultService cannot be null, if patching an existing UrlMap use buildForPatch() instead of build()"); return create(name, description, hostRules, pathMatchers, tests, defaultService, fingerprint); }