openapi-nexus 0.1.7

OpenAPI 3.x multi-language code generator
Documentation
// Code generated by openapi-nexus. DO NOT EDIT.
//
// Optional Nested Object Reference Test — 1.0.0
// Test case for optional nested object reference

package com.example.sdk.models;

import com.google.gson.annotations.SerializedName;

/**
 * User with optional nested profile reference
 */
public class UserWithOptionalProfile {
    @SerializedName("optional_profile")
    private UserProfile optionalProfile;
    @SerializedName("user_id")
    private String userId;

    public UserWithOptionalProfile(UserProfile optionalProfile, String userId) {
        this.optionalProfile = optionalProfile;
        this.userId = userId;
    }

    public UserProfile getOptionalProfile() {
        return this.optionalProfile;
    }

    public String getUserId() {
        return this.userId;
    }
}