001// --------------------------------------------------------------------------------
002// Copyright 2002-2024 Echo Three, LLC
003//
004// Licensed under the Apache License, Version 2.0 (the "License");
005// you may not use this file except in compliance with the License.
006// You may obtain a copy of the License at
007//
008//     http://www.apache.org/licenses/LICENSE-2.0
009//
010// Unless required by applicable law or agreed to in writing, software
011// distributed under the License is distributed on an "AS IS" BASIS,
012// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013// See the License for the specific language governing permissions and
014// limitations under the License.
015// --------------------------------------------------------------------------------
016
017package com.echothree.model.control.core.common.transfer;
018
019import com.echothree.model.control.party.common.transfer.LanguageTransfer;
020import com.echothree.util.common.persistence.type.ByteArray;
021import com.echothree.util.common.transfer.BaseTransfer;
022
023public class EntityBlobAttributeTransfer
024        extends BaseTransfer {
025    
026    private EntityAttributeTransfer entityAttribute;
027    private EntityInstanceTransfer entityInstance;
028    private LanguageTransfer language;
029    private ByteArray blobAttribute;
030    private MimeTypeTransfer mimeType;
031    private String eTag;
032    
033    /** Creates a new instance of EntityBlobAttributeTransfer */
034    public EntityBlobAttributeTransfer(EntityAttributeTransfer entityAttribute, EntityInstanceTransfer entityInstance, LanguageTransfer language,
035            ByteArray blobAttribute, MimeTypeTransfer mimeType, String eTag) {
036        this.entityAttribute = entityAttribute;
037        this.entityInstance = entityInstance;
038        this.language = language;
039        this.blobAttribute = blobAttribute;
040        this.mimeType = mimeType;
041        this.eTag = eTag;
042    }
043
044    /**
045     * Returns the entityAttribute.
046     * @return the entityAttribute
047     */
048    public EntityAttributeTransfer getEntityAttribute() {
049        return entityAttribute;
050    }
051
052    /**
053     * Sets the entityAttribute.
054     * @param entityAttribute the entityAttribute to set
055     */
056    public void setEntityAttribute(EntityAttributeTransfer entityAttribute) {
057        this.entityAttribute = entityAttribute;
058    }
059
060    /**
061     * Returns the entityInstance.
062     * @return the entityInstance
063     */
064    @Override
065    public EntityInstanceTransfer getEntityInstance() {
066        return entityInstance;
067    }
068
069    /**
070     * Sets the entityInstance.
071     * @param entityInstance the entityInstance to set
072     */
073    @Override
074    public void setEntityInstance(EntityInstanceTransfer entityInstance) {
075        this.entityInstance = entityInstance;
076    }
077
078    /**
079     * Returns the language.
080     * @return the language
081     */
082    public LanguageTransfer getLanguage() {
083        return language;
084    }
085
086    /**
087     * Sets the language.
088     * @param language the language to set
089     */
090    public void setLanguage(LanguageTransfer language) {
091        this.language = language;
092    }
093
094    /**
095     * Returns the blobAttribute.
096     * @return the blobAttribute
097     */
098    public ByteArray getBlobAttribute() {
099        return blobAttribute;
100    }
101
102    /**
103     * Sets the blobAttribute.
104     * @param blobAttribute the blobAttribute to set
105     */
106    public void setBlobAttribute(ByteArray blobAttribute) {
107        this.blobAttribute = blobAttribute;
108    }
109
110    /**
111     * Returns the mimeType.
112     * @return the mimeType
113     */
114    public MimeTypeTransfer getMimeType() {
115        return mimeType;
116    }
117
118    /**
119     * Sets the mimeType.
120     * @param mimeType the mimeType to set
121     */
122    public void setMimeType(MimeTypeTransfer mimeType) {
123        this.mimeType = mimeType;
124    }
125
126    /**
127     * Returns the eTag.
128     * @return the eTag
129     */
130    public String geteTag() {
131        return eTag;
132    }
133
134    /**
135     * Sets the eTag.
136     * @param eTag the eTag to set
137     */
138    public void seteTag(String eTag) {
139        this.eTag = eTag;
140    }
141    
142}