blob: bf1bc73ad60471fd96ea26b872d9414204fdf5f7 [file] [log] [blame]
/*
* Licensed to the Apache Software Foundation (ASF) under one or more
* contributor license agreements. See the NOTICE file distributed with
* this work for additional information regarding copyright ownership.
* The ASF licenses this file to You under the Apache License, Version 2.0
* (the "License"); you may not use this file except in compliance with
* the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package org.apache.airavata.mft.admin.models;
import org.apache.airavata.mft.common.AuthToken;
import java.util.Map;
public class TransferRequest {
private String sourceStorageId;
private String sourcePath;
private String sourceType;
private String sourceToken;
private String sourceResourceBackend;
private String sourceCredentialBackend;
private String destinationStorageId;
private String destinationPath;
private String destinationType;
private String destinationToken;
private String destResourceBackend;
private String destCredentialBackend;
private AuthToken mftAuthorizationToken;
private boolean affinityTransfer;
private Map<String, Integer> targetAgents;
public String getSourceStorageId() {
return sourceStorageId;
}
public TransferRequest setSourceStorageId(String sourceStorageId) {
this.sourceStorageId = sourceStorageId;
return this;
}
public String getSourcePath() {
return sourcePath;
}
public TransferRequest setSourcePath(String sourcePath) {
this.sourcePath = sourcePath;
return this;
}
public String getSourceType() {
return sourceType;
}
public TransferRequest setSourceType(String sourceType) {
this.sourceType = sourceType;
return this;
}
public String getSourceToken() {
return sourceToken;
}
public TransferRequest setSourceToken(String sourceToken) {
this.sourceToken = sourceToken;
return this;
}
public String getSourceResourceBackend() {
return sourceResourceBackend;
}
public TransferRequest setSourceResourceBackend(String sourceResourceBackend) {
this.sourceResourceBackend = sourceResourceBackend;
return this;
}
public String getSourceCredentialBackend() {
return sourceCredentialBackend;
}
public TransferRequest setSourceCredentialBackend(String sourceCredentialBackend) {
this.sourceCredentialBackend = sourceCredentialBackend;
return this;
}
public String getDestinationStorageId() {
return destinationStorageId;
}
public TransferRequest setDestinationStorageId(String destinationStorageId) {
this.destinationStorageId = destinationStorageId;
return this;
}
public String getDestinationPath() {
return destinationPath;
}
public TransferRequest setDestinationPath(String destinationPath) {
this.destinationPath = destinationPath;
return this;
}
public String getDestinationType() {
return destinationType;
}
public TransferRequest setDestinationType(String destinationType) {
this.destinationType = destinationType;
return this;
}
public String getDestinationToken() {
return destinationToken;
}
public TransferRequest setDestinationToken(String destinationToken) {
this.destinationToken = destinationToken;
return this;
}
public String getDestResourceBackend() {
return destResourceBackend;
}
public TransferRequest setDestResourceBackend(String destResourceBackend) {
this.destResourceBackend = destResourceBackend;
return this;
}
public String getDestCredentialBackend() {
return destCredentialBackend;
}
public TransferRequest setDestCredentialBackend(String destCredentialBackend) {
this.destCredentialBackend = destCredentialBackend;
return this;
}
public boolean isAffinityTransfer() {
return affinityTransfer;
}
public TransferRequest setAffinityTransfer(boolean affinityTransfer) {
this.affinityTransfer = affinityTransfer;
return this;
}
public Map<String, Integer> getTargetAgents() {
return targetAgents;
}
public TransferRequest setTargetAgents(Map<String, Integer> targetAgents) {
this.targetAgents = targetAgents;
return this;
}
public AuthToken getMftAuthorizationToken() {
return mftAuthorizationToken;
}
public TransferRequest setMftAuthorizationToken(AuthToken mftAuthorizationToken) {
this.mftAuthorizationToken = mftAuthorizationToken;
return this;
}
}