/** * Constructor. * * @param stringTemplate the {@link java.util.Formatter} template string * @param templateArguments the arguments to the template */ public LazilyFormattedString(@Nonnull final String stringTemplate, @Nullable final Object... templateArguments) { template = Constraints.isNotNull(stringTemplate, "String template can not be null"); arguments = templateArguments; }
/** * Constructor. * * @param statusCode a service-specific status code * @param message message describing this exception * @param cause a finer-grained error that this exception is wrapping */ public InvalidResponseException(@Nonnull @NotEmpty String statusCode, @Nullable String message, @Nullable Throwable cause) { super(statusCode, message, cause); } }
/** * Constructor. * * @param statusCode a service-specific status code * @param message message describing this exception * @param cause a finer-grained error that this exception is wrapping */ public ClientException(@Nonnull @NotEmpty String statusCode, @Nullable String message, @Nullable Throwable cause) { super(statusCode, message, cause); } }
/** * Constructor. * * @param statusCode a service-specific status code * @param message message describing this exception * @param cause a finer-grained error that this exception is wrapping */ public InvalidRequestException(@Nonnull @NotEmpty String statusCode, @Nullable String message, @Nullable Throwable cause) { super(statusCode, message, cause); } }
/** * Sets the organization's parent organization. * * @param newParentOrganization The parentOrganization to set. * @return returns this object. */ @Nonnull public Organization setParentOrganization(@Nullable ResourceReference newParentOrganization) { parentOrganization = newParentOrganization; return this; }
/** * Sets the organization's sub type code. * * @param newOrganizationSubtype The organizationSubtype to set. * @return returns this object. */ @Nonnull public Organization setOrganizationSubtype(@Nullable String newOrganizationSubtype) { organizationSubtype = newOrganizationSubtype; return this; }