Statistics
| Branch: | Revision:

root / src / com / rackspace / cloud / files / api / client / ContainerObjects.java @ 6864568a

History | View | Annotate | Download (1.7 kB)

1
package com.rackspace.cloud.files.api.client;
2

    
3
import com.rackspace.cloud.servers.api.client.Entity;
4

    
5
/**
6
 * @author Phillip Toohill dead2hill@gmail.com
7
 *
8
 */
9
public class ContainerObjects extends Entity {
10

    
11
        private static final long serialVersionUID = 5994739895998309675L;
12
        private String object;
13
        private String hash;
14
        private String lastMod;
15
        private int bytes;
16
        private String cname;
17
        private String contentType;
18

    
19
        /**
20
         * 
21
         * @return the object
22
         */
23
        public String getObject() {
24
                return object;
25
        }
26
        /**
27
         * 
28
         * @param object from container
29
         */
30
        public void setObject(String object)        {
31
                this.object = object;
32
        }
33
        /**
34
         * @return the hash
35
         */
36
        public String getHash() {
37
                return hash;
38
        }
39
        /**
40
         * @param hash hash of object
41
         */
42
        public void setHash(String hash) {
43
                this.hash = hash;
44
        }
45
        /**
46
         * 
47
         * @return the LastMod ification of file
48
         */
49
        public String getLastMod() {
50
                return lastMod;
51
        }
52
        
53
        /**
54
         * 
55
         * @param lastMod that LastMod is set to
56
         */
57
        public void setLastMod(String lastMod) {
58
                this.lastMod = lastMod;
59
        }
60
        /**
61
         * 
62
         * @return the object's name
63
        */
64
        public String getCName() {
65
                return cname;
66
        }
67
        /**
68
         * 
69
         * @param name the object is set to
70
         */
71
        public void setCName(String cname) {
72
                this.cname = cname;
73
        }
74
        /**
75
         * 
76
         * @return the objects size
77
         */
78
        public int getBytes() {
79
                return bytes;
80
        }
81
        /**
82
         * 
83
         * @param the bytes the object is set to
84
         */
85
        public void setBytes(int bytes) {
86
                this.bytes = bytes;
87
        }
88
        /**
89
         * 
90
         * @param contentType the object is set to
91
         */
92
        public void setContentType(String contentType) {
93
                this.contentType = contentType;
94
                
95
        }
96
        /**
97
         * 
98
         * @return the objects content type
99
         */
100
        public String getContentType(){
101
                return contentType;
102
        }
103
}   
104