Statistics
| Branch: | Revision:

root / src / com / rackspace / cloud / files / api / client / ContainerObjects.java @ 1fd17f2e

History | View | Annotate | Download (2.3 kB)

1 3d6041e8 Phillip Toohill
package com.rackspace.cloud.files.api.client;
2 3d6041e8 Phillip Toohill
3 1fd17f2e koutsoub
import java.util.Map;
4 1fd17f2e koutsoub
5 3d6041e8 Phillip Toohill
import com.rackspace.cloud.servers.api.client.Entity;
6 3d6041e8 Phillip Toohill
7 3d6041e8 Phillip Toohill
/**
8 3d6041e8 Phillip Toohill
 * @author Phillip Toohill dead2hill@gmail.com
9 3d6041e8 Phillip Toohill
 *
10 3d6041e8 Phillip Toohill
 */
11 3d6041e8 Phillip Toohill
public class ContainerObjects extends Entity {
12 3d6041e8 Phillip Toohill
13 3d6041e8 Phillip Toohill
        private static final long serialVersionUID = 5994739895998309675L;
14 3d6041e8 Phillip Toohill
        private String object;
15 3d6041e8 Phillip Toohill
        private String hash;
16 3d6041e8 Phillip Toohill
        private String lastMod;
17 6864568a Phillip Toohill
        private int bytes;
18 3d6041e8 Phillip Toohill
        private String cname;
19 3d6041e8 Phillip Toohill
        private String contentType;
20 1fd17f2e koutsoub
        
21 1fd17f2e koutsoub
        
22 1fd17f2e koutsoub
        
23 3d6041e8 Phillip Toohill
24 3d6041e8 Phillip Toohill
        /**
25 3d6041e8 Phillip Toohill
         * 
26 3d6041e8 Phillip Toohill
         * @return the object
27 3d6041e8 Phillip Toohill
         */
28 3d6041e8 Phillip Toohill
        public String getObject() {
29 3d6041e8 Phillip Toohill
                return object;
30 3d6041e8 Phillip Toohill
        }
31 3d6041e8 Phillip Toohill
        /**
32 3d6041e8 Phillip Toohill
         * 
33 3d6041e8 Phillip Toohill
         * @param object from container
34 3d6041e8 Phillip Toohill
         */
35 3d6041e8 Phillip Toohill
        public void setObject(String object)        {
36 3d6041e8 Phillip Toohill
                this.object = object;
37 3d6041e8 Phillip Toohill
        }
38 3d6041e8 Phillip Toohill
        /**
39 3d6041e8 Phillip Toohill
         * @return the hash
40 3d6041e8 Phillip Toohill
         */
41 3d6041e8 Phillip Toohill
        public String getHash() {
42 3d6041e8 Phillip Toohill
                return hash;
43 3d6041e8 Phillip Toohill
        }
44 3d6041e8 Phillip Toohill
        /**
45 3d6041e8 Phillip Toohill
         * @param hash hash of object
46 3d6041e8 Phillip Toohill
         */
47 3d6041e8 Phillip Toohill
        public void setHash(String hash) {
48 3d6041e8 Phillip Toohill
                this.hash = hash;
49 3d6041e8 Phillip Toohill
        }
50 3d6041e8 Phillip Toohill
        /**
51 3d6041e8 Phillip Toohill
         * 
52 3d6041e8 Phillip Toohill
         * @return the LastMod ification of file
53 3d6041e8 Phillip Toohill
         */
54 3d6041e8 Phillip Toohill
        public String getLastMod() {
55 3d6041e8 Phillip Toohill
                return lastMod;
56 3d6041e8 Phillip Toohill
        }
57 3d6041e8 Phillip Toohill
        
58 3d6041e8 Phillip Toohill
        /**
59 3d6041e8 Phillip Toohill
         * 
60 3d6041e8 Phillip Toohill
         * @param lastMod that LastMod is set to
61 3d6041e8 Phillip Toohill
         */
62 3d6041e8 Phillip Toohill
        public void setLastMod(String lastMod) {
63 3d6041e8 Phillip Toohill
                this.lastMod = lastMod;
64 3d6041e8 Phillip Toohill
        }
65 3d6041e8 Phillip Toohill
        /**
66 3d6041e8 Phillip Toohill
         * 
67 3d6041e8 Phillip Toohill
         * @return the object's name
68 3d6041e8 Phillip Toohill
        */
69 3d6041e8 Phillip Toohill
        public String getCName() {
70 3d6041e8 Phillip Toohill
                return cname;
71 3d6041e8 Phillip Toohill
        }
72 3d6041e8 Phillip Toohill
        /**
73 3d6041e8 Phillip Toohill
         * 
74 3d6041e8 Phillip Toohill
         * @param name the object is set to
75 3d6041e8 Phillip Toohill
         */
76 3d6041e8 Phillip Toohill
        public void setCName(String cname) {
77 3d6041e8 Phillip Toohill
                this.cname = cname;
78 3d6041e8 Phillip Toohill
        }
79 6864568a Phillip Toohill
        /**
80 6864568a Phillip Toohill
         * 
81 6864568a Phillip Toohill
         * @return the objects size
82 6864568a Phillip Toohill
         */
83 6864568a Phillip Toohill
        public int getBytes() {
84 3d6041e8 Phillip Toohill
                return bytes;
85 3d6041e8 Phillip Toohill
        }
86 3d6041e8 Phillip Toohill
        /**
87 3d6041e8 Phillip Toohill
         * 
88 6864568a Phillip Toohill
         * @param the bytes the object is set to
89 3d6041e8 Phillip Toohill
         */
90 6864568a Phillip Toohill
        public void setBytes(int bytes) {
91 3d6041e8 Phillip Toohill
                this.bytes = bytes;
92 3d6041e8 Phillip Toohill
        }
93 6864568a Phillip Toohill
        /**
94 6864568a Phillip Toohill
         * 
95 6864568a Phillip Toohill
         * @param contentType the object is set to
96 6864568a Phillip Toohill
         */
97 3d6041e8 Phillip Toohill
        public void setContentType(String contentType) {
98 3d6041e8 Phillip Toohill
                this.contentType = contentType;
99 3d6041e8 Phillip Toohill
                
100 3d6041e8 Phillip Toohill
        }
101 6864568a Phillip Toohill
        /**
102 6864568a Phillip Toohill
         * 
103 6864568a Phillip Toohill
         * @return the objects content type
104 6864568a Phillip Toohill
         */
105 3d6041e8 Phillip Toohill
        public String getContentType(){
106 3d6041e8 Phillip Toohill
                return contentType;
107 3d6041e8 Phillip Toohill
        }
108 1fd17f2e koutsoub
        @Override
109 1fd17f2e koutsoub
        public String toString() {
110 1fd17f2e koutsoub
                return "ContainerObjects [" + "getCName()="
111 1fd17f2e koutsoub
                                + getCName() + " object=" + object + ", hash=" + hash
112 1fd17f2e koutsoub
                                + ", lastMod=" + lastMod + ", bytes=" + bytes + ", cname="
113 1fd17f2e koutsoub
                                + cname + ", contentType=" + contentType + ", getId()="
114 1fd17f2e koutsoub
                                + getId() + ", getName()=" + getName() + ", getModifiedBy()="
115 1fd17f2e koutsoub
                                + getModifiedBy() + ", getVersion()=" + getVersion()
116 1fd17f2e koutsoub
                                + ", getVersionTimestamp()=" + getVersionTimestamp()
117 1fd17f2e koutsoub
                                + ", getObjectUUID()=" + getObjectUUID() + ", getObjectHash()="
118 1fd17f2e koutsoub
                                + getObjectHash() + ", getObjectSharing()="
119 1fd17f2e koutsoub
                                + getObjectSharing() + ", getMetadata()=" + getMetadata() + "]";
120 1fd17f2e koutsoub
        }
121 1fd17f2e koutsoub
        
122 1fd17f2e koutsoub
        
123 1fd17f2e koutsoub
        
124 3d6041e8 Phillip Toohill
}