// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
// Code generated by Microsoft (R) AutoRest Code Generator.

package com.azure.resourcemanager.logic.models;

import com.azure.core.annotation.Fluent;
import com.fasterxml.jackson.annotation.JsonProperty;

/** The integration account partner content. */
@Fluent
public final class PartnerContent {
    /*
     * The B2B partner content.
     */
    @JsonProperty(value = "b2b")
    private B2BPartnerContent b2B;

    /** Creates an instance of PartnerContent class. */
    public PartnerContent() {
    }

    /**
     * Get the b2B property: The B2B partner content.
     *
     * @return the b2B value.
     */
    public B2BPartnerContent b2B() {
        return this.b2B;
    }

    /**
     * Set the b2B property: The B2B partner content.
     *
     * @param b2B the b2B value to set.
     * @return the PartnerContent object itself.
     */
    public PartnerContent withB2B(B2BPartnerContent b2B) {
        this.b2B = b2B;
        return this;
    }

    /**
     * Validates the instance.
     *
     * @throws IllegalArgumentException thrown if the instance is not valid.
     */
    public void validate() {
        if (b2B() != null) {
            b2B().validate();
        }
    }
}
