Statistics
| Branch: | Revision:

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

History | View | Annotate | Download (2.3 kB)

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

    
3
import java.util.Map;
4

    
5
import com.rackspace.cloud.servers.api.client.Entity;
6

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

    
13
        private static final long serialVersionUID = 5994739895998309675L;
14
        private String object;
15
        private String hash;
16
        private String lastMod;
17
        private int bytes;
18
        private String cname;
19
        private String contentType;
20
        
21
        
22
        
23

    
24
        /**
25
         * 
26
         * @return the object
27
         */
28
        public String getObject() {
29
                return object;
30
        }
31
        /**
32
         * 
33
         * @param object from container
34
         */
35
        public void setObject(String object)        {
36
                this.object = object;
37
        }
38
        /**
39
         * @return the hash
40
         */
41
        public String getHash() {
42
                return hash;
43
        }
44
        /**
45
         * @param hash hash of object
46
         */
47
        public void setHash(String hash) {
48
                this.hash = hash;
49
        }
50
        /**
51
         * 
52
         * @return the LastMod ification of file
53
         */
54
        public String getLastMod() {
55
                return lastMod;
56
        }
57
        
58
        /**
59
         * 
60
         * @param lastMod that LastMod is set to
61
         */
62
        public void setLastMod(String lastMod) {
63
                this.lastMod = lastMod;
64
        }
65
        /**
66
         * 
67
         * @return the object's name
68
        */
69
        public String getCName() {
70
                return cname;
71
        }
72
        /**
73
         * 
74
         * @param name the object is set to
75
         */
76
        public void setCName(String cname) {
77
                this.cname = cname;
78
        }
79
        /**
80
         * 
81
         * @return the objects size
82
         */
83
        public int getBytes() {
84
                return bytes;
85
        }
86
        /**
87
         * 
88
         * @param the bytes the object is set to
89
         */
90
        public void setBytes(int bytes) {
91
                this.bytes = bytes;
92
        }
93
        /**
94
         * 
95
         * @param contentType the object is set to
96
         */
97
        public void setContentType(String contentType) {
98
                this.contentType = contentType;
99
                
100
        }
101
        /**
102
         * 
103
         * @return the objects content type
104
         */
105
        public String getContentType(){
106
                return contentType;
107
        }
108
        @Override
109
        public String toString() {
110
                return "ContainerObjects [" + "getCName()="
111
                                + getCName() + " object=" + object + ", hash=" + hash
112
                                + ", lastMod=" + lastMod + ", bytes=" + bytes + ", cname="
113
                                + cname + ", contentType=" + contentType + ", getId()="
114
                                + getId() + ", getName()=" + getName() + ", getModifiedBy()="
115
                                + getModifiedBy() + ", getVersion()=" + getVersion()
116
                                + ", getVersionTimestamp()=" + getVersionTimestamp()
117
                                + ", getObjectUUID()=" + getObjectUUID() + ", getObjectHash()="
118
                                + getObjectHash() + ", getObjectSharing()="
119
                                + getObjectSharing() + ", getMetadata()=" + getMetadata() + "]";
120
        }
121
        
122
        
123
        
124
}   
125