This project has retired. For details please refer to its Attic page.
Source code
001/**
002 * Licensed to the Apache Software Foundation (ASF) under one
003 * or more contributor license agreements.  See the NOTICE file
004 * distributed with this work for additional information
005 * regarding copyright ownership.  The ASF licenses this file
006 * to you under the Apache License, Version 2.0 (the
007 * "License"); you may not use this file except in compliance
008 * with the License.  You may obtain a copy of the License at
009 *
010 *   http://www.apache.org/licenses/LICENSE-2.0
011 *
012 * Unless required by applicable law or agreed to in writing,
013 * software distributed under the License is distributed on an
014 * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
015 * KIND, either express or implied.  See the License for the
016 * specific language governing permissions and limitations
017 * under the License.
018 */
019package org.apache.reef.runtime.hdinsight.client.yarnrest;
020
021public final class FileResource {
022
023  public static final String TYPE_FILE = "FILE";
024  public static final String TYPE_ARCHIVE = "ARCHIVE";
025
026  public static final String VISIBILITY_APPLICATION = "APPLICATION";
027
028  private String url;
029  private String type;
030  private String visibility;
031  private String size;
032  private String timestamp;
033
034  public String getUrl() {
035    return this.url;
036  }
037
038  public FileResource setUrl(final String url) {
039    this.url = url;
040    return this;
041  }
042
043  public String getType() {
044    return this.type;
045  }
046
047  public FileResource setType(final String type) {
048    this.type = type;
049    return this;
050  }
051
052  public String getVisibility() {
053    return this.visibility;
054  }
055
056  public FileResource setVisibility(final String visibility) {
057    this.visibility = visibility;
058    return this;
059  }
060
061  public String getSize() {
062    return this.size;
063  }
064
065  public FileResource setSize(final String size) {
066    this.size = size;
067    return this;
068  }
069
070  public String getTimestamp() {
071    return this.timestamp;
072  }
073
074  public FileResource setTimestamp(final String timestamp) {
075    this.timestamp = timestamp;
076    return this;
077  }
078
079  @Override
080  public String toString() {
081    return "FileResource{" +
082        "url='" + url + '\'' +
083        ", type='" + type + '\'' +
084        ", visibility='" + visibility + '\'' +
085        ", size=" + size +
086        ", timestamp=" + timestamp +
087        '}';
088  }
089}